Interface RelationManager
- All Superinterfaces:
 Serializable
- All Known Implementing Classes:
 RelationService
RelationService common interface.
- 
Method Summary
Modifier and TypeMethodDescriptiongetAllResources(Serializable object, Map<String, Object> context) Computes all resources corresponding to the given object.getGraph(String name, CoreSession session) Gets a registered graph by name.getGraphByName(String name) Gets a registered graph by name.Gets the list containing the graph names.getResource(String namespace, Serializable object, Map<String, Object> context) Gets a resource given a namespace and a serializable object.Gets an object representing this resource given a namespace.getTransientGraph(String type) Gets a transient graph. 
- 
Method Details
- 
getGraph
Gets a registered graph by name.A
CoreSessionshould be passed to provide a context in which to store relations when using a "core" graph.- Parameters:
 name- string name of the graph used at registrationsession- the core session- Returns:
 - the graph
 - Throws:
 RuntimeException- if the graph is not found- Since:
 - 5.5
 
 - 
getGraphByName
Gets a registered graph by name.- Parameters:
 name- string name of the graph used at registration- Returns:
 - the graph
 - Throws:
 RuntimeException- if the graph is not found
 - 
getTransientGraph
Gets a transient graph.- Parameters:
 type- The graph type.- Returns:
 - the graph.
 
 - 
getResource
Gets a resource given a namespace and a serializable object.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.- Since:
 - 5.2-M1
 
 - 
getAllResources
Computes all resources corresponding to the given object.Context can hold any object useful for the adapters, like a
CoreSession.- Returns:
 - the resources as a set
 - Since:
 - 5.2-M1
 
 - 
getResourceRepresentation
Serializable getResourceRepresentation(String namespace, Resource resource, Map<String, Object> context) Gets an object representing this resource given a namespace.Context can hold any object useful for the adapters, like a
CoreSession.- Since:
 - 5.2-M1
 
 - 
getGraphNames
Gets the list containing the graph names.- Since:
 - 5.2-GA
 
 
 -