public interface ContentPolicyManager
| Modifier and Type | Method and Description |
|---|---|
ContentPolicy |
copyPolicy(ContentPolicy originalPolicy,
java.lang.String newTitle,
java.lang.String newDescription) |
java.util.List<ContentPolicy> |
getPolicies(java.lang.String path)
Returns the list of policies for the given path
|
java.util.List<ContentPolicy> |
getPolicies(java.lang.String path,
java.lang.String policyResourceType)
Returns the list of policies for the given path.
|
ContentPolicy |
getPolicy(ComponentContext componentContext)
Get the
ContentPolicy for the given ComponentContext. |
java.util.List<ContentPolicyMapping> |
getPolicyMappings(ContentPolicy contentPolicy) |
ContentPolicy getPolicy(ComponentContext componentContext)
ContentPolicy for the given ComponentContext.componentContext - The mandatory component context to get the content policy for.null if none is configured.java.lang.IllegalArgumentException - This exception is thrown, if the given component context is
null.java.util.List<ContentPolicy> getPolicies(java.lang.String path)
path - Path from where to start searching for policiesjava.util.List<ContentPolicy> getPolicies(java.lang.String path, java.lang.String policyResourceType)
ResourceResolverpath - Path from where to start searching for policiespolicyResourceType - Sling resource type associated with the policiesContentPolicy copyPolicy(ContentPolicy originalPolicy, java.lang.String newTitle, java.lang.String newDescription)
originalPolicy - newTitle - newDescription - java.util.List<ContentPolicyMapping> getPolicyMappings(ContentPolicy contentPolicy)
contentPolicy - "Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"