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,
java.lang.String type,
java.lang.String relType)
Creates a relationship to the given node.
|
java.lang.Iterable<Relationship> |
getRelationships(Direction dir,
UgcFilter filter,
java.lang.String... types) |
java.lang.Iterable<Relationship> |
getRelationships(java.lang.String relType,
Direction dir,
java.lang.String... types) |
java.lang.Iterable<Relationship> |
getRelationships(java.lang.String relType,
Direction dir,
UgcFilter filter,
java.lang.String... types) |
createRelationshipTo, delete, get, get, getId, getRelationship, getRelationships, getResource, isVirtual
Edge createRelationshipTo(GraphNode other, java.lang.String type, java.lang.String relType)
other
- the other nodetype
- the type of the relationshiprelType
- the type of the node (other node) that is being followedjava.lang.IllegalArgumentException
- if the relationship already existsSocialGraphException
- if an error during this operation occurs.java.lang.Iterable<Relationship> getRelationships(Direction dir, UgcFilter filter, java.lang.String... types)
java.lang.Iterable<Relationship> getRelationships(java.lang.String relType, Direction dir, java.lang.String... types)
dir
- direction of relationshiprelType
- type of the end node to be filtered bytypes
- relationship typejava.lang.Iterable<Relationship> getRelationships(java.lang.String relType, Direction dir, UgcFilter filter, java.lang.String... types)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"