public interface AssetSmartRepositorySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An AssetQuery
can be retrieved from this session
and mapped to this Repository
to create a virtual
collection of Assets.
The assets may be sequenced using the
AssetSearchOrder
from this session.
This Repository
has a default query that matches any
asset and a default search order that specifies no sequencing. The queries
may be examined using an AssetQueryInspector.
The query may
be modified by converting the inspector back to an AssetQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyAssetQuery(AssetQuery assetQuery)
Applies an asset query to this repository.
|
void |
applyAssetSequencing(AssetSearchOrder assetSearchOrder)
Applies an asset search order to this repository.
|
boolean |
canManageSmartRepository()
Tests if this user can manage smart repository.
|
AssetQuery |
getAssetQuery()
Gets na asset query.
|
AssetQuery |
getAssetQueryFromInspector(AssetQueryInspector assetQueryInspector)
Gets an asset query from an inspector.
|
AssetSearchOrder |
getAssetSearchOrder()
Gets an asset search order.
|
Repository |
getRepository()
Gets the
Repository associated with this session. |
Id |
getRepositoryId()
Gets the
Repository Id associated with
this session. |
AssetQueryInspector |
inspectAssetQuery()
Gets an asset query inspector for this repository.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getRepositoryId()
Repository
Id
associated with
this session. Repository Id
associated with this sessionmandatory
- This method must be implemented. Repository getRepository() throws OperationFailedException, PermissionDeniedException
Repository
associated with this session. Repository
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartRepository()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart repository management is not
authorized, true
otherwisemandatory
- This method must be implemented. AssetQuery getAssetQuery()
mandatory
- This method must be implemented. AssetSearchOrder getAssetSearchOrder()
mandatory
- This method must be implemented. void applyAssetQuery(AssetQuery assetQuery) throws OperationFailedException, PermissionDeniedException
assetQuery
- the asset queryNullArgumentException
- assetQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- assetQuery
not of
this servicemandatory
- This method must be implemented. AssetQueryInspector inspectAssetQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyAssetSequencing(AssetSearchOrder assetSearchOrder) throws OperationFailedException, PermissionDeniedException
assetSearchOrder
- the asset search orderNullArgumentException
- assetSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- assetSearchOrder
not of this servicemandatory
- This method must be implemented. AssetQuery getAssetQueryFromInspector(AssetQueryInspector assetQueryInspector)
assetQueryInspector
- a resorce relationship query inspectorNullArgumentException
- assetQueryInspector
is null
UnsupportedException
- assetQueryInspector
is not of this servicemandatory
- This method must be implemented.