> Well you can make the call :) and it will throw an exception...

:-) Yes I could do that but I am not a big fan of catching unchecked
exceptions. The way I think is that if this method can throw an
unchecked exception it means it is expecting you to meet certain
conditions before you call the method, meaning you should have
"permission" to do this.

> Or you can do one of several APIs, one that comes to mind, get the
pageSecurity object:
> 
>              PageSecurity pageSecurity =
pageManager.getPageSecurity();
> 
> and then call:
> 
>                  pageSecurity.checkAccess(JetspeedActions.EDIT);

This was exactly what I needed.

Thanks for the info.

Ruben

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to