mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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/HEAD/root@127602 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -69,6 +69,7 @@ public class AbstractNodeRelation implements InitializingBean
|
||||
|
||||
protected ServiceRegistry sr;
|
||||
protected NodeService nodeService;
|
||||
protected NodeAssocService nodeAssocService; // wraps initial Peer Assoc permissions
|
||||
protected NamespaceService namespaceService;
|
||||
protected DictionaryService dictionaryService;
|
||||
protected Nodes nodes;
|
||||
@@ -84,9 +85,9 @@ public class AbstractNodeRelation implements InitializingBean
|
||||
}
|
||||
|
||||
// Introduces permissions for Node Assoc (see public-rest-context.xml)
|
||||
public void setNodeService(NodeService nodeService)
|
||||
public void setNodeAssocService(NodeAssocService nodeAssocService)
|
||||
{
|
||||
this.nodeService = nodeService;
|
||||
this.nodeAssocService = nodeAssocService;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -95,7 +96,7 @@ public class AbstractNodeRelation implements InitializingBean
|
||||
PropertyCheck.mandatory(this, "serviceRegistry", sr);
|
||||
ParameterCheck.mandatory("nodes", this.nodes);
|
||||
|
||||
//this.nodeService = sr.getNodeService();
|
||||
this.nodeService = sr.getNodeService();
|
||||
this.namespaceService = sr.getNamespaceService();
|
||||
this.dictionaryService = sr.getDictionaryService();
|
||||
}
|
||||
|
Reference in New Issue
Block a user