public interface SummarySession extends OsidSession
This session defines methods for retrieving payment summaries.
This lookup session defines several views:
Summaries
with the SummaryAdminSession.
The methods useFederatedBusinessView()
and
useIsolatedBusinessView()
behave as a radio group and one should
be selected before invoking any lookup methods.
Summaries may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
Summary.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupSummaries()
Tests if this user can perform
Summary lookups. |
Business |
getBusiness()
Gets the
Business associated with this session. |
Id |
getBusinessId()
Gets the
Business Id associated with
this session. |
Summary |
getCurrentSummaryForCustomer(Id customerId)
Gets the current
Summary for the given customer. |
SummaryList |
getPastDueSummaries()
Gets a
SummaryList of currently past due payments. |
SummaryList |
getSummaries()
Gets all
Summaries. |
SummaryList |
getSummariesByPeriod(Id periodId)
Gets a
SummaryList for the given period. |
SummaryList |
getSummariesByPeriodForCustomer(Id customerId,
Id periodId)
Gets a
SummaryList for the given customer and billing
period. |
SummaryList |
getSummariesForCustomer(Id customerId)
Gets a
SummaryList for the given customer. |
void |
useComparativeSummaryView()
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 |
useFederatedBusinessView()
Federates the view for methods in this session.
|
void |
useIsolatedBusinessView()
Isolates the view for methods in this session.
|
void |
usePlenarySummaryView()
A complete view of the
Summary returns is desired. |
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 canLookupSummaries()
Summary
lookups. 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 a PERMISSION_DENIED.
This is intended as a
hint to an application that may not offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeSummaryView()
mandatory
- This method is must be implemented. void usePlenarySummaryView()
Summary
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. void useFederatedBusinessView()
mandatory
- This method is must be implemented. void useIsolatedBusinessView()
mandatory
- This method is must be implemented. Summary getCurrentSummaryForCustomer(Id customerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Summary
for the given customer.customerId
- a customer Id
Summary
NotFoundException
- customerId
is not
foundNullArgumentException
- customerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SummaryList getSummariesForCustomer(Id customerId) throws OperationFailedException, PermissionDeniedException
SummaryList
for the given customer. In plenary
mode, the returned list contains all known summaries or an error
results. Otherwise, the returned list may contain only those summaries
that are accessible through this session.customerId
- a customer Id
Summary
listNullArgumentException
- customerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SummaryList getSummariesByPeriod(Id periodId) throws OperationFailedException, PermissionDeniedException
SummaryList
for the given period. In plenary
mode, the returned list contains all known summaries or an error
results. Otherwise, the returned list may contain only those summaries
that are accessible through this session.periodId
- a period Id
Summary
listNullArgumentException
- periodId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SummaryList getSummariesByPeriodForCustomer(Id customerId, Id periodId) throws OperationFailedException, PermissionDeniedException
SummaryList
for the given customer and billing
period. In plenary mode, the returned list contains all known
summaries or an error results. Otherwise, the returned list may
contain only those summaries that are accessible through this session.customerId
- a customer Id
periodId
- a period Id
Summary
listNullArgumentException
- customerId
or
periodId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SummaryList getPastDueSummaries() throws OperationFailedException, PermissionDeniedException
SummaryList
of currently past due payments. In
plenary mode, the returned list contains all known summaries or an
error results. Otherwise, the returned list may contain only those
summaries that are accessible through this session. Summary
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SummaryList getSummaries() throws OperationFailedException, PermissionDeniedException
Summaries.
In plenary mode, the returned list
contains all known summaries or an error results. Otherwise, the
returned list may contain only those summaries that are accessible
through this session. Summary
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.