public interface Vertex extends GraphNode
Vertex
represents a user or a resource in the social graph. TODO: The original granite GraphNode get
vertices APIs do not support pagination. This is a difficult problem to solve. For example, when we retrieve
followings activities of a user, we need to retrieve all the followed users to construct the query of the activity
stream.Modifier and Type | Method and Description |
---|---|
Edge |
createRelationshipTo(GraphNode other,
String type,
String relType)
Creates a relationship to the given node.
|
Iterable<Relationship> |
getRelationships(String relType,
Direction dir,
String... types) |
createRelationshipTo, delete, get, get, getId, getRelationship, getRelationships, getResource, isVirtual
Edge createRelationshipTo(GraphNode other, String type, String relType)
other
- the other nodetype
- the type of the relationshiprelType
- the type of the node (other node) that is being followedIllegalArgumentException
- if the relationship already existsSocialGraphException
- if an error during this operation occurs.Iterable<Relationship> getRelationships(String relType, Direction dir, String... types)
dir
- direction of relationshiprelType
- type of the end node to be filtered bytypes
- relationship type"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"