Interface DemographicEnablerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable

public interface DemographicEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledDemographicId

      void matchRuledDemographicId(Id demographicId, boolean match)
      Matches enablers mapped to the demographic.
      Parameters:
      demographicId - the demographic Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - demographicId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledDemographicIdTerms

      void clearRuledDemographicIdTerms()
      Clears the demographic Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledDemographicQuery

      boolean supportsRuledDemographicQuery()
      Tests if a DemographicQuery is available.
      Returns:
      true if a demographic query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledDemographicQuery

      DemographicQuery getRuledDemographicQuery()
      Gets the query for a demographic. Multiple retrievals produce a nested OR term.
      Returns:
      the demographic query
      Throws:
      UnimplementedException - supportsRuledDemographicQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledDemographicQuery()} is {@code true} .
    • matchAnyRuledDemographic

      void matchAnyRuledDemographic(boolean match)
      Matches enablers mapped to any demographic.
      Parameters:
      match - true for enablers mapped to any demographic, false to match enablers mapped to no demographics
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledDemographicTerms

      void clearRuledDemographicTerms()
      Clears the demographic query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBinId

      void matchBinId(Id binId, boolean match)
      Matches enablers mapped to the bin.
      Parameters:
      binId - the bin Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - binId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBinIdTerms

      void clearBinIdTerms()
      Clears the bin Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBinQuery

      boolean supportsBinQuery()
      Tests if a BinQuery is available.
      Returns:
      true if a bin query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBinQuery

      BinQuery getBinQuery()
      Gets the query for a bin. Multiple retrievals produce a nested OR term.
      Returns:
      the bin query
      Throws:
      UnimplementedException - supportsBinQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBinQuery()} is {@code true} .
    • clearBinTerms

      void clearBinTerms()
      Clears the bin query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getDemographicEnablerQueryRecord

      DemographicEnablerQueryRecord getDemographicEnablerQueryRecord(Type demographicEnablerRecordType) throws OperationFailedException
      Gets the demographic enabler query record corresponding to the given DemographicEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      demographicEnablerRecordType - a demographic enabler record type
      Returns:
      the demographic enabler query record
      Throws:
      NullArgumentException - demographicEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(demographicEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.