Interface IssueQuery

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

public interface IssueQuery extends OsidGovernatorQuery

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

  • Method Details

    • matchBureauId

      void matchBureauId(Id bureauId, boolean match)
      Sets the bureau Id for this query.
      Parameters:
      bureauId - the bureau Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - bureauId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBureauIdTerms

      void clearBureauIdTerms()
      Clears the bureau Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBureauQuery

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

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

      void matchAnyBureau(boolean match)
      Matches issues with any bureau.
      Parameters:
      match - true to match issues with any bureaus, false to match issues with no bureaus
      Compliance:
      mandatory - This method must be implemented.
    • clearBureauTerms

      void clearBureauTerms()
      Clears the bureau query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBlockId

      void matchBlockId(Id blockId, boolean match)
      Sets the block Id for this query.
      Parameters:
      blockId - the block Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - blockId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBlockIdTerms

      void clearBlockIdTerms()
      Clears the block Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBlockQuery

      boolean supportsBlockQuery()
      Tests if a BlockQuery is available.
      Returns:
      true if a block query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBlockQuery

      BlockQuery getBlockQuery()
      Gets the query for a block. Multiple retrievals produce a nested OR term.
      Returns:
      the block query
      Throws:
      UnimplementedException - supportsBlockQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBlockQuery()} is {@code true} .
    • matchAnyBlock

      void matchAnyBlock(boolean match)
      Matches issues used for any block.
      Parameters:
      match - true to match issues with any blocks, false to match issues with no blocks
      Compliance:
      mandatory - This method must be implemented.
    • clearBlockTerms

      void clearBlockTerms()
      Clears the block query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchHoldId

      void matchHoldId(Id holdId, boolean match)
      Sets the hold Id for this query.
      Parameters:
      holdId - the hold Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - holdId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearHoldIdTerms

      void clearHoldIdTerms()
      Clears the hold Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsHoldQuery

      boolean supportsHoldQuery()
      Tests if a HoldQuery is available.
      Returns:
      true if a hold query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getHoldQuery

      HoldQuery getHoldQuery()
      Gets the query for a hold. Multiple retrievals produce a nested OR term.
      Returns:
      the hold query
      Throws:
      UnimplementedException - supportsHoldQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsHoldQuery()} is {@code true} .
    • matchAnyHold

      void matchAnyHold(boolean match)
      Matches issues referenced by any hold.
      Parameters:
      match - true to match issues with any holds, false to match issues with no holds
      Compliance:
      mandatory - This method must be implemented.
    • clearHoldTerms

      void clearHoldTerms()
      Clears the hold query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOublietteId

      void matchOublietteId(Id oublietteId, boolean match)
      Sets the oubliette Id for this query to match issues assigned to foundries.
      Parameters:
      oublietteId - the oubliette Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - oublietteId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearOublietteIdTerms

      void clearOublietteIdTerms()
      Clears the oubliette Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsOublietteQuery

      boolean supportsOublietteQuery()
      Tests if an OublietteQuery is available.
      Returns:
      true if an oubliette query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getOublietteQuery

      OublietteQuery getOublietteQuery()
      Gets the query for an oubliette. Multiple retrievals produce a nested OR term.
      Returns:
      the oubliette query
      Throws:
      UnimplementedException - supportsOublietteQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsOublietteQuery()} is {@code true} .
    • clearOublietteTerms

      void clearOublietteTerms()
      Clears the oubliette query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getIssueQueryRecord

      IssueQueryRecord getIssueQueryRecord(Type issueRecordType) throws OperationFailedException, PermissionDeniedException
      Gets the issue query record corresponding to the given Issue record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      issueRecordType - an issue record type
      Returns:
      the issue query record
      Throws:
      NullArgumentException - issueRecordType is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      UnsupportedException - hasRecordType(issueRecordType) is false
      Compliance:
      mandatory - This method must be implemented.