Interface EdgeGraphSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to retrieve Edge to
Graph mappings. An Edge 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:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
Like all OsidSessions, EdgeGraphSessions are dedicated
to single processing threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform lookups of edge/graph mappings.getEdgeIdsByGraph(Id graphId) Gets the list ofEdge Idsassociated with aGraph.getEdgeIdsByGraphs(IdList graphIds) Gets the list ofEdge Idscorresponding to a list ofGraphs.getEdgesByGraph(Id graphId) Gets the list ofEdgesassociated with aGraph.getEdgesByGraphs(IdList graphIds) Gets the list ofEdgecorresponding to a list ofGraphs.getGraphIdsByEdge(Id edgeId) Gets theGraphIdsmapped to anEdge.getGraphsByEdge(Id edgeId) Gets theGraphsmapped to anEdge.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidA complete view of theEdgeandGraphreturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
canLookupEdgeGraphMappings
boolean canLookupEdgeGraphMappings()Tests if this user can perform lookups of edge/graph mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif looking up mappings is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeEdgeGraphView
void useComparativeEdgeGraphView()The returns from the lookup 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.- Compliance:
mandatory- This method must be implemented.
-
usePlenaryEdgeGraphView
void usePlenaryEdgeGraphView()A complete view of theEdgeandGraphreturns 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.- Compliance:
mandatory- This method must be implemented.
-
getEdgeIdsByGraph
IdList getEdgeIdsByGraph(Id graphId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list ofEdge Idsassociated with aGraph.- Parameters:
graphId-Idof theGraph- Returns:
- list of related edge
Ids - Throws:
NotFoundException-graphIdis not foundNullArgumentException-graphIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getEdgesByGraph
EdgeList getEdgesByGraph(Id graphId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list ofEdgesassociated with aGraph.- Parameters:
graphId-Idof theGraph- Returns:
- list of related edges
- Throws:
NotFoundException-graphIdis not foundNullArgumentException-graphIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getEdgeIdsByGraphs
IdList getEdgeIdsByGraphs(IdList graphIds) throws OperationFailedException, PermissionDeniedException Gets the list ofEdge Idscorresponding to a list ofGraphs.- Parameters:
graphIds- list of graphIds- Returns:
- list of edge
Ids - Throws:
NullArgumentException-graphIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getEdgesByGraphs
EdgeList getEdgesByGraphs(IdList graphIds) throws OperationFailedException, PermissionDeniedException Gets the list ofEdgecorresponding to a list ofGraphs.- Parameters:
graphIds- list of graphIds- Returns:
- list of edge
- Throws:
NullArgumentException-graphIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGraphIdsByEdge
IdList getGraphIdsByEdge(Id edgeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGraphIdsmapped to anEdge.- Parameters:
edgeId-Idof anEdge- Returns:
- list of graphs
- Throws:
NotFoundException-edgeIdis not foundNullArgumentException-edgeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGraphsByEdge
GraphList getGraphsByEdge(Id edgeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGraphsmapped to anEdge.- Parameters:
edgeId-Idof anEdge- Returns:
- list of graphs
- Throws:
NotFoundException-edgeIdis not foundNullArgumentException-edgeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-