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