[jboss-user] [JBoss Portal] - Re: How to get access to javax.jcr.Repository

sohil.shah@jboss.com do-not-reply at jboss.com
Fri Nov 28 22:04:57 EST 2008


Actually the SimpleCredential way will not work since the fine grained CMS Security is performed via the Portal CMS Security Engine and not by the JackRabbit Engine.

To achieve what you want to do, you can disable this interceptor when making a CMS Request. This approach is used in the Workflow components as well:

Check this sample code from the workflow components for some ideas:


  | ACLInterceptor.turnOff();
  | 
  | //create this content in the CMS and make it live
  | Command command = cms.getCommandFactory().createContentGetVersionsCommand(content.getPath());
  | List versions = (List)cms.execute(command);
  | 
  | ACLInterceptor.turnOn();
  | 

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193155#4193155

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193155



More information about the jboss-user mailing list