Interface CatalogEnablerSmartCatalogSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A CatalogEnablerQuery can be retrieved from this session
and mapped to this Catalog to create a virtual collection of
catalog enablers. The catalog enablers may be sequenced using the
CatalogEnablerSearchOrder from this session.
This Catalog has a default query that matches any catalog
enabler and a default search order that specifies no sequencing. The
queries may be examined using a CatalogEnablerQueryInspector . The
query may be modified by converting the inspector back to a
CatalogEnablerQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCatalogEnablerQuery(CatalogEnablerQuery catalogEnablerQuery) Applies a catalog enabler query to this catalog.voidapplyCatalogEnablerSequencing(CatalogEnablerSearchOrder catalogEnablerSearchOrder) Applies a catalog enabler search order to this catalog.booleanTests if this user can manage smart catalogs.Gets theCatalogassociated with this session.Gets a catalog enabler query.getCatalogEnablerQueryFromInspector(CatalogEnablerQueryInspector catalogEnablerQueryInspector) Gets a catalog enabler query from an inspector.Gets a catalog enabler search order.Gets theCatalogIdassociated with this session.Gets a catalog enabler query inspector for this catalog.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCatalogId
Id getCatalogId()Gets theCatalogIdassociated with this session.- Returns:
- the
Catalog Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCatalog
Gets theCatalogassociated with this session.- Returns:
- the catalog
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartCatalogs
boolean canManageSmartCatalogs()Tests if this user can manage smart catalogs. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart catalog management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getCatalogEnablerQuery
CatalogEnablerQuery getCatalogEnablerQuery()Gets a catalog enabler query.- Returns:
- the catalog enabler query
- Compliance:
mandatory- This method must be implemented.
-
getCatalogEnablerSearchOrder
CatalogEnablerSearchOrder getCatalogEnablerSearchOrder()Gets a catalog enabler search order.- Returns:
- the catalog enabler search order
- Compliance:
mandatory- This method must be implemented.
-
applyCatalogEnablerQuery
void applyCatalogEnablerQuery(CatalogEnablerQuery catalogEnablerQuery) throws OperationFailedException, PermissionDeniedException Applies a catalog enabler query to this catalog.- Parameters:
catalogEnablerQuery- the catalog enabler query- Throws:
NullArgumentException-catalogEnablerQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-catalogEnablerQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectCatalogEnablerQuery
CatalogEnablerQueryInspector inspectCatalogEnablerQuery() throws OperationFailedException, PermissionDeniedExceptionGets a catalog enabler query inspector for this catalog.- Returns:
- the catalog enabler query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyCatalogEnablerSequencing
void applyCatalogEnablerSequencing(CatalogEnablerSearchOrder catalogEnablerSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a catalog enabler search order to this catalog.- Parameters:
catalogEnablerSearchOrder- the catalog enabler search order- Throws:
NullArgumentException-catalogEnablerSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-catalogEnablerSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getCatalogEnablerQueryFromInspector
CatalogEnablerQuery getCatalogEnablerQueryFromInspector(CatalogEnablerQueryInspector catalogEnablerQueryInspector) Gets a catalog enabler query from an inspector.- Parameters:
catalogEnablerQueryInspector- a catalog enabler query inspector- Returns:
- the catalog enabler query
- Throws:
NullArgumentException-catalogEnablerQueryInspectorisnullUnsupportedException-catalogEnablerQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-