public interface EdgeNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Edge
objects in this Graph.
This also
includes existing edges that may appear or disappear due to changes in the
Graph
hierarchy, This session is intended for consumers
needing to synchronize their state with this service without the use of
polling. Notifications are cancelled when this session is closed.
The two views defined in this session correspond to the views in the
EdgeLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForEdgeNotifications()
Tests if this user can register for
Edge notifications. |
Graph |
getGraph()
Gets the
Graph associated with this session. |
Id |
getGraphId()
Gets the
Graph Id associated with this
session. |
void |
registerForChangedEdge(Id edgeId)
Registers for notification of an updated edge.
|
void |
registerForChangedEdges()
Registers for notification of updated edges.
|
void |
registerForChangedEdgesByGenusType(Type edgeGenusType)
Register for notifications of updated edges by genus type.
|
void |
registerForChangedEdgesForDestinationNode(Id nodeId)
Register for notifications of updated edges to a specified node.
|
void |
registerForChangedEdgesForSourceNode(Id nodeId)
Register for notifications of updated edges from a specified node.
|
void |
registerForDeletedEdge(Id edgeId)
Registers for notification of a deleted edge.
|
void |
registerForDeletedEdges()
Registers for notification of deleted edges.
|
void |
registerForDeletedEdgesByGenusType(Type edgeGenusType)
Register for notifications of deleted edges by genus type.
|
void |
registerForDeletedEdgesForDestinationNode(Id nodeId)
Register for notifications of new edges to a specified node.
|
void |
registerForDeletedEdgesForSourceNode(Id nodeId)
Register for notifications of new edges from a specified node.
|
void |
registerForNewEdges()
Register for notifications of new edges.
|
void |
registerForNewEdgesByGenusType(Type edgeGenusType)
Register for notifications of new edges by genus type.
|
void |
registerForNewEdgesForDestinationNode(Id nodeId)
Register for notifications of new edges to a specified node.
|
void |
registerForNewEdgesForSourceNode(Id nodeId)
Register for notifications of new edges from a specified node.
|
void |
useFederatedGraphView()
Federates the view for methods in this session.
|
void |
useIsolatedGraphView()
Isolates the view for methods in this session.
|
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 canRegisterForEdgeNotifications()
Edge
notifications.
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 notification
operations. false
if notification methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void useFederatedGraphView()
mandatory
- This method is must be implemented. void useIsolatedGraphView()
mandatory
- This method is must be implemented. void registerForNewEdges() throws OperationFailedException, PermissionDeniedException
EdgeReceiver.newEdge()
is invoked when a new Edge
appears in this
graph.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEdgesByGenusType(Type edgeGenusType) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.newEdgeConnection()
is invoked when a new
Edge
is connected to the specified node.edgeGenusType
- an edge genus typeNullArgumentException
- edgeGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEdgesForSourceNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.newEdgeConnection()
is invoked when a new
Edge
is connected to the specified node.nodeId
- the Id
of the Node
to
monitorNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEdgesForDestinationNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.newEdgeConnection()
is invoked when a new
Edge
is connected to the specified node.nodeId
- the Id
of the Node
to
monitorNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEdges() throws OperationFailedException, PermissionDeniedException
EdgeReceiver.changedEdge()
is invoked when an edge in this
graph is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEdgesByGenusType(Type edgeGenusType) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.changedEdgeConnection()
is invoked when an
Edge
in this graph is changed.edgeGenusType
- an edge genus typeNullArgumentException
- edgeGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEdgesForSourceNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.changedEdgeConnection()
is invoked when an
Edge
in this graph is changed.nodeId
- the Id
of the Node
to
monitorNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEdgesForDestinationNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.changedEdgeConnection()
is invoked when an
Edge
in this graph is changed.nodeId
- the Id
of the Node
to
monitorNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEdge(Id edgeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.changedEdge()
is invoked when the specified edge
in this graph is changed.edgeId
- the Id
of the Edge
to
monitorNullArgumentException
- edgeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEdges() throws OperationFailedException, PermissionDeniedException
EdgeReceiver.deletedEdge()
is invoked when an edge is deleted
or removed from this graph.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEdgesByGenusType(Type edgeGenusType) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.deletedEdgeConnection()
is invoked when an
Edge
in this graph is removed.edgeGenusType
- an edge genus typeNullArgumentException
- edgeGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEdgesForSourceNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.deletedEdgeConnection()
is invoked when a new
Edge
is connected to the specified node.nodeId
- the Id
of the Node
to
monitorNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEdgesForDestinationNode(Id nodeId) throws OperationFailedException, PermissionDeniedException
EdgeReceiver.deletedEdgeConnection()
is invoked when a new
Edge
is connected to the specified node.nodeId
- the Id
of the Node
to
monitorNullArgumentException
- nodeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEdge(Id edgeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
EdgeReceiver.deletedEdge()
is invoked when the specified edge
is deleted or removed from this graph.edgeId
- the Id
of the Edge
to
monitorNotFoundException
- an edge was not found identified by
the given Id
NullArgumentException
- edgeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.