public interface ResourceSmartBinSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ResourceQuery
can be retrieved from this
session and mapped to this Bin
to create a virtual
collection of Resources.
The resources may be sequenced
using the ResourceSearchOrder
from this session.
This Bin
has a default query that matches any resource
and a default search order that specifies no sequencing. The queries may
be examined using a ResourceQueryInspector.
The query may
be modified by converting the inspector back to a ResourceQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyResourceQuery(ResourceQuery resourceQuery)
Applies a resource query to this bin.
|
void |
applyResourceSequencing(ResourceSearchOrder resourceSearchOrder)
Applies a resource search order to this bin.
|
boolean |
canManageSmartBins()
Tests if this user can manage smart bins.
|
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
ResourceQuery |
getResourceQuery()
Gets a resource query.
|
ResourceQuery |
getResourceQueryFromInspector(ResourceQueryInspector resourceQueryInspector)
Gets a resource query from an inspector.
|
ResourceSearchOrder |
getResourceSearchOrder()
Gets a resource search order.
|
ResourceQueryInspector |
inspectResourceQuery()
Gets a resource query inspector for this bin.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBinId()
Bin
Id
associated with this
session. Bin Id
associated with this sessionmandatory
- This method must be implemented. Bin getBin() throws OperationFailedException, PermissionDeniedException
Bin
associated with this session. Bin
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartBins()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart bin management is not
authorized, true
otherwisemandatory
- This method must be implemented. ResourceQuery getResourceQuery()
mandatory
- This method must be implemented. ResourceSearchOrder getResourceSearchOrder()
mandatory
- This method must be implemented. void applyResourceQuery(ResourceQuery resourceQuery) throws OperationFailedException, PermissionDeniedException
resourceQuery
- the resource queryNullArgumentException
- resourceQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- resourceQuery
not
of this servicemandatory
- This method must be implemented. ResourceQueryInspector inspectResourceQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyResourceSequencing(ResourceSearchOrder resourceSearchOrder) throws OperationFailedException, PermissionDeniedException
resourceSearchOrder
- the resource search orderNullArgumentException
- resourceSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- resourceSearchOrder
not of this servicemandatory
- This method must be implemented. ResourceQuery getResourceQueryFromInspector(ResourceQueryInspector resourceQueryInspector)
resourceQueryInspector
- a resource query inspectorNullArgumentException
- resourceQueryInspector
is null
UnsupportedException
- resourceQueryInspector
is not of this servicemandatory
- This method must be implemented.