public interface PathGraphSession extends OsidSession
This session provides methods to retrieve Path
to
Graph
mappings. A Path
may appear in multiple
Graph
objects. Each graph 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 |
canLookupPathGraphMappings()
Tests if this user can perform lookups of path/graph mappings.
|
IdList |
getGraphIdsByPath(Id pathId)
Gets the
Graph Ids mapped to a
Path. |
GraphList |
getGraphsByPath(Id pathId)
Gets the
Graph mapped to a Path. |
IdList |
getPathIdsByGraph(Id graphId)
Gets the list of
Path Ids associated with a
Graph. |
IdList |
getPathIdsByGraphs(IdList graphIds)
Gets the list of
Path Ids corresponding to a list of
Graphs. |
PathList |
getPathsByGraph(Id graphId)
Gets the list of
Paths associated with a Graph. |
PathList |
getPathsByGraphs(IdList graphIds)
Gets the list of
Path corresponding to a list of
Graphs. |
void |
useComparativePathGraphView()
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 |
usePlenaryPathGraphView()
A complete view of the
Path and Graph
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupPathGraphMappings()
PERMISSION_DENIED.
This is intended as
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 useComparativePathGraphView()
mandatory
- This method is must be implemented. void usePlenaryPathGraphView()
Path
and Graph
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 getPathIdsByGraph(Id graphId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Path Ids
associated with a
Graph.
graphId
- Id
of the Graph
Ids
NotFoundException
- graphId
is not foundNullArgumentException
- graphId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGraph(Id graphId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Paths
associated with a Graph.
graphId
- Id
of the Graph
NotFoundException
- graphId
is not foundNullArgumentException
- graphId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getPathIdsByGraphs(IdList graphIds) throws OperationFailedException, PermissionDeniedException
Path Ids
corresponding to a list of
Graphs.
graphIds
- list of graph Ids
Ids
NullArgumentException
- graphIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGraphs(IdList graphIds) throws OperationFailedException, PermissionDeniedException
Path
corresponding to a list of
Graphs.
graphIds
- list of graph Ids
NullArgumentException
- graphIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getGraphIdsByPath(Id pathId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Graph
Ids
mapped to a
Path.
pathId
- Id
of a Path
NotFoundException
- pathId
is not foundNullArgumentException
- pathId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. GraphList getGraphsByPath(Id pathId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Graph
mapped to a Path.
pathId
- Id
of a Path
NotFoundException
- pathId
is not foundNullArgumentException
- pathId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.