Class RelationHelper
java.lang.Object
org.nuxeo.ecm.platform.relations.api.util.RelationHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentModel
getDocumentModel
(Node node, CoreSession session) Returns the document model corresponding to a relation node.static QNameResource
getDocumentResource
(DocumentModel document) Returns the relation node corresponding to a document model.static DocumentModelList
getObjectDocuments
(String graphName, DocumentModel subjectDoc, Resource predicat) static DocumentModelList
getObjectDocuments
(DocumentModel subjectDoc, Resource predicat) static RelationManager
getStatements
(String graphName, DocumentModel subjectDoc, Resource predicat) getStatements
(DocumentModel subjectDoc, Resource predicat) static DocumentModelList
getSubjectDocuments
(String graphName, Resource predicat, String stringObject, CoreSession session) static DocumentModelList
getSubjectDocuments
(String graphName, Resource predicat, DocumentModel objectDocument) static DocumentModelList
getSubjectDocuments
(Resource predicat, String stringObject, CoreSession session) static DocumentModelList
getSubjectDocuments
(Resource predicat, DocumentModel objectDocument) static DocumentModelList
getSubjectDocumentsOut
(String graphName, Resource predicat, DocumentModel objectDocument) static DocumentModelList
getSubjectDocumentsOut
(Resource predicat, DocumentModel objectDocument) static void
removeRelation
(String graphName, DocumentModel subjectDoc, Resource predicat, DocumentModel objectDoc) static void
removeRelation
(DocumentModel subjectDoc, Resource predicat, DocumentModel objectDoc)
-
Method Details
-
getRelationManager
-
getDocumentResource
Returns the relation node corresponding to a document model. -
getDocumentModel
Returns the document model corresponding to a relation node. -
getSubjectDocuments
public static DocumentModelList getSubjectDocuments(Resource predicat, String stringObject, CoreSession session) -
getSubjectDocuments
public static DocumentModelList getSubjectDocuments(String graphName, Resource predicat, String stringObject, CoreSession session) -
getSubjectDocuments
public static DocumentModelList getSubjectDocuments(Resource predicat, DocumentModel objectDocument) -
getSubjectDocuments
public static DocumentModelList getSubjectDocuments(String graphName, Resource predicat, DocumentModel objectDocument) -
getSubjectDocumentsOut
public static DocumentModelList getSubjectDocumentsOut(Resource predicat, DocumentModel objectDocument) -
getSubjectDocumentsOut
public static DocumentModelList getSubjectDocumentsOut(String graphName, Resource predicat, DocumentModel objectDocument) -
getObjectDocuments
-
getObjectDocuments
public static DocumentModelList getObjectDocuments(String graphName, DocumentModel subjectDoc, Resource predicat) -
getStatements
-
getStatements
public static List<Statement> getStatements(String graphName, DocumentModel subjectDoc, Resource predicat) -
removeRelation
public static void removeRelation(DocumentModel subjectDoc, Resource predicat, DocumentModel objectDoc) -
removeRelation
public static void removeRelation(String graphName, DocumentModel subjectDoc, Resource predicat, DocumentModel objectDoc)
-