public interface ActivityBusinessSession extends OsidSession
This session provides methods to retrieve Activity to
Business mappings. An Activity 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 |
canLookupActivityBusinessMappings()
Tests if this user can perform lookups of activity/business mappings.
|
ActivityList |
getActivitiesByBusiness(Id businessId)
Gets the list of
Activity associated with a
Business. |
ActivityList |
getActivitiesByBusinesses(IdList businessIds)
Gets the list of
Activities corresponding to a list of
Business objects. |
IdList |
getActivityIdsByBusiness(Id businessId)
Gets the list of
Activity Ids associated with a
Business. |
IdList |
getActivityIdsByBusinesses(IdList businessIds)
Gets the list of
Activity Ids corresponding to a list
of Business objects. |
BusinessList |
getBusinessesByActivity(Id activityId)
Gets the
Business objects mapped to an Activity. |
IdList |
getBusinessIdsByActivity(Id activityId)
Gets the
Business Ids mapped to an
Activity. |
void |
useComparativeActivityBusinessView()
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 |
usePlenaryActivityBusinessView()
A complete view of the
Activity and Business
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupActivityBusinessMappings()
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 useComparativeActivityBusinessView()
mandatory - This method is must be implemented. void usePlenaryActivityBusinessView()
Activity 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 getActivityIdsByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Activity 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. ActivityList getActivitiesByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Activity 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 getActivityIdsByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
Activity Ids corresponding to a list
of Business objects.businessIds - list of catalog Ids Ids NullArgumentException - businessIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityList getActivitiesByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
Activities corresponding to a list of
Business objects.businessIds - list of catalog Ids NullArgumentException - businessIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getBusinessIdsByActivity(Id activityId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business Ids mapped to an
Activity. activityId - Id of an Activity NotFoundException - activityId is not
foundNullArgumentException - activityId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BusinessList getBusinessesByActivity(Id activityId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business objects mapped to an Activity.
activityId - Id of an Activity NotFoundException - activityId is not
foundNullArgumentException - activityId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.