Package com.day.cq.security.privileges
Interface PrivilegeFactory
public interface PrivilegeFactory
Deprecated.
CQ 5.5
Allows applications to create custom
The Factories get a
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.
The Factories get a
Privilege Store to delegate the
management of their user-dependent configuration data.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String privilegeId, Authorizable authorizable, PrivilegeStore store) Deprecated.The Factory creates an Privilege in any case.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 Details
-
handles
Collection<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
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
-