Class CAConfigModel

    • Field Detail

      • configurationManager

        @Inject
        protected org.apache.sling.caconfig.management.ConfigurationManager configurationManager
      • contextPathStrategyMultiplexer

        @Inject
        protected org.apache.sling.caconfig.management.multiplexer.ContextPathStrategyMultiplexer contextPathStrategyMultiplexer
    • 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 interface SlingBean
        Overrides:
        initialize in class ConsoleServletBean
        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()
      • getGlobalConfigPaths

        public List<String> getGlobalConfigPaths()
      • 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.
      • 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()
      • renderValueInfoAsString

        public static String renderValueInfoAsString​(Object valueInfo)
      • renderValueAsString

        public static String renderValueAsString​(Object value)