- All Implemented Interfaces:
public abstract class PermissionAdder
Service which can add permissions for a given user to the configured authorization strategy.
Useful e.g. to make the first user created in the system be automatically granted administer privilege.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract boolean add(AuthorizationStrategy strategy,
Called to try to give a user global permission.
strategy - the configured authorization strategy
user - a user
perm - a permission to grant, such as
- true if the permission was added, false if this service is incapable of handling it
Copyright © 2004–2021. All rights reserved.