public interface PostEntryBusinessSession extends OsidSession
This session provides methods to retrieve PostEntry
to
Business
mappings. A PostEntry
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 |
canLookupPostEntryBusinessMappings()
Tests if this user can perform lookups of entry/business mappings.
|
BusinessList |
getBusinessesByPostEntry(Id postEntryId)
Gets the
Business objects mapped to a PostEntry. |
IdList |
getBusinessIdsByPostEntry(Id postEntryId)
Gets the
Business Ids mapped to a
PostEntry. |
PostEntryList |
getPostEntriesByBusiness(Id businessId)
Gets the list of
PostEntry associated with a
Business. |
PostEntryList |
getPostEntriesByBusinesses(IdList businessIds)
Gets the list of
PostEntries corresponding to a list of
Business objects. |
IdList |
getPostEntryIdsByBusiness(Id businessId)
Gets the list of
PostEntry Ids associated with a
Business. |
IdList |
getPostEntryIdsByBusinesses(IdList businessIds)
Gets the list of
PostEntry Ids corresponding to a list
of Business objects. |
void |
useComparativePostEntryBusinessView()
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 |
usePlenaryPostEntryBusinessView()
A complete view of the
PostEntry and Business
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupPostEntryBusinessMappings()
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 useComparativePostEntryBusinessView()
mandatory
- This method is must be implemented. void usePlenaryPostEntryBusinessView()
PostEntry
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 getPostEntryIdsByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PostEntry 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. PostEntryList getPostEntriesByBusiness(Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PostEntry
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 getPostEntryIdsByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
PostEntry 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. PostEntryList getPostEntriesByBusinesses(IdList businessIds) throws OperationFailedException, PermissionDeniedException
PostEntries
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 getBusinessIdsByPostEntry(Id postEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business
Ids
mapped to a
PostEntry.
postEntryId
- Id
of a PostEntry
NotFoundException
- postEntryId
is not
foundNullArgumentException
- postEntryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. BusinessList getBusinessesByPostEntry(Id postEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Business
objects mapped to a PostEntry.
postEntryId
- Id
of a PostEntry
NotFoundException
- postEntryId
is not
foundNullArgumentException
- postEntryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.