Class ComponentPolicyImpl
- java.lang.Object
-
- org.apache.sling.cms.core.internal.models.ComponentPolicyImpl
-
- All Implemented Interfaces:
ComponentPolicy
@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.ComponentPolicy.class) public class ComponentPolicyImpl extends Object implements ComponentPolicy
-
-
Constructor Summary
Constructors Constructor Description ComponentPolicyImpl(org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applies(org.apache.sling.api.resource.Resource resource)
String[]
getAvailableComponentTypes()
Map<String,org.apache.sling.api.resource.Resource>
getComponentConfigs()
String
toString()
-
-
-
Method Detail
-
applies
public boolean applies(org.apache.sling.api.resource.Resource resource)
- Specified by:
applies
in interfaceComponentPolicy
-
getAvailableComponentTypes
public String[] getAvailableComponentTypes()
- Specified by:
getAvailableComponentTypes
in interfaceComponentPolicy
-
getComponentConfigs
public Map<String,org.apache.sling.api.resource.Resource> getComponentConfigs()
- Specified by:
getComponentConfigs
in interfaceComponentPolicy
-
-