[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

radzish do-not-reply at jboss.com
Thu Jan 11 08:35:03 EST 2007


I have just found sollution!

I injected PortalAuthorizationManagerFactory service into my navigation portlet in jboss-portlet.xml like following:


  <service-name>AMF</service-name>
  <service-class>org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory</service-class>
  <service-ref>:service=PortalAuthorizationManagerFactory</service-ref>


and then get the service from portlet context attribute with name "AMF"

This seems to be the most proper way to access jboss portal services and works fine with no exceptions now. 

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

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



More information about the jboss-user mailing list