public interface PayerBusinessSession extends OsidSession
This session provides methods to retrieve Payer to
Business mappings. A Payer may appear in
multiple Business objects. Each catalog may have its own
authorizations governing who is allowed to look at it.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupPayerBusinessMappings()
Tests if this user can perform lookups of payer/business mappings.
|
BusinessList |
getBusinessesByPayer(Id payerId)
Gets the
Business objects mapped to a Payer. |
IdList |
getBusinessIdsByPayer(Id payerId)
Gets the
Business Ids mapped to a
Payer. |
IdList |
getPayerIdsByBusiness(Id businessId)
Gets the list of
Payer Ids associated with a
Business. |
IdList |
getPayerIdsByBusinesses(IdList businessIds)
Gets the list of
Payer Ids corresponding to a list of
Business objects. |
PayerList |
getPayersByBusiness(Id businessId)
Gets the list of
Payers associated with a
Business. |
PayerList |
getPayersByBusinesses(IdList businessIds)
Gets the list of
Payers corresponding to a list of
Business objects. |
void |
useComparativePayerBusinessView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryPayerBusinessView()
A complete view of the
Payer and Business
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupPayerBusinessMappings()
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativePayerBusinessView()
mandatory - This method is must be implemented. void usePlenaryPayerBusinessView()
Payer and Business
returns is desired. Methods will return what is requested or
result in an error. This view is used when greater precision is
desired at the expense of interoperability.mandatory - This method is must be implemented. IdList getPayerIdsByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Payer Ids associated with a
Business. businessId - Id of the Business Ids NotFoundException - businessId is not
foundNullArgumentException - businessId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. PayerList getPayersByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Payers associated with a
Business. businessId - Id of the Business NotFoundException - businessId is not
foundNullArgumentException - businessId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getPayerIdsByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
Payer Ids corresponding to a list of
Business objects.businessIds - list of business Ids Ids NullArgumentException - businessIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. PayerList getPayersByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
Payers corresponding to a list of
Business objects.businessIds - list of business Ids NullArgumentException - businessIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getBusinessIdsByPayer(Id payerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business Ids mapped to a
Payer. payerId - Id of a Payer Ids NotFoundException - payerId is not foundNullArgumentException - payerId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BusinessList getBusinessesByPayer(Id payerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business objects mapped to a Payer.
payerId - Id of a Payer NotFoundException - payerId is not foundNullArgumentException - payerId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.