Errai 3.0.1-SNAPSHOT

org.jboss.errai.security.shared.api.annotation
Annotation Type RestrictedAccess


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD})
@InterceptorBinding
public @interface RestrictedAccess

Indicates that the service or element can only be accessed / shown by logged-in users who belong to all of the given security roles.

This annotation can appear anywhere the Service annotation can appear or where DataField

See Also:
Service, DataField

Optional Element Summary
 String[] roles
          The set of roles that the calling user must belong to in order to invoke the target service.
 

roles

public abstract String[] roles
The set of roles that the calling user must belong to in order to invoke the target service.

Default:
{}

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.