public interface ProfileItemSmartProfileSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ProfileItemQuery can be retrieved from this
session and mapped to this Profile to create a virtual
collection of ProfileItems. The profile Items may be
sequenced using the ProfileItemSearchOrder from this
session.
This Profile has a default query that matches any
profileItem and a default search order that specifies no sequencing. The
queries may be examined using a ProfileItemQueryInspector.
The query may be modified by converting the inspector back to a
ProfileItemQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
applyProfileItemQuery(ProfileItemQuery profileItemQuery)
Applies a profile item query to this profile.
|
void |
applyProfileItemSequencing(ProfileItemSearchOrder profileItemSearchOrder)
Applies a profile item search order to this profile.
|
boolean |
canManageSmartProfiles()
Tests if this user can manage smart profile.
|
Profile |
getProfile()
Gets the
Profile associated with this session. |
Id |
getProfileId()
Gets the
Profile Id associated with this
session. |
ProfileItemQuery |
getProfileItemQuery()
Gets a profile item query.
|
ProfileItemQuery |
getProfileItemQueryFromInspector(ProfileItemQueryInspector profileItemQueryInspector)
Gets a profile item query from an inspector.
|
ProfileItemSearchOrder |
getProfileItemSearchOrder()
Gets a profile item search order.
|
ProfileItemQueryInspector |
inspectProfileItemQuery()
Gets a profile item query inspector for this profile.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getProfileId()
Profile Id associated with this
session. Profile Id associated with this sessionmandatory - This method must be implemented. Profile getProfile() throws OperationFailedException, PermissionDeniedException
Profile associated with this session. Profile associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSmartProfiles()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false if smart profile management is not
authorized, true otherwisemandatory - This method must be implemented. ProfileItemQuery getProfileItemQuery()
mandatory - This method must be implemented. ProfileItemSearchOrder getProfileItemSearchOrder()
mandatory - This method must be implemented. void applyProfileItemQuery(ProfileItemQuery profileItemQuery) throws OperationFailedException, PermissionDeniedException
profileItemQuery - the profile item queryNullArgumentException - profileItemQuery
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - profileItemQuery
not of this servicemandatory - This method must be implemented. ProfileItemQueryInspector inspectProfileItemQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyProfileItemSequencing(ProfileItemSearchOrder profileItemSearchOrder) throws OperationFailedException, PermissionDeniedException
profileItemSearchOrder - the profile item search orderNullArgumentException - profileItemSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - profileItemSearchOrder
not of this servicemandatory - This method must be implemented. ProfileItemQuery getProfileItemQueryFromInspector(ProfileItemQueryInspector profileItemQueryInspector)
profileItemQueryInspector - a profile item query inspectorNullArgumentException -
profileItemQueryInspector is null UnsupportedException - profileItemQueryInspector
is not of this servicemandatory - This method must be implemented.