Package com.day.cq.security.privileges
Interface PrivilegeFactory
-
public interface PrivilegeFactoryDeprecated.CQ 5.5Allows applications to create customPrivileges. Thus factories can create Privileges that implement custom rules toPrivilege.isGranted(String)grant}. Factories are registred via SCR via providing this Interface as service.
The Factories get aPrivilege Storeto delegate the management of their user-dependent configuration data.- See Also:
Privilege
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Privilegecreate(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
-
-
-
Method Detail
-
handles
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- Returns:
- collections of the
Privilege-IDthis factory registers for
-
create
Privilege create(java.lang.String privilegeId, Authorizable authorizable, PrivilegeStore store)
Deprecated.The Factory creates an Privilege in any case.- Parameters:
privilegeId- of the Privilege to create. must be contained in the set ithandlesauthorizable- this privilege is created forstore- containing configuration for the authorizable/privilege pair- Returns:
- Privilege created for the Authorizable
-
-