Interface AvailabilitySearchOrder

All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidRelationshipSearchOrder, OsidSearchOrder, OsidTemporalSearchOrder, Suppliable

public interface AvailabilitySearchOrder extends OsidRelationshipSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByResource

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

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

      ResourceSearchOrder getResourceSearchOrder()
      Gets the resource search order.
      Returns:
      the resource search order
      Throws:
      IllegalStateException - supportsResourceSearchOrder() is false
      Compliance:
      mandatory - This method must be implemented.
    • orderByJob

      void orderByJob(SearchOrderStyle style)
      Orders the results by 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.
    • orderByCompetency

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

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

      CompetencySearchOrder getCompetencySearchOrder()
      Gets the competency search order.
      Returns:
      the competency search order
      Throws:
      IllegalStateException - supportsCompetencySearchOrder() is false
      Compliance:
      mandatory - This method must be implemented.
    • orderByPercentage

      void orderByPercentage(SearchOrderStyle style)
      Orders the results by percentage availability.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • getAvailabilitySearchOrderRecord

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