Class AccessController.Impl

    • Method Detail

      • hasPermission

        public boolean hasPermission​(String user,
                                     Collection<String> roles,
                                     Collection<String> groups,
                                     String permission)
        Description copied from interface: AccessController
        Determines whether the given user with the given roles and groups has the specified permission.
        Specified by:
        hasPermission in interface AccessController
        Parameters:
        user - the user
        roles - the roles
        groups - the groups
        permission - the permission
        Returns:
        true if the user has the permission, otherwise false