public interface CreditSmartBillingSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A CreditQuery can be retrieved from this session
and mapped to this Billing to create a virtual collection
of Credits. The credits may be sequenced using the
CreditSearchOrder from this session.
This Billing has a default query that matches any
credit and a default search order that specifies no sequencing. The
queries may be examined using a CreditQueryInspector. The
query may be modified by converting the inspector back to a
CreditQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
applyCreditQuery(CreditQuery creditQuery)
Applies a credit query to this billing.
|
void |
applyCreditSequencing(CreditSearchOrder creditSearchOrder)
Applies a credit search order to this billing.
|
boolean |
canManageSmartBillings()
Tests if this user can manage smart billings.
|
Billing |
getBilling()
Gets the
Billing associated with this session. |
Id |
getBillingId()
Gets the
Billing Id associated with this
session. |
CreditQuery |
getCreditQuery()
Gets a credit query.
|
CreditQuery |
getCreditQueryFromInspector(CreditQueryInspector creditQueryInspector)
Gets a credit query from an inspector.
|
CreditSearchOrder |
getCreditSearchOrder()
Gets a credit search order.
|
CreditQueryInspector |
inspectCreditQuery()
Gets a credit query inspector for this billing.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBillingId()
Billing Id associated with this
session. Billing Id associated with this sessionmandatory - This method must be implemented. Billing getBilling() throws OperationFailedException, PermissionDeniedException
Billing associated with this session. Billing associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSmartBillings()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false if smart billing management is not
authorized, true otherwisemandatory - This method must be implemented. CreditQuery getCreditQuery()
mandatory - This method must be implemented. CreditSearchOrder getCreditSearchOrder()
mandatory - This method must be implemented. void applyCreditQuery(CreditQuery creditQuery) throws OperationFailedException, PermissionDeniedException
creditQuery - the credit queryNullArgumentException - creditQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - creditQuery not
of this servicemandatory - This method must be implemented. CreditQueryInspector inspectCreditQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyCreditSequencing(CreditSearchOrder creditSearchOrder) throws OperationFailedException, PermissionDeniedException
creditSearchOrder - the credit search orderNullArgumentException - creditSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - creditSearchOrder
not of this servicemandatory - This method must be implemented. CreditQuery getCreditQueryFromInspector(CreditQueryInspector creditQueryInspector)
creditQueryInspector - a query inspectorNullArgumentException - creditQueryInspector
is null UnsupportedException - creditQueryInspector
is not of this servicemandatory - This method must be implemented.