mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
CMIS Relationship support in AtomPub binding
- getRelationships - getRelationship - createRelationship - unit tests for above TODO: delete relationship, includeRelationships flag git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14461 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1361,13 +1361,14 @@ public class ScriptNode implements Serializable, Scopeable, NamespacePrefixResol
|
||||
* @param target Destination node for the association
|
||||
* @param assocType Association type qname (short form or fully qualified)
|
||||
*/
|
||||
public void createAssociation(ScriptNode target, String assocType)
|
||||
public Association createAssociation(ScriptNode target, String assocType)
|
||||
{
|
||||
ParameterCheck.mandatory("Target", target);
|
||||
ParameterCheck.mandatoryString("Association Type Name", assocType);
|
||||
|
||||
this.nodeService.createAssociation(this.nodeRef, target.nodeRef, createQName(assocType));
|
||||
AssociationRef assocRef = this.nodeService.createAssociation(this.nodeRef, target.nodeRef, createQName(assocType));
|
||||
reset();
|
||||
return new Association(this.services, assocRef);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user