Package com.day.cq.security.util
Class CRXPolicyManager
- java.lang.Object
-
- com.day.cq.security.util.CRXPolicyManager
-
@Deprecated public class CRXPolicyManager extends java.lang.Object
Deprecated.Since CQ 5.3 Please use JCR API instead.Tool to apply Access Control on a CRX Repository
-
-
Constructor Summary
Constructors Constructor Description CRXPolicyManager(Session session)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
applyPolicy(java.lang.String path, AclPolicy policy)
Deprecated.Applies the Policy.AclPolicy
privatePolicy()
Deprecated.
-
-
-
Constructor Detail
-
CRXPolicyManager
public CRXPolicyManager(Session session) throws RepositoryException
Deprecated.- Throws:
RepositoryException
-
-
Method Detail
-
applyPolicy
public boolean applyPolicy(java.lang.String path, AclPolicy policy) throws AccessDeniedException
Deprecated.Applies the Policy. Adds Entries to the Repository's ACL. The ACL is only modified if the effective Permissions are changed by the Policy given.- Parameters:
path
- to apply the Policy topolicy
- to apply- Returns:
- if the Repository changed
- Throws:
AccessDeniedException
- the Session is not allowe to modify Access Control- See Also:
privatePolicy()
,AclPolicy(String, String[], boolean)
-
privatePolicy
public AclPolicy privatePolicy()
Deprecated.- Returns:
- creates a Policy that initaly denies access to everybody
-
-