Interface WorkSearchOrder

All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, OsidSubjugateableSearchOrder, Suppliable

public interface WorkSearchOrder extends OsidObjectSearchOrder, OsidSubjugateableSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByJob

      void orderByJob(SearchOrderStyle style)
      Orders the results by the job.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • supportsJobSearchOrder

      boolean supportsJobSearchOrder()
      Tests if a job search order is available.
      Returns:
      true if a job search order is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getJobSearchOrder

      JobSearchOrder getJobSearchOrder()
      Gets the job search order.
      Returns:
      the job search order
      Throws:
      IllegalStateException - supportsJobSearchOrder() is false
      Compliance:
      mandatory - This method must be implemented.
    • orderByCreatedDate

      void orderByCreatedDate(SearchOrderStyle style)
      Orders the results by the created date.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • orderByCompletionDate

      void orderByCompletionDate(SearchOrderStyle style)
      Orders the results by the completion date.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • getWorkSearchOrderRecord

      WorkSearchOrderRecord getWorkSearchOrderRecord(Type workRecordType) throws OperationFailedException
      Gets the work search order record corresponding to the given work record Type . Multiple retrievals return the same underlying object.
      Parameters:
      workRecordType - a work record type
      Returns:
      the work search order record
      Throws:
      NullArgumentException - workRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(workRecordType) is false
      Compliance:
      mandatory - This method must be implemented.