public interface ProcedureCookbookAssignmentSession extends OsidSession
This session provides methods to re-assign Procedures to
Cookbooks. A Procedure may map to multiple
Cookbooks and removing the last reference to a
Procedure 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 Procedure to another
Cookbook is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignProcedureToCookbook(Id procedureId,
Id cookbookId)
Adds an existing
Procedure to an Cookbook. |
boolean |
canAssignProcedures()
Tests if this user can alter procedure/cook book mappings.
|
boolean |
canAssignProceduresToCookbook(Id cookbookId)
Tests if this user can alter procedure/cook book mappings.
|
IdList |
getAssignableCookbookIds(Id cookbookId)
Gets a list of cook books including and under the given cook book node
in which any procedure can be assigned.
|
IdList |
getAssignableCookbookIdsForProcedure(Id cookbookId,
Id procedureId)
Gets a list of cook books including and under the given cook book node
in which a specific procedure can be assigned.
|
void |
unassignProcedureFromCookbook(Id procedureId,
Id cookbookId)
Removes a
Procedure from an Cookbook. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignProcedures()
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 canAssignProceduresToCookbook(Id cookbookId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment 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 getAssignableCookbookIdsForProcedure(Id cookbookId, Id procedureId) throws OperationFailedException
cookbookId - the Id of the Cookbook
procedureId - the Id of the Procedure
Ids NullArgumentException - cookbookId or
procedureId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignProcedureToCookbook(Id procedureId, Id cookbookId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Procedure to an Cookbook.
procedureId - the Id of the Procedure
cookbookId - the Id of the Cookbook
AlreadyExistsException - procedureId is
already assigned to cookbookId NotFoundException - procedureId or
cookbookId not foundNullArgumentException - procedureId or
cookbookId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignProcedureFromCookbook(Id procedureId, Id cookbookId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Procedure from an Cookbook. procedureId - the Id of the Procedure
cookbookId - the Id of the Cookbook
NotFoundException - procedureId or
cookbookId not found or proecdureId
not assigned to cookbookId NullArgumentException - procedureId or
cookbookId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.