Version 2

    Check permission for any PortalObjectNode instance




    Access to PortalAuthorizationManagerFactory, then to the PortalAuthorizationManager for permission checking.


    From within a portlet, retrieve this factory using :

    PortalAuthorizationManagerFactory pamf = (PortalAuthorizationManagerFactory) getPortletContext().getAttribute("AMF");


    Then use the checkPermission() method of the Manager.


    You have to inject the service in the portlet context attribute, by declaring in jboss-portlet.xml file :