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: {}category
Actual Target Type: {}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 ?.