Interface StatisticSmartUtilitySession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A StatisticQuery can be retrieved from this session and
mapped to this Utility to create a virtual collection of
Statistics . The entries may be sequenced using the
StatisticSearchOrder from this session.
This Utility has a default query that matches any statistic
and a default search order that specifies no sequencing. The queries may
be examined using a StatisticQueryInspector . The query may be
modified by converting the inspector back to a StatisticQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStatisticQuery(StatisticQuery statisticQuery) Applies a statistic query to this utility.voidapplyStatisticSequencing(StatisticSearchOrder statisticSearchOrder) Applies a statistic search order to this utility.booleanTests if this user can manage smart utilities.Gets a statistic query.getStatisticQueryFromInspector(StatisticQueryInspector statisticQueryInspector) Gets a statistic query from an inspector.Gets a statistic search order.Gets theUtilityassociated with this session.Gets theUtilityIdassociated with this session.Gets a statistic query inspector for this utility.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
-
getUtilityId
Id getUtilityId()Gets theUtilityIdassociated with this session.- Returns:
- the
Utility Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getUtility
Gets theUtilityassociated with this session.- Returns:
- the
Utilityassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartUtilities
boolean canManageSmartUtilities()Tests if this user can manage smart utilities. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer smart operations.- Returns:
falseif smart utility methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getStatisticQuery
StatisticQuery getStatisticQuery()Gets a statistic query.- Returns:
- the statistic query
- Compliance:
mandatory- This method must be implemented.
-
getStatisticSearchOrder
StatisticSearchOrder getStatisticSearchOrder()Gets a statistic search order.- Returns:
- the statistic search order
- Compliance:
mandatory- This method must be implemented.
-
applyStatisticQuery
void applyStatisticQuery(StatisticQuery statisticQuery) throws OperationFailedException, PermissionDeniedException Applies a statistic query to this utility.- Parameters:
statisticQuery- the statistic query- Throws:
NullArgumentException-statisticQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-statisticQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectStatisticQuery
StatisticQueryInspector inspectStatisticQuery() throws OperationFailedException, PermissionDeniedExceptionGets a statistic query inspector for this utility.- Returns:
- the statistic query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyStatisticSequencing
void applyStatisticSequencing(StatisticSearchOrder statisticSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a statistic search order to this utility.- Parameters:
statisticSearchOrder- the statistic search order- Throws:
NullArgumentException-statisticSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-statisticSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getStatisticQueryFromInspector
Gets a statistic query from an inspector.- Parameters:
statisticQueryInspector- a statistic query inspector- Returns:
- the statistic query
- Throws:
NullArgumentException-statisticQueryInspectorisnullUnsupportedException-statisticQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-