Annotation Interface FieldSecurity


@Target(FIELD) @Retention(RUNTIME) public @interface FieldSecurity
Declares role-based read and write access for a field.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Roles allowed to read the field.
    Policy applied when write access is denied.
    Roles allowed to write the field.
  • Element Details

    • readRoles

      String[] readRoles
      Roles allowed to read the field.
      Default:
      {"ALL"}
    • writeRoles

      String[] writeRoles
      Roles allowed to write the field.
      Default:
      {"ALL"}
    • writePolicy

      WritePolicy writePolicy
      Policy applied when write access is denied.
      Default:
      SKIP_ON_DENIED