public interface PathSmartGraphSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A PathQuery can be retrieved from this session
and mapped to this Graph to create a virtual collection of
Paths. The paths may be sequenced using the
PathSearchOrder from this session.
This Graph has a default query that matches any path
and a default search order that specifies no sequencing. The queries may
be examined using a PathQueryInspector. The query may be
modified by converting the inspector back to a PathQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
applyPathQuery(PathQuery pathQuery)
Applies a path query to this graph.
|
void |
applyPathSequencing(PathSearchOrder pathSearchOrder)
Applies a path search order to this graph.
|
boolean |
canManageSmartGraphs()
Tests if this user can manage smart graphs.
|
Graph |
getGraph()
Gets the
Graph associated with this session. |
Id |
getGraphId()
Gets the
Graph Id associated with this
session. |
PathQuery |
getPathQuery()
Gets a path query.
|
PathQuery |
getPathQueryFromInspector(PathQueryInspector pathQueryInspector)
Gets a path query from an inspector.
|
PathSearchOrder |
getPathSearchOrder()
Gets a path search order.
|
PathQueryInspector |
inspectPathQuery()
Gets a path query inspector for this graph.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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 canManageSmartGraphs()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false if smart graph management is not
authorized, true otherwisemandatory - This method must be implemented. PathQuery getPathQuery()
mandatory - This method must be implemented. PathSearchOrder getPathSearchOrder()
mandatory - This method must be implemented. void applyPathQuery(PathQuery pathQuery) throws OperationFailedException, PermissionDeniedException
pathQuery - the path queryNullArgumentException - pathQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - pathQuery not of
this servicemandatory - This method must be implemented. PathQueryInspector inspectPathQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyPathSequencing(PathSearchOrder pathSearchOrder) throws OperationFailedException, PermissionDeniedException
pathSearchOrder - the path search orderNullArgumentException - pathSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - pathSearchOrder
not of this servicemandatory - This method must be implemented. PathQuery getPathQueryFromInspector(PathQueryInspector pathQueryInspector)
pathQueryInspector - a path query inspectorNullArgumentException - pathQueryInspector
is null UnsupportedException - pathQueryInspector
is not of this servicemandatory - This method must be implemented.