public interface PostEntryBusinessAssignmentSession extends OsidSession
This session provides methods to re-assign PostEntries
to Business objects. A PostEntry may appear
in multiple Business objects and removing the last
reference to a PostEntry is the equivalent of deleting it.
Each Business may have its own authorizations governing who
is allowed to operate on it.
Adding a reference of a PostEntry to another
Business is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignPostEntryToBusiness(Id postEntryId,
Id businessId)
Adds an existing
PostEntry to a Business. |
boolean |
canAssignPostEntries()
Tests if this user can alter entry/business mappings.
|
boolean |
canAssignPostEntriesToBusiness(Id businessId)
Tests if this user can alter entry/business mappings.
|
IdList |
getAssignableBusinessIds(Id businessId)
Gets a list of businesses including and under the given business node
in which any post entry can be assigned.
|
IdList |
getAssignableBusinessIdsForPostEntry(Id businessId,
Id postEntryId)
Gets a list of businesses including and under the given business node
in which a specific post entry can be assigned.
|
void |
unassignPostEntryFromBusiness(Id postEntryId,
Id businessId)
Removes a
PostEntry from a Business. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignPostEntries()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignPostEntriesToBusiness(Id businessId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users.businessId - the Id of the Business
false if mapping is not authorized, true
otherwiseNullArgumentException - businessId is
null mandatory - This method must be implemented. IdList getAssignableBusinessIds(Id businessId) throws OperationFailedException
businessId - the Id of the Business
Ids NullArgumentException - businessId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableBusinessIdsForPostEntry(Id businessId, Id postEntryId) throws OperationFailedException
businessId - the Id of the Business
postEntryId - the Id of the PostEntry
Ids NullArgumentException - businessId or
postEntryId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignPostEntryToBusiness(Id postEntryId, Id businessId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
PostEntry to a Business.
postEntryId - the Id of the PostEntry
businessId - the Id of the Business
AlreadyExistsException - postEntryId is
already assigned to businessId NotFoundException - postEntryId or
businessId not foundNullArgumentException - postEntryId or
businessId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignPostEntryFromBusiness(Id postEntryId, Id businessId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PostEntry from a Business. postEntryId - the Id of the PostEntry
businessId - the Id of the Business
NotFoundException - postEntryId or
businessId not found or postEntryId
not assigned to businessId NullArgumentException - postEntryId or
businessId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.