public interface MeterQuerySession extends OsidSession
This session provides methods for searching among meters. The search
query is constructed using the MeterQuery.
This session defines views that offer differing behaviors for searching.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchMeters()
Tests if this user can perform
Meter searches. |
MeterQuery |
getMeterQuery()
Gets a meter query.
|
MeterList |
getMetersByQuery(MeterQuery meterQuery)
Gets a list of meters matching the given meter query.
|
Utility |
getUtility()
Gets the
Utility associated with this session. |
Id |
getUtilityId()
Gets the
Utility Id associated with this
session. |
void |
useFederatedUtilityView()
Federates the view for methods in this session.
|
void |
useIsolatedUtilityView()
Isolates the view for methods in this session.
|
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 canSearchMeters()
Meter
searches. 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
a PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer search operations to
unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useFederatedUtilityView()
mandatory
- This method is must be implemented. void useIsolatedUtilityView()
mandatory
- This method is must be implemented. MeterQuery getMeterQuery()
mandatory
- This method must be implemented. MeterList getMetersByQuery(MeterQuery meterQuery) throws OperationFailedException, PermissionDeniedException
meterQuery
- the meter query MeterList
NullArgumentException
- meterQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- meterQuery
is not
of this servicemandatory
- This method must be implemented.