Package org.codelibs.fess.annotation
Annotation Type Secured
-
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Inherited @Documented public @interface Secured
Java 5 annotation for describing service layer security attributes.The
Securedannotation is used to define a list of security configuration attributes for business methods.For example:
@Secured({ "ROLE_USER" }) public void create(Contact contact); @Secured({ "ROLE_USER", "ROLE_ADMIN" }) public void update(Contact contact); @Secured({ "ROLE_ADMIN" }) public void delete(Contact contact);- Author:
- Mark St.Godard
-
-
Element Detail
-
value
String[] value
Returns the list of security configuration attributes (e.g. ROLE_USER, ROLE_ADMIN).- Returns:
- String[] The secure method attributes
-
-