Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)

127284 jvonka: Node Associations - add first-cut of permissions
   RA-1062


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127595 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-06-02 22:17:47 +00:00
parent d5cb47936f
commit 3a1851de41
3 changed files with 248 additions and 15 deletions

View File

@@ -82,13 +82,19 @@ public class AbstractNodeRelation implements InitializingBean
this.sr = sr;
}
// Introduces permissions for Node Assoc (see public-rest-context.xml)
public void setNodeService(NodeService nodeService)
{
this.nodeService = nodeService;
}
@Override
public void afterPropertiesSet()
{
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();
}