|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelationManager
RelationService common interface.
Method Summary | |
---|---|
void |
add(String graphName,
List<Statement> statements)
|
void |
clear(String graphName)
|
Set<Resource> |
getAllResources(Serializable object,
Map<String,Serializable> context)
Computes all resources corresponding to the given object. |
Graph |
getGraphByName(String name)
Gets a registered graph by name. |
List<String> |
getGraphNames()
Gets the list containing the graph names. |
List<Node> |
getObjects(String graphName,
Node subject,
Node predicate)
|
List<Node> |
getPredicates(String graphName,
Node subject,
Node object)
|
Resource |
getResource(String namespace,
Serializable object,
Map<String,Serializable> context)
Gets a resource given a namespace and a serializable object. |
Serializable |
getResourceRepresentation(String namespace,
Resource resource,
Map<String,Serializable> context)
Gets an object representing this resource given a namespace. |
List<Statement> |
getStatements(String graphName)
|
List<Statement> |
getStatements(String graphName,
Statement statement)
|
List<Node> |
getSubjects(String graphName,
Node predicate,
Node object)
|
Graph |
getTransientGraph(String type)
Gets a transient graph. |
boolean |
hasResource(String graphName,
Resource resource)
|
boolean |
hasStatement(String graphName,
Statement statement)
|
QueryResult |
query(String graphName,
String queryString,
String language,
String baseURI)
|
boolean |
read(String graphName,
InputStream in,
String lang,
String base)
|
void |
remove(String graphName,
List<Statement> statements)
|
Long |
size(String graphName)
|
boolean |
write(String graphName,
OutputStream out,
String lang,
String base)
|
Method Detail |
---|
Graph getGraphByName(String name) throws ClientException
name
- string name of the graph used at registration
RuntimeException
- if the graph is not found
ClientException
Graph getTransientGraph(String type) throws ClientException
type
- The graph type.
ClientException
Resource getResource(String namespace, Serializable object, Map<String,Serializable> context) throws ClientException
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
.
ClientException
Set<Resource> getAllResources(Serializable object, Map<String,Serializable> context) throws ClientException
Context can hold any object useful for the adapters, like a
CoreSession
.
ClientException
Serializable getResourceRepresentation(String namespace, Resource resource, Map<String,Serializable> context) throws ClientException
Context can hold any object useful for the adapters, like a
CoreSession
.
ClientException
List<String> getGraphNames() throws ClientException
ClientException
void add(String graphName, List<Statement> statements) throws ClientException
ClientException
Graph.add(java.util.List)
void remove(String graphName, List<Statement> statements) throws ClientException
ClientException
Graph.remove(java.util.List)
List<Statement> getStatements(String graphName) throws ClientException
ClientException
Graph.getStatements()
List<Statement> getStatements(String graphName, Statement statement) throws ClientException
ClientException
Graph.getStatements()
List<Node> getSubjects(String graphName, Node predicate, Node object) throws ClientException
ClientException
Graph.getSubjects(org.nuxeo.ecm.platform.relations.api.Node, org.nuxeo.ecm.platform.relations.api.Node)
List<Node> getPredicates(String graphName, Node subject, Node object) throws ClientException
ClientException
Graph.getPredicates(org.nuxeo.ecm.platform.relations.api.Node, org.nuxeo.ecm.platform.relations.api.Node)
List<Node> getObjects(String graphName, Node subject, Node predicate) throws ClientException
ClientException
Graph.getObjects(org.nuxeo.ecm.platform.relations.api.Node, org.nuxeo.ecm.platform.relations.api.Node)
boolean hasStatement(String graphName, Statement statement) throws ClientException
ClientException
Graph.hasStatement(org.nuxeo.ecm.platform.relations.api.Statement)
boolean hasResource(String graphName, Resource resource) throws ClientException
ClientException
Graph.hasResource(org.nuxeo.ecm.platform.relations.api.Resource)
Long size(String graphName) throws ClientException
ClientException
Graph.size()
void clear(String graphName) throws ClientException
ClientException
Graph.clear()
QueryResult query(String graphName, String queryString, String language, String baseURI) throws ClientException
ClientException
Graph.query(java.lang.String, java.lang.String, java.lang.String)
boolean read(String graphName, InputStream in, String lang, String base) throws ClientException
ClientException
Graph.read(java.lang.String, java.lang.String, java.lang.String)
boolean write(String graphName, OutputStream out, String lang, String base) throws ClientException
ClientException
Graph.write(java.lang.String, java.lang.String, java.lang.String)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |