public interface SocialGraph
SocialGraph
encapsulates an abstraction of a directed graph of node. A node in the graph is bound to a
user and the edges between the graph are established by relationships.
The SocialGraph
is bound to a resource resolver and can be adapted from one.Modifier and Type | Method and Description |
---|---|
GraphNode |
getNode(java.lang.String id)
Returns the node for the given id.
|
void |
refresh(boolean keepChanges)
If
keepChanges is false , this method discards
all pending changes currently recorded in this social graph and
reverts all items to reflect the current saved state. |
void |
save()
Saves the changes made to this social graph.
|
GraphNode getNode(java.lang.String id)
id
- the id to retrieve the node fornull
of the social object with id
does not exist.SocialGraphException
- if an error during this operation occurs.void save()
SocialGraphException
- if an error during this operation occurs.void refresh(boolean keepChanges)
keepChanges
is false
, this method discards
all pending changes currently recorded in this social graph and
reverts all items to reflect the current saved state.
If keepChanges
is true then pending change are not discarded
but items that do not have changes pending have their state refreshed to
reflect the current saved state, thus revealing changes made by other
sessions.
keepChanges
- a booleanSocialGraphException
- if an error during this operation occurs."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"