There is some code duplication between org.nuxeo.ecm.platform.relations.web.listener.ejb.RelationActionsBean and org.nuxeo.ecm.automation.core.operations.services.CreateRelation
The event are not sent from CreateRelation, after talking with Thierry, i think a new DocumentRelationService with
- addDocumentRelation(DocumentModel from, DocumentModel to, String predicate) ( not sure of the predicate type )
- listDocumentOutgoingRelations(DocumentModel doc)
- listDocumentIngoingRelations(DocumentModel doc)
- deleteDocumentRelation(DocumentModel form, DocumentModel to, String predicate )