AnsweredAssumed Answered

moveNode not working well for the groups

Question asked by neeldz on Sep 2, 2014
Hello All,
am a new alfresco developer am trying to move some sub-groups and all the content of a group to another one
with no success having an issue with wrong types

The association target type is incorrect:
Required Target Type: {http://www.alfresco.org/model/content/1.0}category
Actual Target Type: {http://www.alfresco.org/model/content/1.0}authorityContainer


using the code below


//the mainGroup and maisonGroupesMng both are instance from AlfrescoGroup.
NodeRef sourceNodeRef = authorityService.getAuthorityNodeRef(mainGroup.getAuthorityName());
NodeRef targetNodeRef = authorityService.getAuthorityNodeRef(maisonGroupesMng.getAuthorityName());
nodeService.moveNode(sourceNodeRef, targetNodeRef, null,null);


any help ?.

Outcomes