Interface QueueQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidGovernatorQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidSourceableQuery, Suppliable

public interface QueueQuery extends OsidGovernatorQuery

This is the query for searching queues. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchManagerId

      void matchManagerId(Id managerId, boolean match)
      Sets a manager Id for this query.
      Parameters:
      managerId - a manager Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - managerId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearManagerIdTerms

      void clearManagerIdTerms()
      Clears the manager Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsManagerQuery

      boolean supportsManagerQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a manager query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getManagerQuery

      ResourceQuery getManagerQuery()
      Gets the query for a manager. Multiple retrievals produce a nested OR term.
      Returns:
      the manager query
      Throws:
      UnimplementedException - supportsManagerQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsManagerQuery()} is {@code true} .
    • matchAnyManager

      void matchAnyManager(boolean match)
      Matches objects with any manager.
      Parameters:
      match - true to match objects with any manager, false to match objects with no manager
      Compliance:
      mandatory - This method must be implemented.
    • clearManagerTerms

      void clearManagerTerms()
      Clears the manager query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchIssueId

      void matchIssueId(Id issueId, boolean match)
      Sets the issue Id for this query to match queues that pass through issues.
      Parameters:
      issueId - the issue Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - issueId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearIssueIdTerms

      void clearIssueIdTerms()
      Clears the issue Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsIssueQuery

      boolean supportsIssueQuery()
      Tests if a IssueQuery is available.
      Returns:
      true if a issue query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getIssueQuery

      IssueQuery getIssueQuery()
      Gets the query for a issue. Multiple retrievals produce a nested OR term.
      Returns:
      the issue query
      Throws:
      UnimplementedException - supportsIssueQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsIssueQuery()} is {@code true} .
    • matchAnyIssue

      void matchAnyIssue(boolean match)
      Matches log entries that go through any issue.
      Parameters:
      match - true to match log entries with any issue, false to match log entries with no issue
      Compliance:
      mandatory - This method must be implemented.
    • clearIssueTerms

      void clearIssueTerms()
      Clears the issue query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFrontOfficeId

      void matchFrontOfficeId(Id frontOfficeId, boolean match)
      Sets the front office Id for this query to match queues assigned to front offices.
      Parameters:
      frontOfficeId - the front office Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - frontOfficeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearFrontOfficeIdTerms

      void clearFrontOfficeIdTerms()
      Clears the front office Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsFrontOfficeQuery

      boolean supportsFrontOfficeQuery()
      Tests if a FrontOfficeQuery is available.
      Returns:
      true if a front office query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getFrontOfficeQuery

      FrontOfficeQuery getFrontOfficeQuery()
      Gets the query for a front office. Multiple retrievals produce a nested OR term.
      Returns:
      the front office query
      Throws:
      UnimplementedException - supportsFrontOfficeQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsFrontOfficeQuery()} is {@code true} .
    • clearFrontOfficeTerms

      void clearFrontOfficeTerms()
      Clears the front office query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getQueueQueryRecord

      QueueQueryRecord getQueueQueryRecord(Type queueRecordType) throws OperationFailedException
      Gets the queue query record corresponding to the given Queue record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      queueRecordType - a queue record type
      Returns:
      the queue query record
      Throws:
      NullArgumentException - queueRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(queueRecordType) is false
      Compliance:
      mandatory - This method must be implemented.