Annotation Interface BeanRoleSecured


@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface BeanRoleSecured
Declares a field or method to be secured. BeanMapper will query the RoleSecuredCheck to see if the active user is allowed to access the field.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The role the Principal must have to be allowed access to the field or method
  • Element Details

    • value

      String[] value
      The role the Principal must have to be allowed access to the field or method
      Returns:
      Role required to access the field or method