Interface CreditSmartBillingSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCreditQuery(CreditQuery creditQuery) Applies a credit query to this billing.voidapplyCreditSequencing(CreditSearchOrder creditSearchOrder) Applies a credit search order to this billing.booleanTests if this user can manage smart billings.Gets theBillingassociated with this session.Gets theBillingIdassociated with this session.Gets a credit query.getCreditQueryFromInspector(CreditQueryInspector creditQueryInspector) Gets a credit query from an inspector.Gets a credit search order.Gets a credit query inspector for this billing.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
-
getBillingId
Id getBillingId()Gets theBillingIdassociated with this session.- Returns:
- the
Billing Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBilling
Gets theBillingassociated with this session.- Returns:
- the
Billingassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartBillings
boolean canManageSmartBillings()Tests if this user can manage smart billings. 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 billing management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getCreditQuery
CreditQuery getCreditQuery()Gets a credit query.- Returns:
- the credit query
- Compliance:
mandatory- This method must be implemented.
-
getCreditSearchOrder
CreditSearchOrder getCreditSearchOrder()Gets a credit search order.- Returns:
- the credit search order
- Compliance:
mandatory- This method must be implemented.
-
applyCreditQuery
void applyCreditQuery(CreditQuery creditQuery) throws OperationFailedException, PermissionDeniedException Applies a credit query to this billing.- Parameters:
creditQuery- the credit query- Throws:
NullArgumentException-creditQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-creditQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectCreditQuery
CreditQueryInspector inspectCreditQuery() throws OperationFailedException, PermissionDeniedExceptionGets a credit query inspector for this billing.- Returns:
- the credit query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyCreditSequencing
void applyCreditSequencing(CreditSearchOrder creditSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a credit search order to this billing.- Parameters:
creditSearchOrder- the credit search order- Throws:
NullArgumentException-creditSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-creditSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getCreditQueryFromInspector
Gets a credit query from an inspector.- Parameters:
creditQueryInspector- a query inspector- Returns:
- the credit query
- Throws:
NullArgumentException-creditQueryInspectorisnullUnsupportedException-creditQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-