Interface ConferralQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable

public interface ConferralQuery extends OsidRelationshipQuery

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

  • Method Details

    • matchAwardId

      void matchAwardId(Id awardId, boolean match)
      Sets an award Id .
      Parameters:
      awardId - an award Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - awardId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAwardIdTerms

      void clearAwardIdTerms()
      Clears the award Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAwardQuery

      boolean supportsAwardQuery()
      Tests if an AwardQuery is available.
      Returns:
      true if an award query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAwardQuery

      AwardQuery getAwardQuery()
      Gets the query for an award query. Multiple retrievals produce a nested OR term.
      Returns:
      the award query
      Throws:
      UnimplementedException - supportsAwardQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAwardQuery()} is {@code true} .
    • clearAwardTerms

      void clearAwardTerms()
      Clears the award terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRecipientId

      void matchRecipientId(Id resourceId, boolean match)
      Sets a resource Id .
      Parameters:
      resourceId - a resource Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRecipientIdTerms

      void clearRecipientIdTerms()
      Clears the resource Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRecipientQuery

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

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

      void clearRecipientTerms()
      Clears the resource terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchReferenceId

      void matchReferenceId(Id referenceId, boolean match)
      Sets a reference Id .
      Parameters:
      referenceId - a reference Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - referenceId is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyReferenceId

      void matchAnyReferenceId(boolean match)
      Matches any reference.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearReferenceIdTerms

      void clearReferenceIdTerms()
      Clears the reference Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchConvocationId

      void matchConvocationId(Id convocationId, boolean match)
      Sets a convocaton Id .
      Parameters:
      convocationId - a convocaton Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - convocationId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearConvocationIdTerms

      void clearConvocationIdTerms()
      Clears the convocaton Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsConvocationQuery

      boolean supportsConvocationQuery()
      Tests if a ConvocationQuery is available.
      Returns:
      true if a convocaton query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getConvocationQuery

      ConvocationQuery getConvocationQuery()
      Gets the query for a convocaton query. Multiple retrievals produce a nested OR term.
      Returns:
      the convocaton query
      Throws:
      UnimplementedException - supportsConvocationQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsConvocationQuery()} is {@code true} .
    • matchAnyConvocation

      void matchAnyConvocation(boolean match)
      Matches any convocaton.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearConvocationTerms

      void clearConvocationTerms()
      Clears the convocaton terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAcademyId

      void matchAcademyId(Id academyId, boolean match)
      Sets the award Id for this query to match conferrals assigned to academies.
      Parameters:
      academyId - an academy Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - academyId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAcademyIdTerms

      void clearAcademyIdTerms()
      Clears the academy Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAcademyQuery

      boolean supportsAcademyQuery()
      Tests if an AcademyQuery is available.
      Returns:
      true if an academy query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAcademyQuery

      AcademyQuery getAcademyQuery()
      Gets the query for an academy query. Multiple retrievals produce a nested OR term.
      Returns:
      the academy query
      Throws:
      UnimplementedException - supportsAcademyQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAcademyQuery()} is {@code true} .
    • clearAcademyTerms

      void clearAcademyTerms()
      Clears the academy terms.
      Compliance:
      mandatory - This method must be implemented.
    • getConferralQueryRecord

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