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(Direction dir,
UgcFilter filter,
String... types) |
Iterable<Relationship> |
getRelationships(String relType,
Direction dir,
String... types) |
Iterable<Relationship> |
getRelationships(String relType,
Direction dir,
UgcFilter filter,
String... types) |
createRelationshipTo, delete, get, get, getId, getRelationship, getRelationships, getResource, isVirtualclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesEdge 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(Direction dir, UgcFilter filter, String... types)
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 © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"