Annotation Interface AvailableForRoles


@Target(TYPE) @Retention(RUNTIME) public @interface AvailableForRoles
Specifies set of resource roles that can launch the defined report in certain views and actions. If this annotation is missing, or list of roles is empty - then restriction by role is not activated, i.e. any user can launch the report. Persistent analog is ReportRole.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Resource role definition interfaces (marked with @ResourceRole) that should have access to the report.
    Resource role codes that should have access to the report.
  • Element Details

    • roleCodes

      String[] roleCodes
      Resource role codes that should have access to the report.
      Default:
      {}
    • roleClasses

      Class[] roleClasses
      Resource role definition interfaces (marked with @ResourceRole) that should have access to the report.
      Default:
      {}