Interface ValueEnablerSmartConfigurationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
configurations. A ValueEnablerQuery can be retrieved from this
session and mapped to this Configuration to create a virtual
collection of value enablers. The value enablers may be sequenced using
the ValueEnablerSearchOrder from this session.
This Configuration has a default query that matches any value
enabler and a default search order that specifies no sequencing. The
queries may be examined using a ValueEnablerQueryInspector . The
query may be modified by converting the inspector back to a
ValueEnablerQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyValueEnablerQuery(ValueEnablerQuery valueEnablerQuery) Applies a value enabler query to this configuration.voidapplyValueEnablerSequencing(ValueEnablerSearchOrder valueEnablerSearchOrder) Applies a value enabler search order to this configuration.booleanTests if this user can manage smart configurations.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.Gets a value enabler query.getValueEnablerQueryFromInspector(ValueEnablerQueryInspector valueEnablerQueryInspector) Gets a value enabler query from an inspector.Gets a value enabler search order.Gets a value enabler query inspector for this configuration.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getConfigurationId
Id getConfigurationId()Gets theConfigurationIdassociated with this session.- Returns:
- the
Configuration Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getConfiguration
Gets theConfigurationassociated with this session.- Returns:
- the configuration
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartConfigurations
boolean canManageSmartConfigurations()Tests if this user can manage smart configurations. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart configuration management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getValueEnablerQuery
ValueEnablerQuery getValueEnablerQuery()Gets a value enabler query.- Returns:
- the value enabler query
- Compliance:
mandatory- This method must be implemented.
-
getValueEnablerSearchOrder
ValueEnablerSearchOrder getValueEnablerSearchOrder()Gets a value enabler search order.- Returns:
- the value enabler search order
- Compliance:
mandatory- This method must be implemented.
-
applyValueEnablerQuery
void applyValueEnablerQuery(ValueEnablerQuery valueEnablerQuery) throws OperationFailedException, PermissionDeniedException Applies a value enabler query to this configuration.- Parameters:
valueEnablerQuery- the value enabler query- Throws:
NullArgumentException-valueEnablerQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-valueEnablerQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectValueEnablerQuery
ValueEnablerQueryInspector inspectValueEnablerQuery() throws OperationFailedException, PermissionDeniedExceptionGets a value enabler query inspector for this configuration.- Returns:
- the value enabler query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyValueEnablerSequencing
void applyValueEnablerSequencing(ValueEnablerSearchOrder valueEnablerSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a value enabler search order to this configuration.- Parameters:
valueEnablerSearchOrder- the value enabler search order- Throws:
NullArgumentException-valueEnablerSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-valueEnablerSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getValueEnablerQueryFromInspector
ValueEnablerQuery getValueEnablerQueryFromInspector(ValueEnablerQueryInspector valueEnablerQueryInspector) Gets a value enabler query from an inspector.- Parameters:
valueEnablerQueryInspector- a value enabler query inspector- Returns:
- the value enabler query
- Throws:
NullArgumentException-valueEnablerQueryInspectorisnullUnsupportedException-valueEnablerQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-