AnsweredAssumed Answered

Disconnect 2 nodes from parent-child association

Question asked by alex.lu on Jan 4, 2011
Latest reply on Jan 10, 2011 by alex.lu
Hello guys,

I am trying to disconnect 2 nodes which have parent-child association. I'm using nodeService.removeSecondaryChildAssociation, but I'm getting permission exception. This is all done as admin.

Does anyone know how to work around it?

"message" : "00040001 Access Denied.  You do not have the appropriate permissions to perform this operation.[Ljava.lang.StackTraceElement;@14ea6da9", 
  "exception" : "org.alfresco.repo.security.permissions.AccessDeniedException - 00040001 Access Denied.  You do not have the appropriate permissions to perform this operation.",
 
  "callstack" :
  [
       ""      ,"net.sf.acegisecurity.AccessDeniedException: Access is denied."
      ,"net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)"
      ,"net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)"
      ,"net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:43)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:135)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)"
      ,"$Proxy10.removeSeconaryChildAssociation(Unknown Source)"

Thanks

Outcomes