Interface JobConstrainerEnablerQuery

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

public interface JobConstrainerEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledJobConstrainerId

      void matchRuledJobConstrainerId(Id jobConstrainerId, boolean match)
      Matches enablers mapped to the job constrainer.
      Parameters:
      jobConstrainerId - the job constrainer Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - jobConstrainerId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledJobConstrainerIdTerms

      void clearRuledJobConstrainerIdTerms()
      Clears the job constrainer Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledJobConstrainerQuery

      boolean supportsRuledJobConstrainerQuery()
      Tests if an JobConstrainerQuery is available.
      Returns:
      true if a job constrainer query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledJobConstrainerQuery

      JobConstrainerQuery getRuledJobConstrainerQuery()
      Gets the query for a job constrainer. Multiple retrievals produce a nested OR term.
      Returns:
      the job constrainer query
      Throws:
      UnimplementedException - supportsRuledJobConstrainerQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledJobConstrainerQuery()} is {@code true} .
    • matchAnyRuledJobConstrainer

      void matchAnyRuledJobConstrainer(boolean match)
      Matches enablers mapped to any job constrainer.
      Parameters:
      match - true for enablers mapped to any job constrainer, false to match enablers mapped to no job constrainers
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledJobConstrainerTerms

      void clearRuledJobConstrainerTerms()
      Clears the job constrainer query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFoundryId

      void matchFoundryId(Id foundryId, boolean match)
      Matches enablers mapped to the foundry.
      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.
    • 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.
    • getJobConstrainerEnablerQueryRecord

      JobConstrainerEnablerQueryRecord getJobConstrainerEnablerQueryRecord(Type jobConstrainerEnablerRecordType) throws OperationFailedException
      Gets the job constrainer enabler query record corresponding to the given JobConstrainerEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      jobConstrainerEnablerRecordType - a job constrainer enabler record type
      Returns:
      the job constrainer enabler query record
      Throws:
      NullArgumentException - jobConstrainerEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(jobConstrainerEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.