Interface AssetContentSearchOrder

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

public interface AssetContentSearchOrder extends OsidObjectSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByAsset

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

      boolean supportsAssetSearchOrder()
      Tests if an asset order interface is available.
      Returns:
      true if an asset search order is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAssetSearchOrder

      AssetSearchOrder getAssetSearchOrder()
      Gets the asset order.
      Returns:
      the asset search order for the source
      Throws:
      UnimplementedException - supportsAssetSearchOrder() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAssetSearchOrder()} is {@code true} .
    • orderByDataLength

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

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

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