public interface FiscalPeriodBusinessSession extends OsidSession
This session provides methods to retrieve FiscalPeriod
to Business mappings. A FiscalPeriod 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 |
canLookupFiscalPeriodBusinessMappings()
Tests if this user can perform lookups of fiscal period/business
mappings.
|
BusinessList |
getBusinessesByFiscalPeriod(Id fiscalPeriodId)
Gets the
Business objects mapped to a
FiscalPeriod. |
IdList |
getBusinessIdsByFiscalPeriod(Id fiscalPeriodId)
Gets the
Business Ids mapped to a
FiscalPeriod. |
IdList |
getFiscalPeriodIdsByBusiness(Id businessId)
Gets the list of
FiscalPeriod Ids associated with a
Business. |
IdList |
getFiscalPeriodIdsByBusinesses(IdList businessIds)
Gets the list of
FiscalPeriod Ids corresponding to a
list of Business objects. |
FiscalPeriodList |
getFiscalPeriodsByBusiness(Id businessId)
Gets the list of
FiscalPeriods associated with a
Business. |
FiscalPeriodList |
getFiscalPeriodsByBusinesses(IdList businessIds)
Gets the list of
FiscalPeriods corresponding to a list
of Business objects. |
void |
useComparativeFiscalPeriodBusinessView()
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 |
usePlenaryFiscalPeriodBusinessView()
A complete view of the
FiscalPeriod and Business
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupFiscalPeriodBusinessMappings()
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 useComparativeFiscalPeriodBusinessView()
mandatory - This method is must be implemented. void usePlenaryFiscalPeriodBusinessView()
FiscalPeriod 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 getFiscalPeriodIdsByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
FiscalPeriod 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. FiscalPeriodList getFiscalPeriodsByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
FiscalPeriods 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 getFiscalPeriodIdsByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
FiscalPeriod 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. FiscalPeriodList getFiscalPeriodsByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
FiscalPeriods 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 getBusinessIdsByFiscalPeriod(Id fiscalPeriodId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business Ids mapped to a
FiscalPeriod. fiscalPeriodId - Id of a FiscalPeriod
NotFoundException - fiscalPeriodId is
not foundNullArgumentException - fiscalPeriodId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BusinessList getBusinessesByFiscalPeriod(Id fiscalPeriodId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business objects mapped to a
FiscalPeriod. fiscalPeriodId - Id of a FiscalPeriod
NotFoundException - fiscalPeriodId is
not foundNullArgumentException - fiscalPeriodId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.