I trying to do that in 2.4.2 but I have got one more trouble.
I can't find
org.jboss.portal.core.impl.api.CorePortalNode
| in any jar, and sources in this version of portal, so I don't know how can
I get node URI string to
PortalObjectPermission(java.lang.String uri, int mask) constructor.
I tried to get string uri from PortalNodeURL, but then I have got unhandled
exception type for
portalAuthorizationManagerFactory.getManager().checkPermission(perm)
There is any possibility to import this class from newest version of portal, or
to use other class?
Oryginal code from CatalogPortlet.java, with my diferences:
| CorePortalNode pn = (CorePortalNode)parentSibling; //- I dont have
CorePortalNode Class
|
|
| PortalObjectPermission perm = new PortalObjectPermission(pn.getObjectId(),
PortalObjectPermission.VIEW_MASK); //so I haven't got pn object
| if (portalAuthorizationManagerFactory.getManager().checkPermission(perm))
| {
| allowed = true;
| }
| else
| {
| allowed = false;
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067860#4067860
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067860
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user