public interface ProfileEntrySmartProfileSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ProfileEntryQuery
can be retrieved from this
session and mapped to this Profile
to create a virtual
collection of profile entries. The profile entries may be sequenced using
the ProfileEntrySearchOrder
from this session.
This Profile
has a default query that matches any
profile Item and a default search order that specifies no sequencing. The
queries may be examined using a ProfileEntryQueryInspector.
The query may be modified by converting the inspector back to a
ProfileEntryQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyProfileEntryQuery(ProfileEntryQuery profileEntryQuery)
Applies a profile entry query to this profile.
|
void |
applyProfileEntrySequencing(ProfileEntrySearchOrder profileEntrySearchOrder)
Applies a profile entry search order to this profile.
|
boolean |
canManageSmartProfiles()
Tests if this user can manage smart profiles.
|
Profile |
getProfile()
Gets the
Profile associated with this session. |
ProfileEntryQuery |
getProfileEntryQuery()
Gets a profile entry query.
|
ProfileItemQuery |
getProfileEntryQueryFromInspector(ProfileEntryQueryInspector profileEntryQueryInspector)
Gets a profile entry query from an inspector.
|
ProfileEntrySearchOrder |
getProfileEntrySearchOrder()
Gets a profile entry search order.
|
Id |
getProfileId()
Gets the
Profile Id associated with this
session. |
ProfileEntryQueryInspector |
inspectProfileEntryQuery()
Gets a profile entry query inspector for this profile.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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. ProfileEntryQuery getProfileEntryQuery()
mandatory
- This method must be implemented. ProfileEntrySearchOrder getProfileEntrySearchOrder()
mandatory
- This method must be implemented. void applyProfileEntryQuery(ProfileEntryQuery profileEntryQuery) throws OperationFailedException, PermissionDeniedException
profileEntryQuery
- the profile entry queryNullArgumentException
- profileEntryQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- profileEntryQuery
not of this servicemandatory
- This method must be implemented. ProfileEntryQueryInspector inspectProfileEntryQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyProfileEntrySequencing(ProfileEntrySearchOrder profileEntrySearchOrder) throws OperationFailedException, PermissionDeniedException
profileEntrySearchOrder
- the profile entry search orderNullArgumentException
- profileEntrySearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- profileEntrySearchOrder
not of this servicemandatory
- This method must be implemented. ProfileItemQuery getProfileEntryQueryFromInspector(ProfileEntryQueryInspector profileEntryQueryInspector)
profileEntryQueryInspector
- a profile entry query inspectorNullArgumentException
-
profileEntryQueryInspector
is null
UnsupportedException
-
profileEntryQueryInspector
is not of this servicemandatory
- This method must be implemented.