Interface LeaseSearchOrder

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

public interface LeaseSearchOrder extends OsidRelationshipSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByRoom

      void orderByRoom(SearchOrderStyle style)
      Specifies a preference for ordering the result set by the room.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • supportsRoomSearchOrder

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

      RoomSearchOrder getRoomSearchOrder()
      Gets the room search order.
      Returns:
      the room search order
      Throws:
      UnimplementedException - supportsRoomSearchOrder() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRoomSearchOrder()} is {@code true} .
    • orderByTenant

      void orderByTenant(SearchOrderStyle style)
      Specifies a preference for ordering the result set by the owner.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • supportsTenantSearchOrder

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

      ResourceSearchOrder getTenantSearchOrder()
      Gets the tenant resource search order.
      Returns:
      the resource search order
      Throws:
      UnimplementedException - supportsTenantSearchOrder() is false
      Compliance:
      optional - This method must be implemented if {@code supportsTenantSearchOrder()} is {@code true} .
    • getLeaseSearchOrderRecord

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