public interface PathLookupSession extends OsidSession
This session provides methods for retrieving Path
objects.
This session defines views that offer differing behaviors when retrieving multiple objects.
Paths
with the PathAdminSession.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedGraphView()
and
useIsolatedGraphView()
behave as a radio group and one should be
selected before invoking any lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupPaths()
Tests if this user can perform
Path lookups. |
Graph |
getGraph()
Gets the
Graph associated with this session. |
Id |
getGraphId()
Gets the
Graph Id associated with this
session. |
Path |
getPath(Id pathId)
Gets the
Path specified by its Id. |
PathList |
getPaths()
Gets all
Paths. |
PathList |
getPathsAlongNodes(IdList nodeIds)
Gets a
PathList connected to all the given
Nodes. |
PathList |
getPathsAlongNodesOnDate(IdList nodeIds,
DateTime from,
DateTime to)
Gets a
PathList connected to all the given Nodes
and and effective during the entire given date range inclusive
but not confined to the date range. |
PathList |
getPathsByGenusType(Type pathGenusType)
Gets a
PathList corresponding to the given path genus
Type which does not include paths of genus types
derived from the specified Type. |
PathList |
getPathsByGenusTypeForEndingNode(Id nodeId,
Type pathGenusType)
Gets a
PathList ending at the given Node
and path genus Type including any genus Types
derived from the given genus Type. |
PathList |
getPathsByGenusTypeForEndingNodeOnDate(Id nodeId,
Type pathGenusType,
DateTime from,
DateTime to)
Gets a
PathList of the given genus type and effective
during the entire given date range inclusive but not confined to the
date range. |
PathList |
getPathsByGenusTypeForNodes(Id startingNodeId,
Id endingNodeId,
Type pathGenusType)
Gets a
PathList of the given genus type between the
given Nodes. |
PathList |
getPathsByGenusTypeForNodesOnDate(Id startingNodeId,
Id endingNodeId,
Type pathGenusType,
DateTime from,
DateTime to)
Gets a
PathList of the given genus type and effective
during the entire given date range inclusive but not confined to the
date range. |
PathList |
getPathsByGenusTypeForStartingNode(Id nodeId,
Type pathGenusType)
Gets a
PathList starting from the given Node
and path genus Type including any genus
Types derived from the given genus Type. |
PathList |
getPathsByGenusTypeForStartingNodeOnDate(Id nodeId,
Type pathGenusType,
DateTime from,
DateTime to)
Gets a
PathList of the given genus type and effective
during the entire given date range inclusive but not confined to the
date range. |
PathList |
getPathsByGenusTypeOnDate(Type pathGenusType,
DateTime from,
DateTime to)
Gets a
PathList of a genus type and effective during
the entire given date range inclusive but not confined to the date
range. |
PathList |
getPathsByIds(IdList pathIds)
Gets a
PathList corresponding to the given
IdList. |
PathList |
getPathsByParentGenusType(Type pathGenusType)
Gets a
PathList corresponding to the given path genus
Type and include any additional paths with genus types
derived from the specified Type. |
PathList |
getPathsByRecordType(Type pathRecordType)
Gets a
PathList containing the given path record
Type. |
PathList |
getPathsForEndingNode(Id nodeId)
Gets a
PathList ending at the given Node. |
PathList |
getPathsForEndingNodeOnDate(Id nodeId,
DateTime from,
DateTime to)
Gets a
PathList effective during the entire given date
range inclusive but not confined to the date range. |
PathList |
getPathsForNodes(Id startingNodeId,
Id endingNodeId)
Gets a
PathList between to the two given Nodes. |
PathList |
getPathsForNodesOnDate(Id startingNodeId,
Id endingNodeId,
DateTime from,
DateTime to)
Gets a
PathList effective during the entire given date
range inclusive but not confined to the date range. |
PathList |
getPathsForStartingNode(Id nodeId)
Gets a
PathList starting from the given Node. |
PathList |
getPathsForStartingNodeOnDate(Id nodeId,
DateTime from,
DateTime to)
Gets a
PathList effective during the entire given date
range inclusive but not confined to the date range. |
PathList |
getPathsOnDate(DateTime from,
DateTime to)
Gets a
PathList effective during the entire given date
range inclusive but not confined to the date range. |
void |
useAnyEffectivePathView()
All paths of any effective dates are returned by all methods in this
session.
|
void |
useComparativePathView()
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 |
useEffectivePathView()
Only paths whose effective dates are current are returned by methods
in this session.
|
void |
useFederatedGraphView()
Federates the view for methods in this session.
|
void |
useIsolatedGraphView()
Isolates the view for methods in this session.
|
void |
usePlenaryPathView()
A complete view of the
Path returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getGraphId()
Graph
Id
associated with this
session. Graph Id
associated with this sessionmandatory
- This method must be implemented. Graph getGraph() throws OperationFailedException, PermissionDeniedException
Graph
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupPaths()
Path
lookups. 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 to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativePathView()
mandatory
- This method is must be implemented. void usePlenaryPathView()
Path
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. void useFederatedGraphView()
mandatory
- This method is must be implemented. void useIsolatedGraphView()
mandatory
- This method is must be implemented. void useEffectivePathView()
mandatory
- This method is must be implemented. void useAnyEffectivePathView()
mandatory
- This method is must be implemented. Path getPath(Id pathId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Path
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
Path
may have a different Id
than requested,
such as the case where a duplicate Id
was assigned to a
Path
and retained for compatibility.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.pathId
- Id
of the Path
NotFoundException
- pathId
not foundNullArgumentException
- pathId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. PathList getPathsByIds(IdList pathIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
PathList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
paths specified in the Id
list, in the order of the
list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Paths
may be omitted from the list and may
present the elements in any order including returning a unique set.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.pathIds
- the list of Ids
to retrieve Path
listNotFoundException
- an Id was
not foundNullArgumentException
- pathIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusType(Type pathGenusType) throws OperationFailedException, PermissionDeniedException
PathList
corresponding to the given path genus
Type
which does not include paths of genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.pathGenusType
- a path genus type Path
listNullArgumentException
- pathGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByParentGenusType(Type pathGenusType) throws OperationFailedException, PermissionDeniedException
PathList
corresponding to the given path genus
Type
and include any additional paths with genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.pathGenusType
- a path genus type Path
listNullArgumentException
- pathGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByRecordType(Type pathRecordType) throws OperationFailedException, PermissionDeniedException
PathList
containing the given path record
Type.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.pathRecordType
- a path record type Path
listNullArgumentException
- pathRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
effective during the entire given date
range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.from
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeOnDate(Type pathGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
of a genus type and effective during
the entire given date range inclusive but not confined to the date
range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.pathGenusType
- a path genus typefrom
- starting dateto
- ending date Path
listInvalidArgumentException
- edgeGenusType, from
Is greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsForStartingNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
PathList
starting from the given Node.
In plenary mode, the returned list contains all of the
paths, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
Path
listNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsForStartingNodeOnDate(Id nodeId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
effective during the entire given date
range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
from
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- nodeId, from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeForStartingNode(Id nodeId, Type pathGenusType) throws OperationFailedException, PermissionDeniedException
PathList
starting from the given Node
and path genus Type including
any genus
Types
derived from the given genus Type.
In plenary mode, the returned list contains all of the
paths, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
pathGenusType
- a path genus type Path
listNullArgumentException
- nodeId
is or
pathGenusType
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeForStartingNodeOnDate(Id nodeId, Type pathGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
of the given genus type and effective
during the entire given date range inclusive but not confined to the
date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
pathGenusType
- a path genus typefrom
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- nodeId, pathGenusType,
from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsForEndingNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
PathList
ending at the given Node.
In plenary mode, the returned list contains all of the
paths, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
Path
listNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsForEndingNodeOnDate(Id nodeId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
effective during the entire given date
range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
from
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- nodeId, from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeForEndingNode(Id nodeId, Type pathGenusType) throws OperationFailedException, PermissionDeniedException
PathList
ending at the given Node
and path genus Type including
any genus Types
derived from the given genus Type.
In plenary mode, the returned list contains all of the
paths, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
pathGenusType
- a path genus type Path
listNullArgumentException
- nodeId
or
pathGenusType
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeForEndingNodeOnDate(Id nodeId, Type pathGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
of the given genus type and effective
during the entire given date range inclusive but not confined to the
date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeId
- a node Id
pathGenusType
- a path genus typefrom
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- nodeId, pathGenusType,
from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsForNodes(Id startingNodeId, Id endingNodeId) throws OperationFailedException, PermissionDeniedException
PathList
between to the two given Nodes.
In plenary mode, the returned list contains all of the
paths, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.startingNodeId
- starting node Id
endingNodeId
- ending node Id
Path
listNullArgumentException
- startingNodeId
or endingNodeId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsForNodesOnDate(Id startingNodeId, Id endingNodeId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
effective during the entire given date
range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.startingNodeId
- starting node Id
endingNodeId
- ending node Id
from
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- startingNodeId,
endingNodeId, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeForNodes(Id startingNodeId, Id endingNodeId, Type pathGenusType) throws OperationFailedException, PermissionDeniedException
PathList
of the given genus type between the
given Nodes.
In plenary mode, the returned list contains all of the
paths, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.startingNodeId
- starting node Id
endingNodeId
- ending node Id
pathGenusType
- a path genus type Path
listNullArgumentException
- startingNodeId,
endingNodeId
or pathGenusType
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsByGenusTypeForNodesOnDate(Id startingNodeId, Id endingNodeId, Type pathGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
of the given genus type and effective
during the entire given date range inclusive but not confined to the
date range.
In plenary mode, the returned list contains all known
paths or an error results. Otherwise, the returned list may contain
only those paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.startingNodeId
- starting node Id
endingNodeId
- ending node Id
pathGenusType
- a path genus typefrom
- starting dateto
- ending date Path
listInvalidArgumentException
- from
Is
greater than to
NullArgumentException
- startingNodeId,
endingNodeId, pathGenusType, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsAlongNodes(IdList nodeIds) throws OperationFailedException, PermissionDeniedException
PathList
connected to all the given
Nodes.
In plenary mode, the returned list contains all of the
paths through the nodes, or an error results if a path connected to
the node is not found or inaccessible. Otherwise, inaccessible
Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeIds
- the list of Ids
to retrieve Path
listNullArgumentException
- nodeIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPathsAlongNodesOnDate(IdList nodeIds, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PathList
connected to all the given Nodes
and and effective during the entire given date range inclusive
but not confined to the date range.
In plenary mode, the returned list contains all of the paths through
the nodes, or an error results if a path connected to the node is not
found or inaccessible. Otherwise, inaccessible Paths
may be omitted from the list.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned.nodeIds
- the list of Ids
to retrievefrom
- start of date rangeto
- end of date range Path
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- nodeIds, from
,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PathList getPaths() throws OperationFailedException, PermissionDeniedException
Paths.
In plenary mode, the returned list contains all known paths or an
error results. Otherwise, the returned list may contain only those
paths that are accessible through this session.
In effective mode, paths are returned that are currently effective. In
any effective mode, effective paths and those currently expired are
returned. Paths
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.