public interface RelationManager extends Serializable
| Modifier and Type | Method and Description | 
|---|---|
Set<Resource> | 
getAllResources(Serializable object,
               Map<String,Object> context)
Computes all resources corresponding to the given object. 
 | 
Graph | 
getGraph(String name,
        CoreSession session)
Gets a registered graph by name. 
 | 
Graph | 
getGraphByName(String name)
Gets a registered graph by name. 
 | 
List<String> | 
getGraphNames()
Gets the list containing the graph names. 
 | 
Resource | 
getResource(String namespace,
           Serializable object,
           Map<String,Object> context)
Gets a resource given a namespace and a serializable object. 
 | 
Serializable | 
getResourceRepresentation(String namespace,
                         Resource resource,
                         Map<String,Object> context)
Gets an object representing this resource given a namespace. 
 | 
Graph | 
getTransientGraph(String type)
Gets a transient graph. 
 | 
Graph getGraph(String name, CoreSession session)
 A CoreSession should be passed to provide a context in which to store relations when using a "core"
 graph.
name - string name of the graph used at registrationsession - the core sessionRuntimeException - if the graph is not foundGraph getGraphByName(String name)
name - string name of the graph used at registrationRuntimeException - if the graph is not foundGraph getTransientGraph(String type)
type - The graph type.Resource getResource(String namespace, Serializable object, Map<String,Object> context)
There can be several resources with different namespaces associated to an incoming object. A document can for instance be used to refer to itself as a precise version as well as to the set of all versions.
 Context can hold any object useful for the adapters, like a CoreSession.
Set<Resource> getAllResources(Serializable object, Map<String,Object> context)
 Context can hold any object useful for the adapters, like a CoreSession.
Serializable getResourceRepresentation(String namespace, Resource resource, Map<String,Object> context)
 Context can hold any object useful for the adapters, like a CoreSession.
List<String> getGraphNames()
Copyright © 2019 Nuxeo. All rights reserved.