public interface PayerSmartBusinessSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A PayerQuery
can be retrieved from this session
and mapped to this Business
to create a virtual collection
of Payers.
The payers may be sequenced using the
PayerSearchOrder
from this session.
This Business
has a default query that matches any
payer and a default search order that specifies no sequencing. The queries
may be examined using a PayerQueryInspector.
The query may
be modified by converting the inspector back to a PayerQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyPayerQuery(PayerQuery payerQuery)
Applies a payer query to this business.
|
void |
applyPayerSequencing(PayerSearchOrder payerSearchOrder)
Applies a payer search order to this business.
|
boolean |
canManageSmartBusinesses()
Tests if this user can manage smart businesses.
|
Business |
getBusiness()
Gets the
Business associated with this session. |
Id |
getBusinessId()
Gets the
Business Id associated with
this session. |
PayerQuery |
getPayerQuery()
Gets a payer query.
|
PayerQuery |
getPayerQueryFromInspector(PayerQueryInspector payerQueryInspector)
Gets a payer query from an inspector.
|
PayerSearchOrder |
getPayerSearchOrder()
Gets a payer search order.
|
PayerQueryInspector |
inspectPayerQuery()
Gets a payer query inspector for this business.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBusinessId()
Business
Id
associated with
this session. Business Id
associated with this sessionmandatory
- This method must be implemented. Business getBusiness() throws OperationFailedException, PermissionDeniedException
Business
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartBusinesses()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart business management is not
authorized, true
otherwisemandatory
- This method must be implemented. PayerQuery getPayerQuery()
mandatory
- This method must be implemented. PayerSearchOrder getPayerSearchOrder()
mandatory
- This method must be implemented. void applyPayerQuery(PayerQuery payerQuery) throws OperationFailedException, PermissionDeniedException
payerQuery
- the payer queryNullArgumentException
- payerQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- payerQuery
not of
this servicemandatory
- This method must be implemented. PayerQueryInspector inspectPayerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyPayerSequencing(PayerSearchOrder payerSearchOrder) throws OperationFailedException, PermissionDeniedException
payerSearchOrder
- the payer search orderNullArgumentException
- payerSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- payerSearchOrder
not of this servicemandatory
- This method must be implemented. PayerQuery getPayerQueryFromInspector(PayerQueryInspector payerQueryInspector)
payerQueryInspector
- a query inspectorNullArgumentException
- payerQueryInspector
is null
UnsupportedException
- payerQueryInspector
is not of this servicemandatory
- This method must be implemented.