public interface OrganizationSmartRealmSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An OrganizationQuery
can be retrieved from this
session and mapped to this Realm
to create a virtual
collection of Organizations.
The organizations may be
sequenced using the OrganizationSearchOrder
from this
session.
This Realm
has a default query that matches any
organization and a default search order that specifies no sequencing. The
queries may be examined using an OrganizationQueryInspector.
The query may be modified by converting the inspector back to a n
OrganizationQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyOrganizationQuery(OrganizationQuery organizationQuery)
Applies an organization query to this realm.
|
void |
applyOrganizationSequencing(OrganizationSearchOrder organizationSearchOrder)
Applies an organization search order to this realm.
|
boolean |
canManageSmartRealms()
Tests if this user can manage smart realms.
|
OrganizationQuery |
getOrganizationQuery()
Gets an organization query.
|
OrganizationQuery |
getOrganizationQueryFromInspector(OrganizationQueryInspector organizationQueryInspector)
Gets an organization query from an inspector.
|
OrganizationSearchOrder |
getOrganizationSearchOrder()
Gets an organization search order.
|
Realm |
getRealm()
Gets the
Realm associated with this session. |
Id |
getRealmId()
Gets the
Realm Id associated with this
session. |
OrganizationQueryInspector |
inspectOrganizationQuery()
Gets an organization query inspector for this realm.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getRealmId()
Realm
Id
associated with this
session. Realm Id
associated with this sessionmandatory
- This method must be implemented. Realm getRealm() throws OperationFailedException, PermissionDeniedException
Realm
associated with this session. Realm
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartRealms()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart realm management is not
authorized, true
otherwisemandatory
- This method must be implemented. OrganizationQuery getOrganizationQuery()
mandatory
- This method must be implemented. OrganizationSearchOrder getOrganizationSearchOrder()
mandatory
- This method must be implemented. void applyOrganizationQuery(OrganizationQuery organizationQuery) throws OperationFailedException, PermissionDeniedException
organizationQuery
- the organization queryNullArgumentException
- organizationQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- organizationQuery
not of this servicemandatory
- This method must be implemented. OrganizationQueryInspector inspectOrganizationQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyOrganizationSequencing(OrganizationSearchOrder organizationSearchOrder) throws OperationFailedException, PermissionDeniedException
organizationSearchOrder
- the organization search orderNullArgumentException
- organizationSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- organizationSearchOrder
not of this servicemandatory
- This method must be implemented. OrganizationQuery getOrganizationQueryFromInspector(OrganizationQueryInspector organizationQueryInspector)
organizationQueryInspector
- a query inspectorNullArgumentException
-
organizationQueryInspector
is null
UnsupportedException
-
organizationQueryInspector
is not of this servicemandatory
- This method must be implemented.