Annotation Interface HasAnyPermissions


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface HasAnyPermissions
Annotations that applications can use to indicate that a certain method or all methods of a class require any permissions from the list.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Actions the current subject is trying to execute.
    Class<? extends org.craftercms.commons.security.permissions.Permission>
    The permission type, which indicates the PermissionEvaluator to use for permission evaluation.
  • Element Details

    • type

      Class<? extends org.craftercms.commons.security.permissions.Permission> type
      The permission type, which indicates the PermissionEvaluator to use for permission evaluation.
    • actions

      String[] actions
      Actions the current subject is trying to execute.