Class CAConfigModel
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.core.AbstractServletBean
-
- com.composum.sling.nodes.console.ConsoleServletBean
-
- com.composum.sling.nodes.components.CAConfigModel
-
- All Implemented Interfaces:
RestrictedBean,SlingBean
public class CAConfigModel extends ConsoleServletBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCAConfigModel.CollectionConfigInfoclassCAConfigModel.PropertyInfoclassCAConfigModel.SingletonConfigInfo-
Nested classes/interfaces inherited from class com.composum.sling.core.AbstractSlingBean
AbstractSlingBean.NodeClosure
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.sling.caconfig.management.ConfigurationManagerconfigurationManagerprotected org.apache.sling.caconfig.management.multiplexer.ContextPathStrategyMultiplexercontextPathStrategyMultiplexer-
Fields inherited from class com.composum.sling.core.AbstractSlingBean
context, queryManager, request, resolver, resource, response, session, sling
-
-
Constructor Summary
Constructors Constructor Description CAConfigModel()CAConfigModel(BeanContext context)CAConfigModel(BeanContext context, org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata>getAllMetaData()Returns all configuration metadata.List<CAConfigModel.CollectionConfigInfo>getCollectionConfigurations()List<org.apache.sling.caconfig.resource.spi.ContextResource>getContextPaths()List<String>getGlobalConfigPaths()List<CAConfigModel.SingletonConfigInfo>getSingletonConfigurations()CAConfigModel.CollectionConfigInfogetThisCollectionConfiguration()The information about the configuration collection this resource represents.org.apache.sling.caconfig.management.ValueInfo<?>getThisProperty()CAConfigModel.SingletonConfigInfogetThisSingletonConfiguration()The information about the configuration this resource represents.StringgetViewType()voidinitialize(BeanContext context, org.apache.sling.api.resource.Resource resource)This basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.static StringrenderValueAsString(Object value)static StringrenderValueInfoAsString(Object valueInfo)protected static StringtoJson(Object value)-
Methods inherited from class com.composum.sling.core.AbstractServletBean
initialize
-
Methods inherited from class com.composum.sling.core.AbstractSlingBean
executeQuery, findBeans, findNodes, findNodes, findPathList, getContentResource, getDomId, getHasTitle, getId, getInherited, getInherited, getName, getNode, getParent, getParent, getPath, getPermissible, getProperty, getProperty, getQueryManager, getRequest, getResolver, getResource, getResponse, getServiceKey, getSession, getSling, getStringId, getTitle, getType, getUrl, getUsername, isPermissible, isReadAllowed, isWriteAllowed, toString, toString
-
-
-
-
Constructor Detail
-
CAConfigModel
public CAConfigModel(BeanContext context, org.apache.sling.api.resource.Resource resource)
-
CAConfigModel
public CAConfigModel(BeanContext context)
-
CAConfigModel
public CAConfigModel()
-
-
Method Detail
-
initialize
public void initialize(BeanContext context, org.apache.sling.api.resource.Resource resource)
Description copied from class:AbstractSlingBeanThis basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.- Specified by:
initializein interfaceSlingBean- Overrides:
initializein classConsoleServletBean- Parameters:
context- the scripting context (e.g. a JSP PageContext or a Groovy scripting context)resource- the resource to use (normally the resource addressed by the request)- See Also:
BeanContext.withResource(Resource)
-
getViewType
public String getViewType()
-
getContextPaths
public List<org.apache.sling.caconfig.resource.spi.ContextResource> getContextPaths()
-
getAllMetaData
public List<org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata> getAllMetaData()
Returns all configuration metadata.
-
getSingletonConfigurations
public List<CAConfigModel.SingletonConfigInfo> getSingletonConfigurations()
-
getCollectionConfigurations
public List<CAConfigModel.CollectionConfigInfo> getCollectionConfigurations()
-
getThisCollectionConfiguration
public CAConfigModel.CollectionConfigInfo getThisCollectionConfiguration()
The information about the configuration collection this resource represents.
-
getThisSingletonConfiguration
public CAConfigModel.SingletonConfigInfo getThisSingletonConfiguration()
The information about the configuration this resource represents. It can either be a singleton configuration or an item in a collection.
-
getThisProperty
public org.apache.sling.caconfig.management.ValueInfo<?> getThisProperty()
-
-