mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
127602 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2) 127342 jvonka: Node Associations - peer assoc permissions - alt impl using temp wrapper instead of full override RA-1062 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127694 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -65,7 +65,7 @@ public class NodeTargetsRelation extends AbstractNodeRelation implements
|
||||
|
||||
QNamePattern assocTypeQNameParam = getAssocTypeFromWhereElseAll(parameters);
|
||||
|
||||
List<AssociationRef> assocRefs = nodeService.getTargetAssocs(sourceNodeRef, assocTypeQNameParam);
|
||||
List<AssociationRef> assocRefs = nodeAssocService.getTargetAssocs(sourceNodeRef, assocTypeQNameParam);
|
||||
|
||||
return listNodePeerAssocs(assocRefs, parameters, true);
|
||||
}
|
||||
@@ -88,7 +88,7 @@ public class NodeTargetsRelation extends AbstractNodeRelation implements
|
||||
try
|
||||
{
|
||||
NodeRef tgtNodeRef = nodes.validateNode(targetNodeId);
|
||||
nodeService.createAssociation(srcNodeRef, tgtNodeRef, assocTypeQName);
|
||||
nodeAssocService.createAssociation(srcNodeRef, tgtNodeRef, assocTypeQName);
|
||||
}
|
||||
catch (AssociationExistsException aee)
|
||||
{
|
||||
@@ -125,12 +125,12 @@ public class NodeTargetsRelation extends AbstractNodeRelation implements
|
||||
|
||||
boolean found = false;
|
||||
|
||||
List<AssociationRef> assocRefs = nodeService.getTargetAssocs(new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, sourceNodeId), assocTypeQName);
|
||||
List<AssociationRef> assocRefs = nodeAssocService.getTargetAssocs(new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, sourceNodeId), assocTypeQName);
|
||||
for (AssociationRef assocRef : assocRefs)
|
||||
{
|
||||
if (assocRef.getTargetRef().equals(tgtNodeRef))
|
||||
{
|
||||
nodeService.removeAssociation(srcNodeRef, tgtNodeRef, assocRef.getTypeQName());
|
||||
nodeAssocService.removeAssociation(srcNodeRef, tgtNodeRef, assocRef.getTypeQName());
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user