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

This session provides methods to retrieve Direction to Cookbook directions. A Direction may appear in multiple Cookbook catalogs. 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
MethodcanLookupDirectionCookbookDirections
Description

Tests if this user can perform lookups of direction/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 intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnbooleanfalse if looking up directions is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeDirectionCookbookView
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.
MethodusePlenaryDirectionCookbookView
Description

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

Gets the list of Direction Ids associated with a Cookbook .

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

Gets the list of Directions associated with a Cookbook .

Parametersosid.id.IdcookbookIdId of the Cookbook
Returnosid.recipe.DirectionListlist of related directions
ErrorsNOT_FOUNDcookbookId is not found
NULL_ARGUMENTcookbookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDirectionIdsByOubiliettes
Description

Gets the list of Direction Ids corresponding to a list of Oubiliettes .

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

Gets the list of Directions corresponding to a list of Oubiliettes .

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

Gets the Cookbook Ids mapped to a Direction .

Parametersosid.id.IddirectionIdId of a Direction
Returnosid.id.IdListlist of uubiliettes
ErrorsNOT_FOUNDdirectionId is not found
NULL_ARGUMENTdirectionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOubiliettesByDirection
Description

Gets the Oubiliettes mapped to a Direction .

Parametersosid.id.IddirectionIdId of a Direction
Returnosid.recipe.CookbookListlist of oubiliettes
ErrorsNOT_FOUNDdirectionId is not found
NULL_ARGUMENTdirectionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.