Interface AccessControlled

    • Method Detail

      • getACL

        @NonNull
        ACL getACL()
        Obtains the ACL associated with this object.
        Returns:
        never null.
      • checkPermission

        default void checkPermission​(@NonNull
                                     Permission permission)
                              throws org.springframework.security.access.AccessDeniedException
        Convenient short-cut for getACL().checkPermission(permission)
        Throws:
        org.springframework.security.access.AccessDeniedException
      • checkAnyPermission

        default void checkAnyPermission​(@NonNull
                                        Permission... permission)
                                 throws org.springframework.security.access.AccessDeniedException
        Convenient short-cut for getACL().checkAnyPermission(permission)
        Throws:
        org.springframework.security.access.AccessDeniedException
        Since:
        2.222
        See Also:
        ACL.checkAnyPermission(Permission...)
      • hasPermission

        default boolean hasPermission​(@NonNull
                                      Permission permission)
        Convenient short-cut for getACL().hasPermission(permission)
      • hasPermission2

        default boolean hasPermission2​(@NonNull
                                       org.springframework.security.core.Authentication a,
                                       @NonNull
                                       Permission permission)
        Convenient short-cut for getACL().hasPermission2(a, permission)
        Since:
        2.266