@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.ComponentPolicy.class) public class ComponentPolicyImpl extends Object implements ComponentPolicy
Constructor and Description |
---|
ComponentPolicyImpl(org.apache.sling.api.resource.Resource resource) |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(org.apache.sling.api.resource.Resource resource) |
String[] |
getAvailableComponentTypes() |
Map<String,org.apache.sling.api.resource.Resource> |
getComponentConfigs() |
void |
init() |
String |
toString() |
public ComponentPolicyImpl(org.apache.sling.api.resource.Resource resource)
public boolean applies(org.apache.sling.api.resource.Resource resource)
applies
in interface ComponentPolicy
public String[] getAvailableComponentTypes()
getAvailableComponentTypes
in interface ComponentPolicy
public Map<String,org.apache.sling.api.resource.Resource> getComponentConfigs()
getComponentConfigs
in interface ComponentPolicy
@PostConstruct public void init()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.