OSID Logo
OSID Specifications
topology path package
Version 3.0.0
Interfaceosid.topology.path.PathGraphAssignmentSession
Implementsosid.OsidSession
Used Byosid.topology.path.TopologyPathManager
osid.topology.path.TopologyPathProxyManager
Description

This session provides methods to re-assign Paths to Graph objects. A Path may appear in multiple Graph objects and removing the last reference to a Path is the equivalent of deleting it. Each Graph may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Path to another Graph is not a copy operation (eg: does not change its Id ).

MethodcanAssignPaths
Description

Tests if this user can alter path/graph mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known location 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 assignment operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignPathsToGraph
Description

Tests if this user can alter path/graph mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 assignment operations to unauthorized users.

Parametersosid.id.IdgraphIdthe Id of the Graph
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTgraphId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableGraphIds
Description

Gets a list of graphs including and under the given graph node in which any path can be assigned.

Parametersosid.id.IdgraphIdthe Id of the Graph
Returnosid.id.IdListlist of assignable graph Ids
ErrorsNULL_ARGUMENTgraphId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableGraphIdsForPath
Description

Gets a list of graphs including and under the given graph node in which a specific path can be assigned.

Parametersosid.id.IdgraphIdthe Id of the Graph
osid.id.IdpathIdthe Id of the Path
Returnosid.id.IdListlist of assignable graph Ids
ErrorsNULL_ARGUMENTgraphId or pathId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignPathToGraph
Description

Adds an existing Path to a Graph .

Parametersosid.id.IdpathIdthe Id of the Path
osid.id.IdgraphIdthe Id of the Graph
ErrorsALREADY_EXISTSpathId is already assigned to graphId
NOT_FOUNDpathId or graphId not found
NULL_ARGUMENTpathId or graphId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignPathFromGraph
Description

Removes a Path from a Graph .

Parametersosid.id.IdpathIdthe Id of the Path
osid.id.IdgraphIdthe Id of the Graph
ErrorsNOT_FOUNDpathId or graphId not found or pathId not assigned to graphId
NULL_ARGUMENTpathId or graphId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignPathToGraph
Description

Moves a Path from one Graph to another. Mappings to other Graphs are unaffected.

Parametersosid.id.IdpathIdthe Id of the Credit
osid.id.IdfromGraphIdthe Id of the current Graph
osid.id.IdtoGraphIdthe Id of the destination Graph
ErrorsALREADY_EXISTSpathId already assigned to toGraphId
NOT_FOUNDpathId, fromGraphId , or toGraphId not found or pathId not mapped to fromGraphId
NULL_ARGUMENTpathId, fromGraphId , or toGraphId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.