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