public static final class ChecklistExporter.Builder extends Object
ChecklistExporter
, which is otherwise immutable.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChecklistExporter |
build()
Create the new exporter instance.
|
ChecklistExporter.Builder |
byNodeType(String... nodeTypes)
Add an operation to export a set of roots returned by a nodetype query.
|
ChecklistExporter.Builder |
byPath(String... paths)
Add an operation to export a set of roots by individual paths.
|
ChecklistExporter.Builder |
byQuery(String statement)
Add an operation to export a set of roots returned by the specified JCR query.
|
ChecklistExporter.Builder |
withExportNodeTypes(List<String> exportNodeTypes)
To export node types that aren't necessarily referenced in exported forced roots or in a node type selector,
list them here in the same format as you would in a node type selector.
|
ChecklistExporter.Builder |
withJcrNamespaces(List<JcrNs> jcrNamespaces)
Provide a list of JCR namespace prefix mappings to register or remap before performing the operations.
|
ChecklistExporter.Builder |
withNodeTypeFilters(List<Rule> nodeTypeFilters)
In situations where a checklist is only concerned with a subset of node types, use this method to
exclude irrelevant types from the output.
|
ChecklistExporter.Builder |
withScopePaths(List<Rule> scopePaths)
Limit the scope of exported forced root paths using a list of
Rule patterns. |
public ChecklistExporter.Builder byPath(String... paths)
paths
- the list of paths to export as forced rootspublic ChecklistExporter.Builder byQuery(String statement)
statement
- the JCR query statementpublic ChecklistExporter.Builder byNodeType(String... nodeTypes)
nodeTypes
- the list of JCR node types to query forpublic ChecklistExporter.Builder withScopePaths(List<Rule> scopePaths)
Rule
patterns. Paths which last-match
an "INCLUDE" pattern are considered to be "in scope", which means they can be returned by the specified
operations and/or replaced in existing checklists. Use EXCLUDE patterns to protect existing forced roots from
being overwritten by a particular instance of ChecklistExporter
.scopePaths
- the list of include/exclude patternsRules.lastMatch(List, String)
public ChecklistExporter.Builder withNodeTypeFilters(List<Rule> nodeTypeFilters)
nodeTypeFilters
- the list of include/exclude patternsRules.lastMatch(List, String)
public ChecklistExporter.Builder withJcrNamespaces(List<JcrNs> jcrNamespaces)
jcrNamespaces
- the list of jcr namespace mappingspublic ChecklistExporter.Builder withExportNodeTypes(List<String> exportNodeTypes)
nodeTypeFilters
, which makes sense if you select a broad supertype for export, but want to restrict the
resulting exported subtypes to a particular namespace, or to exclude an enumerated list of subtypes.exportNodeTypes
- the list of JCR node types to exportbyNodeType(String...)
public ChecklistExporter build()
ChecklistExporter
instanceCopyright © 2017–2020. All rights reserved.