OSID Logo
OSID Specifications
recipe package
Version 3.0.0
Interfaceosid.recipe.ProcedureCookbookSession
Implementsosid.OsidSession
Used Byosid.recipe.RecipeManager
osid.recipe.RecipeProxyManager
Description

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:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupProcedureCookbookMappings
Description

Tests if this user can perform lookups of procedure/cookbook mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a PERMISSION_DENIED . This is intendedas a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnbooleanfalse if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeCookbookView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryCookbookView
Description

A complete view of the 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.

CompliancemandatoryThis method is must be implemented.
MethodgetProcedureIdsByCookbook
Description

Gets the list of Procedure Ids associated with an Cookbook .

Parametersosid.id.IdcookbookIdId of an Cookbook .
Returnosid.id.IdListlist of related procedure Ids
ErrorsNOT_FOUNDcookbookId is not found
NULL_ARGUMENTcookbookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProceduresByCookbook
Description

Gets the list of Procedures associated with an Cookbook .

Parametersosid.id.IdcookbookIdId of an Cookbook
Returnosid.recipe.ProcedureListlist of related procedures
ErrorsNOT_FOUNDcookbookId is not found
NULL_ARGUMENTcookbookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProcedureIdsByCookbooks
Description

Gets the list of Procedure Ids corresponding to a list of Cookbook objects.

Parametersosid.id.IdListcookbookIdslist of cookbook Ids
Returnosid.id.IdListlist of procedure Ids
ErrorsNULL_ARGUMENTcookbookIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProceduresByCookbooks
Description

Gets the list of Procedures corresponding to a list of Cookbooks .

Parametersosid.id.IdListcookbookIdslist of cookbook Ids
Returnosid.recipe.ProcedureListlist of procedures
ErrorsNULL_ARGUMENTcookbookIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCookbookIdsByProcedure
Description

Gets the list of Cookbook Ids mapped to a Procedure .

Parametersosid.id.IdprocedureIdId of a Procedure
Returnosid.id.IdListlist of cookbook Ids
ErrorsNOT_FOUNDprocedureId is not found
NULL_ARGUMENTprocedureId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCookbooksByProcedure
Description

Gets the list of Cookbook objects mapped to a Procedure .

Parametersosid.id.IdprocedureIdId of a Procedure
Returnosid.recipe.CookbookListlist of cookbooks
ErrorsNOT_FOUNDprocedureId is not found
NULL_ARGUMENTprocedureId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.