org.rhq.enterprise.server.authz
Annotation Type RequiredPermission


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface RequiredPermission

This annotation defines a global JON permission that is required in order to invoke a particular SLSB method.


Required Element Summary
 org.rhq.core.domain.authz.Permission value
          A global JON permissions (i.e.
 
Optional Element Summary
 String error
          If a user fails the required permissions check, this will be the error message of the exception that gets thrown.
 

Element Detail

value

public abstract org.rhq.core.domain.authz.Permission value
A global JON permissions (i.e. permission where permission.getTarget() == Permission.Target.GLOBAL).

error

public abstract String error
If a user fails the required permissions check, this will be the error message of the exception that gets thrown. If this is not specified, it defaults to an empty string which will be interpreted by the interceptor that performs the security checks that a default, generic error message is to be used.

Default:
""


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.