Interface OsidRequestQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
All Known Subinterfaces:
RegistrationRequestQuery

public interface OsidRequestQuery extends OsidObjectQuery

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

  • Method Details

    • matchPostingDate

      void matchPostingDate(DateTime start, DateTime end, boolean match)
      Matches requests whose posting date falls in between the given dates inclusive.
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyPostingDate

      void matchAnyPostingDate(boolean match)
      Matches requests with any posting date set.
      Parameters:
      match - true to match any posting date, false to match no posting date
      Compliance:
      mandatory - This method must be implemented.
    • clearPostingDateTerms

      void clearPostingDateTerms()
      Clears the posting date query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRequesterId

      void matchRequesterId(Id resourceId, boolean match)
      Match the Id of the requester.
      Parameters:
      resourceId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRequesterIdTerms

      void clearRequesterIdTerms()
      Clears all requester Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRequesterQuery

      boolean supportsRequesterQuery()
      Tests if a ResourceQuery for the requester is available.
      Returns:
      true if a resource query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRequesterQuery

      ResourceQuery getRequesterQuery(boolean match)
      Gets the query for the resource. Each retrieval performs a boolean OR .
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsRequesterQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRequesterQuery()} is {@code true} .
    • matchAnyRequester

      void matchAnyRequester(boolean match)
      Match any requester.
      Parameters:
      match - true to match any requester, false to match no requesters
      Compliance:
      mandatory - This method must be implemented.
    • clearRequesterTerms

      void clearRequesterTerms()
      Clears all requsster terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSubmitted

      void matchSubmitted(boolean match)
      Matches submitted requests.
      Parameters:
      match - true to match submitted requests, false to match unsubmitted requests
      Compliance:
      mandatory - This method must be implemented.
    • clearSubmittedTerms

      void clearSubmittedTerms()
      Clears the submitted query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSubmittedDate

      void matchSubmittedDate(DateTime start, DateTime end, boolean match)
      Matches requests whose submitted date falls in between the given dates inclusive.
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnySubmittedDate

      void matchAnySubmittedDate(boolean match)
      Matches requests with any submitted date set.
      Parameters:
      match - true to match any submitted date, false to match no submitted date
      Compliance:
      mandatory - This method must be implemented.
    • clearSubmittedDateTerms

      void clearSubmittedDateTerms()
      Clears the submitted date query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSubmitterId

      void matchSubmitterId(Id resourceId, boolean match)
      Match the Id of the submitter.
      Parameters:
      resourceId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSubmitterIdTerms

      void clearSubmitterIdTerms()
      Clears all submitter Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSubmitterQuery

      boolean supportsSubmitterQuery()
      Tests if a ResourceQuery for the submitter is available.
      Returns:
      true if a resource query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSubmitterQuery

      ResourceQuery getSubmitterQuery(boolean match)
      Gets the query for the resource. Each retrieval performs a boolean OR .
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsSubmitterQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSubmitterQuery()} is {@code true} .
    • matchAnySubmitter

      void matchAnySubmitter(boolean match)
      Match any submitter.
      Parameters:
      match - true to match any submitter, false to match no submitters
      Compliance:
      mandatory - This method must be implemented.
    • clearSubmitterTerms

      void clearSubmitterTerms()
      Clears all submitter terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSubmittingAgentId

      void matchSubmittingAgentId(Id agentId, boolean match)
      Match the Id of the submitting agent.
      Parameters:
      agentId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - agentId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSubmittingAgentIdTerms

      void clearSubmittingAgentIdTerms()
      Clears all submitting agent Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSubmittingAgentQuery

      boolean supportsSubmittingAgentQuery()
      Tests if an AgentQuery for the submitter is available.
      Returns:
      true if an agent query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSubmittingAgentQuery

      AgentQuery getSubmittingAgentQuery(boolean match)
      Gets the query for the submitting agent. Each retrieval performs a boolean OR .
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the agent query
      Throws:
      UnimplementedException - supportsSubmittingAgentQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSubmittingAgentQuery()} is {@code true} .
    • matchAnySubmittingAgent

      void matchAnySubmittingAgent(boolean match)
      Match any submitting agent.
      Parameters:
      match - true to match any submitting agent, false to match no submitting agents
      Compliance:
      mandatory - This method must be implemented.
    • clearSubmittingAgentTerms

      void clearSubmittingAgentTerms()
      Clears all submitting agent terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCanceled

      void matchCanceled(boolean match)
      Matches canceled requests.
      Parameters:
      match - true to match canceled requests, false to match not canceled requests
      Compliance:
      mandatory - This method must be implemented.
    • clearCanceledTerms

      void clearCanceledTerms()
      Clears the canceled query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchProcessedDate

      void matchProcessedDate(DateTime start, DateTime end, boolean match)
      Matches requests whose processed date falls in between the given dates inclusive.
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyProcessedDate

      void matchAnyProcessedDate(boolean match)
      Matches requests with any processed date set.
      Parameters:
      match - true to match any processed date, false to match no processed date
      Compliance:
      mandatory - This method must be implemented.
    • clearProcessedDateTerms

      void clearProcessedDateTerms()
      Clears the processed date query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchErrorId

      void matchErrorId(Id stateId, boolean match)
      Match the Id of the error state.
      Parameters:
      stateId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - stateId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearErrorIdTerms

      void clearErrorIdTerms()
      Clears all error state Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsErrorQuery

      boolean supportsErrorQuery()
      Tests if a StateQuery for the submitter is available.
      Returns:
      true if a state query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getErrorQuery

      StateQuery getErrorQuery(boolean match)
      Gets the query for the state. Each retrieval performs a boolean OR .
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the state query
      Throws:
      UnimplementedException - supportsErrorQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsErrorQuery()} is {@code true} .
    • matchAnyError

      void matchAnyError(boolean match)
      Match any error state.
      Parameters:
      match - true to match any error, false to match no requests with no errors
      Compliance:
      mandatory - This method must be implemented.
    • clearErrorTerms

      void clearErrorTerms()
      Clears all error terms.
      Compliance:
      mandatory - This method must be implemented.