Interface CanonicalUnitProcessorEnablerQuerySession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
All Known Subinterfaces:
CanonicalUnitProcessorEnablerSearchSession

public interface CanonicalUnitProcessorEnablerQuerySession extends OsidSession

This session provides methods for searching among CanonicalUnitProcessorEnabler objects. The search query is constructed using the CanonicalUnitProcessorEnablerQuery.

This session defines views that offer differing behaviors for searching.

  • federated catalogue view: searches include canonical unit processor enablers in catalogues of which this catalogue is an ancestor in the catalogue hierarchy
  • isolated catalogue view: searches are restricted to canonical unit processor enablers in this catalogue

CanonicalUnit processor enablers may have a query record indicated by their respective record types. The query record is accessed via the CanonicalUnitProcessorEnablerQuery.

  • Method Details

    • getCatalogueId

      Id getCatalogueId()
      Gets the Catalogue Id associated with this session.
      Returns:
      the Catalogue Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getCatalogue

      Gets the Catalogue associated with this session.
      Returns:
      the catalogue
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSearchCanonicalUnitProcessorEnablers

      boolean canSearchCanonicalUnitProcessorEnablers()
      Tests if this user can perform CanonicalUnitProcessorEnabler lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.
      Returns:
      false if search methods are not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • useFederatedCatalogueView

      void useFederatedCatalogueView()
      Federates the view for methods in this session. A federated view will include canonical unit processor enablers in catalogues which are children of this broker in the catalogue hierarchy.
      Compliance:
      mandatory - This method is must be implemented.
    • useIsolatedCatalogueView

      void useIsolatedCatalogueView()
      Isolates the view for methods in this session. An isolated view restricts lookups to this catalogue only.
      Compliance:
      mandatory - This method is must be implemented.
    • getCanonicalUnitProcessorEnablerQuery

      CanonicalUnitProcessorEnablerQuery getCanonicalUnitProcessorEnablerQuery()
      Gets a canonical unit processor enabler query.
      Returns:
      the canonical unit processor enabler query
      Compliance:
      mandatory - This method must be implemented.
    • getCanonicalUnitProcessorEnablersByQuery

      CanonicalUnitProcessorEnablerList getCanonicalUnitProcessorEnablersByQuery(CanonicalUnitProcessorEnablerQuery canonicalUnitProcessorEnablerQuery) throws OperationFailedException, PermissionDeniedException
      Gets a list of CanonicalUnitProcessorEnablers matching the given search.
      Parameters:
      canonicalUnitProcessorEnablerQuery - the canonical unit processor enabler query
      Returns:
      the returned CanonicalUnitProcessorEnablerList
      Throws:
      NullArgumentException - canonicalUnitProcessorEnablerQuery is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - canonicalUnitProcessorEnablerQuery is not of this service
      Compliance:
      mandatory - This method must be implemented.