Annotation Interface RequiredPermission


@Retention(RUNTIME) @Target(METHOD) public @interface RequiredPermission
Annotation to mark modules or methods in modules that require certain permissions to be executed
Author:
Youngho Cho
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    an expression
    Get the names of the permissions required to use this method
  • Element Details

    • value

      String[] value
      Get the names of the permissions required to use this method
      Returns:
      an array of permission names
      Default:
      {}
    • expression

      String expression
      an expression
      Returns:
      an expression
      Default:
      ""