public interface PrivilegeFactory
Privileges
.
Thus factories can create Privileges that implement custom rules
to Privilege.isGranted(String)
grant}.
Factories are registred via SCR via providing this Interface as service.
Privilege Store
to delegate the
management of their user-dependent configuration data.Privilege
Modifier and Type | Method and Description |
---|---|
Privilege |
create(java.lang.String privilegeId,
Authorizable authorizable,
PrivilegeStore store)
Deprecated.
The Factory creates an Privilege in any case.
|
java.util.Collection<java.lang.String> |
handles()
Deprecated.
Explicitly declare the Privileges this Factor is able to create Privileges
for.
In case another Factory for one of the Privileges is already configured, registration of this Factory fails |
java.util.Collection<java.lang.String> handles()
Privilege-ID
this factory registers forPrivilege create(java.lang.String privilegeId, Authorizable authorizable, PrivilegeStore store)
privilegeId
- of the Privilege to create. must be contained in the set it handles
authorizable
- this privilege is created forstore
- containing configuration for the authorizable/privilege pair"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"