public interface PackageSmartDepotSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A PackageQuery
can be retrieved from this session
and mapped to this Depot
to create a virtual collection of
Packages.
The packages may be sequenced using the
PackageSearchOrder
from this session.
This Depot
has a default query that matches any package
and a default search order that specifies no sequencing. The queries may
be examined using a PackageQueryInspector.
The query may be
modified by converting the inspector back to a PackageQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyPackageQuery(PackageQuery packageQuery)
Applies a package query to this depot.
|
void |
applyPackageSequencing(PackageSearchOrder packageSearchOrder)
Applies a package search order to this depot.
|
boolean |
canManageSmartDepot()
Tests if this user can manage smart depot.
|
Depot |
getDepot()
Gets the
Depot associated with this session. |
Id |
getDepotId()
Gets the
Depot Id associated with this
session. |
PackageQuery |
getPackageQuery()
Gets a package query.
|
PackageQuery |
getPackageQueryFromInspector(PackageQueryInspector packageQueryInspector)
Gets a package query from an inspector.
|
PackageSearchOrder |
getPackageSearchOrder()
Gets a package search order.
|
PackageQueryInspector |
inspectPackageQuery()
Gets a package query inspector for this depot.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getDepotId()
Depot
Id
associated with this
session. Depot Id
associated with this sessionmandatory
- This method must be implemented. Depot getDepot() throws OperationFailedException, PermissionDeniedException
Depot
associated with this session. Depot
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartDepot()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart depot management is not
authorized, true
otherwisemandatory
- This method must be implemented. PackageQuery getPackageQuery()
mandatory
- This method must be implemented. PackageSearchOrder getPackageSearchOrder()
mandatory
- This method must be implemented. void applyPackageQuery(PackageQuery packageQuery) throws OperationFailedException, PermissionDeniedException
packageQuery
- the package queryNullArgumentException
- packageQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- packageQuery
not
of this servicemandatory
- This method must be implemented. PackageQueryInspector inspectPackageQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyPackageSequencing(PackageSearchOrder packageSearchOrder) throws OperationFailedException, PermissionDeniedException
packageSearchOrder
- the package search orderNullArgumentException
- packageSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- packageSearchOrder
not of this servicemandatory
- This method must be implemented. PackageQuery getPackageQueryFromInspector(PackageQueryInspector packageQueryInspector)
packageQueryInspector
- a package query inspectorNullArgumentException
- packageQueryInspector
is null
UnsupportedException
- packageQueryInspector
is not of this servicemandatory
- This method must be implemented.