Interface PayerLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving payers.
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
- isolated business view: All payer methods in this session
operate, retrieve and pertain to payers defined explicitly in the
current business. Using an isolated view is useful for managing
Payerswith thePayerAdminSession. - federated business view: All payer lookup methods in this session operate, retrieve and pertain to all payers defined in this business and any other payers implicitly available in this business through business inheritence.
- effective payer view: All payer lookup methods return payers where the current date falls in between the effective dates inclusive.
- any effective payer view: Payers of any effective date are returned from methods.
The methods useFederatedBusinessView() and
useIsolatedBusinessView() behave as a radio group and one should be
selected before invoking any lookup methods.
Payers may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
Payer .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performPayerlookups.Gets theBusinessassociated with this session.Gets theBusinessIdassociated with this session.Gets thePayerspecified by itsId.Gets allPayers.getPayersByCustomer(Id customerId) Gets aPayerListrelated to the given payer customer.getPayersByCustomerOnDate(Id customerId, DateTime from, DateTime to) Gets aPayerListof the given customer and effective during the entire given date range inclusive but not confined to the date range.getPayersByGenusType(Type payerGenusType) Gets aPayerListcorresponding to the given payer genusTypewhich does not include payers of types derived from the specifiedType.getPayersByIds(IdList payerIds) Gets aPayerListcorresponding to the givenIdList.getPayersByParentGenusType(Type payerGenusType) Gets aPayerListcorresponding to the given payer genusTypeand include any additional payers with genus types derived from the specifiedType.getPayersByRecordType(Type payerRecordType) Gets aPayerListcontaining the given payer recordType.getPayersByResource(Id resourceId) Gets aPayerListrelated to the given resource.getPayersByResourceOnDate(Id resourceId, DateTime from, DateTime to) Gets aPayerListof the given resource and effective during the entire given date range inclusive but not confined to the date range.getPayersOnDate(DateTime from, DateTime to) Gets aPayerListeffective during the entire given date range inclusive but not confined to the date range.voidAll payers of any effective dates are returned by methods in this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidOnly payers whose effective dates are current are returned by methods in this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of thePayerreturns is desired.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
-
getBusinessId
Id getBusinessId()Gets theBusinessIdassociated with this session.- Returns:
- the
Business Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBusiness
Gets theBusinessassociated with this session.- Returns:
- the business
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupPayers
boolean canLookupPayers()Tests if this user can performPayerlookups. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativePayerView
void useComparativePayerView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryPayerView
void usePlenaryPayerView()A complete view of thePayerreturns 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.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedBusinessView
void useFederatedBusinessView()Federates the view for methods in this session. A federated view will include payers in catalogs which are children of this catalog in the business hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedBusinessView
void useIsolatedBusinessView()Isolates the view for methods in this session. An isolated view restricts retrievals to this business only.- Compliance:
mandatory- This method is must be implemented.
-
useEffectivePayerView
void useEffectivePayerView()Only payers whose effective dates are current are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectivePayerView
void useAnyEffectivePayerView()All payers of any effective dates are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getPayer
Payer getPayer(Id payerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets thePayerspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedPayermay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aPayerand retained for compatibility. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
payerId- theIdof thePayerto retrieve- Returns:
- the returned
Payer - Throws:
NotFoundException- noPayerfound with the givenIdNullArgumentException-payerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByIds
PayerList getPayersByIds(IdList payerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aPayerListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the payers specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessiblePayersmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
payerIds- the list ofIdsto retrieve- Returns:
- the returned
PayerListlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-payerIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByGenusType
PayerList getPayersByGenusType(Type payerGenusType) throws OperationFailedException, PermissionDeniedException Gets aPayerListcorresponding to the given payer genusTypewhich does not include payers of types derived from the specifiedType. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
payerGenusType- a payer genus type- Returns:
- the returned
PayerListlist - Throws:
NullArgumentException-payerGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByParentGenusType
PayerList getPayersByParentGenusType(Type payerGenusType) throws OperationFailedException, PermissionDeniedException Gets aPayerListcorresponding to the given payer genusTypeand include any additional payers with genus types derived from the specifiedType. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
payerGenusType- a payer genus type- Returns:
- the returned
PayerListlist - Throws:
NullArgumentException-payerGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByRecordType
PayerList getPayersByRecordType(Type payerRecordType) throws OperationFailedException, PermissionDeniedException Gets aPayerListcontaining the given payer recordType. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
payerRecordType- a payer record type- Returns:
- the returned
PayerListlist - Throws:
NullArgumentException-payerRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersOnDate
PayerList getPayersOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aPayerListeffective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective in addition to being effective during the given date range. In any effective mode, effective payers and those currently expired are returned.- Parameters:
from- starting dateto- ending date- Returns:
- the returned
PayerListlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByResource
PayerList getPayersByResource(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets aPayerListrelated to the given resource. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
resourceId- a resourceId- Returns:
- the returned
PayerListlist - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByResourceOnDate
PayerList getPayersByResourceOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aPayerListof the given resource and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective in addition to being effective during the given date range. In any effective mode, effective payers and those currently expired are returned.- Parameters:
resourceId- a resourceIdfrom- starting dateto- ending date- Returns:
- the returned
PayerListlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByCustomer
PayerList getPayersByCustomer(Id customerId) throws OperationFailedException, PermissionDeniedException Gets aPayerListrelated to the given payer customer. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective. In any effective mode, effective payers and those currently expired are returned.- Parameters:
customerId- a customerId- Returns:
- the returned
PayerListlist - Throws:
NullArgumentException-customerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayersByCustomerOnDate
PayerList getPayersByCustomerOnDate(Id customerId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aPayerListof the given customer and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session. In effective mode, payers are returned that are currently effective in addition to being effective during the given date range. In any effective mode, effective payers and those currently expired are returned.- Parameters:
customerId- a customerIdfrom- starting dateto- ending date- Returns:
- the returned
PayerListlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-customerId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPayers
Gets allPayers. In plenary mode, the returned list contains all known payers or an error results. Otherwise, the returned list may contain only those payers that are accessible through this session.- Returns:
- a list of
Payers - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-