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 class
CAConfigModel.CollectionConfigInfo
class
CAConfigModel.PropertyInfo
class
CAConfigModel.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.ConfigurationManager
configurationManager
protected org.apache.sling.caconfig.management.multiplexer.ContextPathStrategyMultiplexer
contextPathStrategyMultiplexer
-
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.CollectionConfigInfo
getThisCollectionConfiguration()
The information about the configuration collection this resource represents.org.apache.sling.caconfig.management.ValueInfo<?>
getThisProperty()
CAConfigModel.SingletonConfigInfo
getThisSingletonConfiguration()
The information about the configuration this resource represents.String
getViewType()
void
initialize(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 String
renderValueAsString(Object value)
static String
renderValueInfoAsString(Object valueInfo)
protected static String
toJson(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:AbstractSlingBean
This basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.- Specified by:
initialize
in interfaceSlingBean
- Overrides:
initialize
in 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()
-
-