Interface StepEnablerQuery

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

public interface StepEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledStepId

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

      void clearRuledStepIdTerms()
      Clears the step Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledStepQuery

      boolean supportsRuledStepQuery()
      Tests if a StepQuery is available.
      Returns:
      true if a step query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledStepQuery

      StepQuery getRuledStepQuery()
      Gets the query for a step. Multiple retrievals produce a nested OR term.
      Returns:
      the step query
      Throws:
      UnimplementedException - supportsRuledStepQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledStepQuery()} is {@code true} .
    • matchAnyRuledStep

      void matchAnyRuledStep(boolean match)
      Matches rules mapped to any step.
      Parameters:
      match - true for rules mapped to any step, false to match rules mapped to no step
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledStepTerms

      void clearRuledStepTerms()
      Clears the step 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 steps 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.
    • getStepEnablerQueryRecord

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