@Model(adaptables=org.apache.sling.api.resource.ResourceResolver.class,
adapters=org.apache.sling.cms.ComponentManager.class)
public class ComponentManagerImpl
extends java.lang.Object
implements org.apache.sling.cms.ComponentManager
Constructor and Description |
---|
ComponentManagerImpl(org.apache.sling.api.resource.Resource resource) |
ComponentManagerImpl(org.apache.sling.api.resource.ResourceResolver resolver) |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.apache.sling.cms.Component> |
getAllComponents()
Returns all of the components in Sling CMS with a component type specified.
|
java.util.Map<java.lang.String,java.util.List<org.apache.sling.cms.Component>> |
getComponentsByType()
Returns a Map of the components with a component type specified with the key
of the map being the component type and the value being the list of
components for that type.
|
java.util.List<java.lang.String> |
getComponentTypes()
Returns a list of all of the registered component types
|
public ComponentManagerImpl(org.apache.sling.api.resource.Resource resource)
public ComponentManagerImpl(org.apache.sling.api.resource.ResourceResolver resolver)
public java.util.List<org.apache.sling.cms.Component> getAllComponents()
getAllComponents
in interface org.apache.sling.cms.ComponentManager
public java.util.Map<java.lang.String,java.util.List<org.apache.sling.cms.Component>> getComponentsByType()
getComponentsByType
in interface org.apache.sling.cms.ComponentManager
public java.util.List<java.lang.String> getComponentTypes()
getComponentTypes
in interface org.apache.sling.cms.ComponentManager
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.