Interface ProcessConstrainerQuery

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

public interface ProcessConstrainerQuery extends OsidConstrainerQuery

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

  • Method Details

    • matchRuledProcessId

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

      void clearRuledProcessIdTerms()
      Clears the process Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledProcessQuery

      boolean supportsRuledProcessQuery()
      Tests if a ProcessQuery is available.
      Returns:
      true if a process query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledProcessQuery

      ProcessQuery getRuledProcessQuery()
      Gets the query for a process. Multiple retrievals produce a nested OR term.
      Returns:
      the process query
      Throws:
      UnimplementedException - supportsRuledProcessQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledProcessQuery()} is {@code true} .
    • matchAnyRuledProcess

      void matchAnyRuledProcess(boolean match)
      Matches rules mapped to any process.
      Parameters:
      match - true for rules mapped to any process, false to match rules mapped to no processs
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledProcessTerms

      void clearRuledProcessTerms()
      Clears the process query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOfficeId

      void matchOfficeId(Id officeId, boolean match)
      Sets the office Id for this query to match processes assigned to offices.
      Parameters:
      officeId - the office Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - officeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearOfficeIdTerms

      void clearOfficeIdTerms()
      Clears the office Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsOfficeQuery

      boolean supportsOfficeQuery()
      Tests if an OfficeQuery is available.
      Returns:
      true if an office query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getOfficeQuery

      OfficeQuery getOfficeQuery()
      Gets the query for an office. Multiple retrievals produce a nested OR term.
      Returns:
      the office query
      Throws:
      UnimplementedException - supportsOfficeQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsOfficeQuery()} is {@code true} .
    • clearOfficeTerms

      void clearOfficeTerms()
      Clears the office query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getProcessConstrainerQueryRecord

      ProcessConstrainerQueryRecord getProcessConstrainerQueryRecord(Type processConstrainerRecordType) throws OperationFailedException
      Gets the process constrainer query record corresponding to the given ProcessConstrainer record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      processConstrainerRecordType - a process constrainer record type
      Returns:
      the process constrainer query record
      Throws:
      NullArgumentException - processConstrainerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(processConstrainerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.