org.kohsuke.stapler
Annotation Type LimitedTo


@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
@InterceptorAnnotation(value=LimitedTo.Processor.class)
public @interface LimitedTo

Declares that methods are only available for requests that have the specified role(s).

This annotation should be placed on methods that need to be secured (iow protected from anonymous users.)

Author:
Kohsuke Kawaguchi

Required Element Summary
 java.lang.String value
          The name of role.
 

Element Detail

value

public abstract java.lang.String value
The name of role. the method can be invoked only if the user belongs to this role.



Copyright © 2012. All Rights Reserved.