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 ResourceFilter
getDefaultNodeFilter()
@NotNull ResourceFilter
getOrderableNodesFilter()
@NotNull ResourceFilter
getPageNodeFilter()
@NotNull Dictionary<String,Object>
getProperties()
The (readonly) properties useable for extensions.long
getQueryResultLimit()
@NotNull ResourceFilter
getReferenceableNodesFilter()
@NotNull String
getScenesContentRoot()
@NotNull ResourceFilter
getSourceFolderNodesFilter()
Determines when a resource should be rendered as folder in the SourceServlet.@NotNull ResourceFilter
getSourceNodesFilter()
@NotNull ResourceFilter
getSourceXmlNodesFilter()
Determines when a resource should be rendered as separate XML file ("vlt:FullCoverage")@NotNull 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 ResourceFilter getPageNodeFilter()
- Specified by:
getPageNodeFilter
in interfaceNodesConfiguration
-
getDefaultNodeFilter
@NotNull public @NotNull ResourceFilter getDefaultNodeFilter()
- Specified by:
getDefaultNodeFilter
in interfaceNodesConfiguration
-
getTreeIntermediateFilter
@NotNull public @NotNull ResourceFilter getTreeIntermediateFilter()
- Specified by:
getTreeIntermediateFilter
in interfaceNodesConfiguration
-
getReferenceableNodesFilter
@NotNull public @NotNull ResourceFilter getReferenceableNodesFilter()
- Specified by:
getReferenceableNodesFilter
in interfaceNodesConfiguration
-
getOrderableNodesFilter
@NotNull public @NotNull ResourceFilter getOrderableNodesFilter()
- Specified by:
getOrderableNodesFilter
in interfaceNodesConfiguration
-
getSourceNodesFilter
@NotNull public @NotNull ResourceFilter getSourceNodesFilter()
- Specified by:
getSourceNodesFilter
in interfaceNodesConfiguration
-
getSourceFolderNodesFilter
@NotNull public @NotNull 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 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()
-
-