public interface ProcedureCookbookSession extends OsidSession
This session provides methods to retrieve Procedure to
Cookbook mappings. A Procedure may appear in
multiple Cookbooks. Each Cookbook 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 |
canLookupProcedureCookbookMappings()
Tests if this user can perform lookups of procedure/cook book
mappings.
|
IdList |
getCookbookIdsByProcedure(Id procedureId)
Gets the list of
Cookbook Ids mapped to
a Procedure. |
CookbookList |
getCookbooksByProcedure(Id procedureId)
Gets the list of
Cookbook objects mapped to a
Procedure. |
IdList |
getProcedureIdsByCookbook(Id cookbookId)
Gets the list of Procedure Ids associated with an
Cookbook. |
IdList |
getProcedureIdsByCookbooks(IdList cookbookIds)
Gets the list of
Procedure Ids corresponding to a list
of Cookbook objects. |
ProcedureList |
getProceduresByCookbook(Id cookbookId)
Gets the list of
Procedures associated with an
Cookbook. |
ProcedureList |
getProceduresByCookbooks(IdList cookbookIds)
Gets the list of
Procedures corresponding to a list of
Cookbooks. |
void |
useComparativeCookbookView()
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 |
usePlenaryCookbookView()
A complete view of the
Procedure and Cookbook
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupProcedureCookbookMappings()
PERMISSION_DENIED.
This is intendedas 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 useComparativeCookbookView()
mandatory - This method is must be implemented. void usePlenaryCookbookView()
Procedure and Cookbook
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 getProcedureIdsByCookbook(Id cookbookId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Cookbook.
cookbookId - Id of an Cookbook. Ids NotFoundException - cookbookId is not
foundNullArgumentException - cookbookId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProcedureList getProceduresByCookbook(Id cookbookId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Procedures associated with an
Cookbook. cookbookId - Id of an Cookbook NotFoundException - cookbookId is not
foundNullArgumentException - cookbookId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getProcedureIdsByCookbooks(IdList cookbookIds) throws OperationFailedException, PermissionDeniedException
Procedure Ids corresponding to a list
of Cookbook objects.cookbookIds - list of cook book Ids Ids NullArgumentException - cookbookIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProcedureList getProceduresByCookbooks(IdList cookbookIds) throws OperationFailedException, PermissionDeniedException
Procedures corresponding to a list of
Cookbooks. cookbookIds - list of cook book Ids NullArgumentException - cookbookIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCookbookIdsByProcedure(Id procedureId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Cookbook Ids mapped to
a Procedure. procedureId - Id of a Procedure Ids NotFoundException - procedureId is not
foundNullArgumentException - procedureId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CookbookList getCookbooksByProcedure(Id procedureId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Cookbook objects mapped to a
Procedure. procedureId - Id of a Procedure NotFoundException - procedureId is not
foundNullArgumentException - procedureId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.