Package com.composum.sling.nodes
Class NodesConfigImpl
- java.lang.Object
-
- com.composum.sling.nodes.NodesConfigImpl
-
- All Implemented Interfaces:
NodesConfiguration
public class NodesConfigImpl extends Object implements NodesConfiguration
The configuration service for all servlets in the core bundle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NodesConfigImpl.Configuration
Configuration object forNodesConfiguration
.
-
Field Summary
Fields Modifier and Type Field Description protected Dictionary<String,Object>
properties
-
Constructor Summary
Constructors Constructor Description NodesConfigImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.service.component.ComponentContext context, NodesConfigImpl.Configuration configuration)
boolean
checkConsoleAccess()
protected void
deactivate()
@NotNull String[]
getConsoleCategories()
@NotNull com.composum.sling.core.filter.ResourceFilter
getDefaultNodeFilter()
@NotNull com.composum.sling.core.filter.ResourceFilter
getOrderableNodesFilter()
@NotNull com.composum.sling.core.filter.ResourceFilter
getPageNodeFilter()
@NotNull Dictionary<String,Object>
getProperties()
The (readonly) properties useable for extensions.long
getQueryResultLimit()
@NotNull com.composum.sling.core.filter.ResourceFilter
getReferenceableNodesFilter()
@NotNull String
getScenesContentRoot()
@NotNull com.composum.sling.core.filter.ResourceFilter
getSourceFolderNodesFilter()
Determines when a resource should be rendered as folder in the SourceServlet.@NotNull com.composum.sling.core.filter.ResourceFilter
getSourceNodesFilter()
@NotNull com.composum.sling.core.filter.ResourceFilter
getSourceXmlNodesFilter()
Determines when a resource should be rendered as separate XML file ("vlt:FullCoverage")@NotNull com.composum.sling.core.filter.ResourceFilter
getTreeIntermediateFilter()
boolean
isSourceAdvancedSortAttributes()
Determines for the SourceServlet whether the attributes are sorted by importance.
-
-
-
Field Detail
-
properties
protected volatile Dictionary<String,Object> properties
-
-
Method Detail
-
checkConsoleAccess
public boolean checkConsoleAccess()
- Specified by:
checkConsoleAccess
in interfaceNodesConfiguration
-
getConsoleCategories
@NotNull public @NotNull String[] getConsoleCategories()
- Specified by:
getConsoleCategories
in interfaceNodesConfiguration
-
getQueryResultLimit
public long getQueryResultLimit()
- Specified by:
getQueryResultLimit
in interfaceNodesConfiguration
-
getPageNodeFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getPageNodeFilter()
- Specified by:
getPageNodeFilter
in interfaceNodesConfiguration
-
getDefaultNodeFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getDefaultNodeFilter()
- Specified by:
getDefaultNodeFilter
in interfaceNodesConfiguration
-
getTreeIntermediateFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getTreeIntermediateFilter()
- Specified by:
getTreeIntermediateFilter
in interfaceNodesConfiguration
-
getReferenceableNodesFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getReferenceableNodesFilter()
- Specified by:
getReferenceableNodesFilter
in interfaceNodesConfiguration
-
getOrderableNodesFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getOrderableNodesFilter()
- Specified by:
getOrderableNodesFilter
in interfaceNodesConfiguration
-
getSourceNodesFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getSourceNodesFilter()
- Specified by:
getSourceNodesFilter
in interfaceNodesConfiguration
-
getSourceFolderNodesFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getSourceFolderNodesFilter()
Description copied from interface:NodesConfiguration
Determines when a resource should be rendered as folder in the SourceServlet.- Specified by:
getSourceFolderNodesFilter
in interfaceNodesConfiguration
-
getSourceXmlNodesFilter
@NotNull public @NotNull com.composum.sling.core.filter.ResourceFilter getSourceXmlNodesFilter()
Description copied from interface:NodesConfiguration
Determines when a resource should be rendered as separate XML file ("vlt:FullCoverage")- Specified by:
getSourceXmlNodesFilter
in interfaceNodesConfiguration
-
isSourceAdvancedSortAttributes
public boolean isSourceAdvancedSortAttributes()
Description copied from interface:NodesConfiguration
Determines for the SourceServlet whether the attributes are sorted by importance.- Specified by:
isSourceAdvancedSortAttributes
in interfaceNodesConfiguration
-
getScenesContentRoot
@NotNull public @NotNull String getScenesContentRoot()
- Specified by:
getScenesContentRoot
in interfaceNodesConfiguration
-
getProperties
@NotNull public @NotNull Dictionary<String,Object> getProperties()
Description copied from interface:NodesConfiguration
The (readonly) properties useable for extensions. E.g. introduce a new property in a newer nodes version, and use it if accessible already when depending on an older nodes version.- Specified by:
getProperties
in interfaceNodesConfiguration
-
activate
public void activate(org.osgi.service.component.ComponentContext context, NodesConfigImpl.Configuration configuration)
-
deactivate
protected void deactivate()
-
-