Class RelationHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.relations.api.util.RelationHelper
-
public class RelationHelper extends Object
-
-
Method Summary
-
-
-
Method Detail
-
getRelationManager
public static RelationManager getRelationManager()
-
getDocumentResource
public static QNameResource getDocumentResource(DocumentModel document)
Returns the relation node corresponding to a document model.
-
getDocumentModel
public static DocumentModel getDocumentModel(Node node, CoreSession session)
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
public static DocumentModelList getObjectDocuments(DocumentModel subjectDoc, Resource predicat)
-
getObjectDocuments
public static DocumentModelList getObjectDocuments(String graphName, DocumentModel subjectDoc, Resource predicat)
-
getStatements
public static List<Statement> getStatements(DocumentModel subjectDoc, Resource predicat)
-
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)
-
-