B. Shadgar wrote:
> Hi ,
> 
> Could you please let me know, how can I find out the permission of a
> resource manually. In other words, I'm looking for a method or
> programming codes which returns true or false when it checks if the
> particular resource has a particular permission.
> 
> Many thanks,
> Bita.
> 

You can use one of the following security helper's methods and catch 
AccessDeniedException :

void checkCredentials(SlideToken st,ObjectNode object,ActionNode action)

(Check if the credentials given grants permission to perform the 
specified action on the specified subject).

or

void checkPermission(ObjectNode object,SubjectNode subject,ActionNode 
action)

(Check whether or not an actor can perform the specified activity on a 
collection).

JP


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to