Interface CommissionQuery

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

public interface CommissionQuery extends OsidRelationshipQuery

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

  • Method Details

    • matchResourceId

      void matchResourceId(Id resourceId, boolean match)
      Sets the resource Id for this query.
      Parameters:
      resourceId - the 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.
    • clearResourceIdTerms

      void clearResourceIdTerms()
      Clears the resource Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsResourceQuery

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

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

      void clearResourceTerms()
      Clears the resource query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWorkId

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

      void clearWorkIdTerms()
      Clears the work Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsWorkQuery

      boolean supportsWorkQuery()
      Tests if a WorkQuery is available.
      Returns:
      true if a work query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getWorkQuery

      WorkQuery getWorkQuery()
      Gets the query for a work. Multiple retrievals produce a nested OR term.
      Returns:
      the work query
      Throws:
      UnimplementedException - supportsWorkQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsWorkQuery()} is {@code true} .
    • clearWorkTerms

      void clearWorkTerms()
      Clears the work query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCompetencyId

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

      void clearCompetencyIdTerms()
      Clears the competency Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCompetencyQuery

      boolean supportsCompetencyQuery()
      Tests if a CompetencyQuery is available.
      Returns:
      true if a competency query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCompetencyQuery

      CompetencyQuery getCompetencyQuery()
      Gets the query for a competency. Multiple retrievals produce a nested OR term.
      Returns:
      the competency query
      Throws:
      UnimplementedException - supportsCompetencyQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCompetencyQuery()} is {@code true} .
    • clearCompetencyTerms

      void clearCompetencyTerms()
      Clears the competency query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPercentage

      void matchPercentage(long low, long high, boolean match)
      Matches percentages within the given range inclusive.
      Parameters:
      low - start range
      high - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - low is greater than high
      Compliance:
      mandatory - This method must be implemented.
    • clearPercentageTerms

      void clearPercentageTerms()
      Clears the percentage query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFoundryId

      void matchFoundryId(Id foundryId, boolean match)
      Sets the foundry Id for this query to match commissions assigned to foundries.
      Parameters:
      foundryId - the foundry Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - foundryId is null
      Compliance:
      mandatory - This method must be implemented.
    • matchEffortId

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

      void clearEffortIdTerms()
      Clears the effort Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsEffortQuery

      boolean supportsEffortQuery()
      Tests if an EffortQuery is available.
      Returns:
      true if an effort query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getEffortQuery

      EffortQuery getEffortQuery()
      Gets the query for an effort. Multiple retrievals produce a nested OR term.
      Returns:
      the effort query
      Throws:
      UnimplementedException - supportsEffortQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsEffortQuery()} is {@code true} .
    • matchAnyEffort

      void matchAnyEffort(boolean match)
      Matches commissions with any effort.
      Parameters:
      match - true to match commissions with any effort, false to match commissions with no effort
      Compliance:
      mandatory - This method must be implemented.
    • clearEffortTerms

      void clearEffortTerms()
      Clears the effort query terms.
      Compliance:
      mandatory - This method must be implemented.
    • clearFoundryIdTerms

      void clearFoundryIdTerms()
      Clears the foundry Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsFoundryQuery

      boolean supportsFoundryQuery()
      Tests if a FoundryQuery is available.
      Returns:
      true if a foundry query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getFoundryQuery

      FoundryQuery getFoundryQuery()
      Gets the query for a foundry. Multiple retrievals produce a nested OR term.
      Returns:
      the foundry query
      Throws:
      UnimplementedException - supportsFoundryQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsFoundryQuery()} is {@code true} .
    • clearFoundryTerms

      void clearFoundryTerms()
      Clears the foundry query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getCommissionQueryRecord

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