OSID Logo
OSID Specifications
hold package
Version 3.0.0
Release Candidate Preview
Interfaceosid.hold.OublietteHierarchySession
Implementsosid.OsidSession
Description

This session defines methods for traversing a hierarchy of Oubliette objects. Each node in the hierarchy is a unique Oubliette. The hierarchy may be traversed recursively to establish the tree structure through getParentOubliette() and getChildOubliettes(). To relate these Ids to another OSID, getOublietteNodes() can be used for retrievals that can be used for bulk lookups in other OSIDs. Any Oubliette available in the Hold OSID is known to this hierarchy but does not appear in the hierarchy traversal until added as a root issue or a child of another issue.

A user may not be authorized to traverse the entire hierarchy. Parts of the hierarchy may be made invisible through omission from the returns of getParentOubliettes() or getChildOubliettes() in lieu of a PERMISSION_DENIED error that may disrupt the traversal through authorized effortways.

This session defines views that offer differing behaviors when retrieving multiple objects.

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

Gets the hierarchy Id associated with this session.

Returnosid.id.Idthe hierarchy Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetOublietteHierarchy
Description

Gets the hierarchy associated with this session.

Returnosid.hierarchy.Hierarchythe hierarchy associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAccessOublietteHierarchy
Description

Tests if this user can perform hierarchy queries. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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.

Returnboolean false if hierarchy traversal methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeOublietteView
Description

The returns from the oubliette 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.
MethodusePlenaryOublietteView
Description

s

CompliancemandatoryThis method is must be implemented.
MethodgetRootOublietteIds
Description

Gets the root oubliette Ids in this hierarchy.

Returnosid.id.IdListthe root oubliette Ids
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRootOubliettes
Description

Gets the root oubliette in the oubliette hierarchy. A issue with no parents is an orphan. While all oubliette Ids are known to the hierarchy, an orphan does not appear in the hierarchy unless explicitly added as a root issue or child of another issue.

Returnosid.hold.OublietteListthe root oubliettes
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodhasParentOubliettes
Description

Tests if the Oubliette has any parents.

Parametersosid.id.IdoublietteIdan oubliette Id
Returnboolean true if the oubliette has parents, f alse otherwise
ErrorsNOT_FOUND oublietteId is not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisParentOfOubliette
Description

Tests if an Id is a direct parent of oubliette.

Parametersosid.id.Ididan Id
osid.id.IdoublietteIdthe Id of an oubliette
Returnboolean true if this id is a parent of oublietteId, f alse otherwise
ErrorsNOT_FOUND oublietteId is not found
NULL_ARGUMENT id or oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id not found return false.

MethodgetParentOublietteIds
Description

Gets the parent Ids of the given oubliette.

Parametersosid.id.IdoublietteIdan oubliette Id
Returnosid.id.IdListthe parent Ids of the oubliette
ErrorsNOT_FOUND oublietteId is not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetParentOubliettes
Description

Gets the parents of the given oubliette.

Parametersosid.id.IdoublietteIdthe Id to query
Returnosid.hold.OublietteListthe parents of the oubliette
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisAncestorOfOubliette
Description

Tests if an Id is an ancestor of an oubliette.

Parametersosid.id.Ididan Id
osid.id.IdoublietteIdthe Id of an oubliette
Returnboolean tru e if this id is an ancestor of oublietteId, false otherwise
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId or id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id not found return false.

MethodhasChildOubliettes
Description

Tests if an oubliette has any children.

Parametersosid.id.IdoublietteIdan oubliette Id
Returnboolean true if the oublietteId has children, false otherwise
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisChildOfOubliette
Description

Tests if an oubliette is a direct child of another.

Parametersosid.id.Ididan Id
osid.id.IdoublietteIdthe Id of an oubliette
Returnboolean true if the id is a child of oublietteId, false otherwise
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT id or oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id not found return false.

MethodgetChildOublietteIds
Description

Gets the child Ids of the given oubliette.

Parametersosid.id.IdoublietteIdthe Id to query
Returnosid.id.IdListthe children of the oubliette
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChildOubliettes
Description

Gets the children of the given oubliette.

Parametersosid.id.IdoublietteIdthe Id to query
Returnosid.hold.OublietteListthe children of the oubliette
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisDescendantOfOubliette
Description

Tests if an Id is a descendant of an oubliette.

Parametersosid.id.Ididan Id
osid.id.IdoublietteIdthe Id of an oubliette
Returnboolean true if the id is a descendant of the oublietteId, false otherwise
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT id or oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id is not found return false.

MethodgetOublietteNodeIds
Description

Gets a portion of the hierarchy for the given oubliette.

Parametersosid.id.IdoublietteIdthe Id to query
cardinalancestorLevelsthe maximum number of ancestor levels to include. A value of 0 returns no parents in the issue.
cardinaldescendantLevelsthe maximum number of descendant levels to include. A value of 0 returns no children in the issue.
booleanincludeSiblings true to include the siblings of the given issue, false to omit the siblings
Returnosid.hierarchy.Nodean oubliette node
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOublietteNodes
Description

Gets a portion of the hierarchy for the given oubliette.

Parametersosid.id.IdoublietteIdthe Id to query
cardinalancestorLevelsthe maximum number of ancestor levels to include. A value of 0 returns no parents in the issue.
cardinaldescendantLevelsthe maximum number of descendant levels to include. A value of 0 returns no children in the issue.
booleanincludeSiblings true to include the siblings of the given issue, false to omit the siblings
Returnosid.hold.OublietteNodean oubliette node
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.