public interface MeterSmartUtilitySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A MeterQuery
can be retrieved from this session
and mapped to this Utility
to create a virtual collection
of Meters.
The entries may be sequenced using the
MeterSearchOrder
from this session.
This Utility
has a default query that matches any meter
and a default search order that specifies no sequencing. The queries may
be examined using a MeterQueryInspector.
The query may be
modified by converting the inspector back to a MeterQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyMeterQuery(MeterQuery meterQuery)
Applies a meter query to this utility.
|
void |
applyMeterSequencing(MeterSearchOrder meterSearchOrder)
Applies a meter search order to this utility.
|
boolean |
canManageSmartUtilities()
Tests if this user can manage smart utilities.
|
MeterQuery |
getMeterQuery()
Gets a meter query.
|
MeterQuery |
getMeterQueryFromInspector(MeterQueryInspector meterQueryInspector)
Gets a meter query from an inspector.
|
MeterSearchOrder |
getMeterSearchOrder()
Gets a meter search order.
|
Utility |
getUtility()
Gets the
Utility associated with this session. |
Id |
getUtilityId()
Gets the
Utility Id associated with this
session. |
MeterQueryInspector |
inspectMeterQuery()
Gets a meter query inspector for this utility.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getUtilityId()
Utility
Id
associated with this
session. Utility Id
associated with this sessionmandatory
- This method must be implemented. Utility getUtility() throws OperationFailedException, PermissionDeniedException
Utility
associated with this session. Utility
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartUtilities()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer smart operations. false
if smart utility methods are not
authorized, true
otherwisemandatory
- This method must be implemented. MeterQuery getMeterQuery()
mandatory
- This method must be implemented. MeterSearchOrder getMeterSearchOrder()
mandatory
- This method must be implemented. void applyMeterQuery(MeterQuery meterQuery) throws OperationFailedException, PermissionDeniedException
meterQuery
- the meter queryNullArgumentException
- meterQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- meterQuery
not of
this servicemandatory
- This method must be implemented. MeterQueryInspector inspectMeterQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyMeterSequencing(MeterSearchOrder meterSearchOrder) throws OperationFailedException, PermissionDeniedException
meterSearchOrder
- the meter search orderNullArgumentException
- meterSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- meterSearchOrder
not of this servicemandatory
- This method must be implemented. MeterQuery getMeterQueryFromInspector(MeterQueryInspector meterQueryInspector)
meterQueryInspector
- a meter query inspectorNullArgumentException
- meterQueryInspector
is null
UnsupportedException
- meterQueryInspector
is not of this servicemandatory
- This method must be implemented.