-
public final class Cleaner
-
-
Field Summary
Fields Modifier and Type Field Description private final ListProperty<String>propertiesSkippedprivate final ListProperty<String>mixinTypesSkippedprivate final Property<Boolean>namespacesSkippedprivate final Property<Boolean>parentsBackupEnabledprivate final Property<String>parentsBackupSuffix
-
Constructor Summary
Constructors Constructor Description Cleaner(AemExtension aem)
-
Method Summary
Modifier and Type Method Description final UnitfilesDotContent(Function1<PatternFilterable, Unit> filter)Allows to control which files under each root root should be cleaned. final UnitfilesDeleted(Function1<PatternFilterable, Unit> filter)Determines which files will be deleted within running cleaning (e.g after checking out JCR content). final UnitfilesFlattened(Function1<PatternFilterable, Unit> filter)Determines which files will be flattened (e.g /_cq_dialog/.content.xml will be replaced by _cq_dialog.xml). final UnitlineProcess(Function2<File, String, String> callback)Hook for customizing particular line processing for '.content.xml' files. final UnitcontentProcess(Function2<File, List<String>, List<String>> callback)Hook for additional all lines processing for '.content.xml' files. final Unitprepare(File root)final UnitbeforeClean(File root)final Unitclean(File root)final List<String>normalizeContent(File file, List<String> lines)final List<String>mergeSinglePropertyLines(List<String> lines)final List<String>cleanNamespaces(List<String> lines)final StringnormalizeLine(File file, String line)final StringskipProperties(File file, String line)final StringnormalizeMixins(File file, String line)final StringpathRule(String pattern, List<String> excludedPaths)final StringpathRule(String pattern, List<String> excludedPaths, List<String> includedPaths)final ListProperty<String>getPropertiesSkipped()Properties that will be skipped when pulling JCR content from AEM instance. final ListProperty<String>getMixinTypesSkipped()Mixin types that will be skipped when pulling JCR content from AEM instance. final Property<Boolean>getNamespacesSkipped()Controls unused namespaces skipping. final Property<Boolean>getParentsBackupEnabled()Controls backups for parent nodes of filter roots for keeping them untouched. final Property<String>getParentsBackupSuffix()File suffix being added to parent node back up files. -
-
Constructor Detail
-
Cleaner
Cleaner(AemExtension aem)
-
-
Method Detail
-
filesDotContent
final Unit filesDotContent(Function1<PatternFilterable, Unit> filter)
Allows to control which files under each root root should be cleaned.
-
filesDeleted
final Unit filesDeleted(Function1<PatternFilterable, Unit> filter)
Determines which files will be deleted within running cleaning (e.g after checking out JCR content).
-
filesFlattened
final Unit filesFlattened(Function1<PatternFilterable, Unit> filter)
Determines which files will be flattened (e.g /_cq_dialog/.content.xml will be replaced by _cq_dialog.xml).
-
lineProcess
final Unit lineProcess(Function2<File, String, String> callback)
Hook for customizing particular line processing for '.content.xml' files.
-
contentProcess
final Unit contentProcess(Function2<File, List<String>, List<String>> callback)
Hook for additional all lines processing for '.content.xml' files.
-
beforeClean
final Unit beforeClean(File root)
-
mergeSinglePropertyLines
final List<String> mergeSinglePropertyLines(List<String> lines)
-
cleanNamespaces
final List<String> cleanNamespaces(List<String> lines)
-
normalizeLine
final String normalizeLine(File file, String line)
-
skipProperties
final String skipProperties(File file, String line)
-
normalizeMixins
final String normalizeMixins(File file, String line)
-
pathRule
final String pathRule(String pattern, List<String> excludedPaths, List<String> includedPaths)
-
getPropertiesSkipped
final ListProperty<String> getPropertiesSkipped()
Properties that will be skipped when pulling JCR content from AEM instance.
-
getMixinTypesSkipped
final ListProperty<String> getMixinTypesSkipped()
Mixin types that will be skipped when pulling JCR content from AEM instance.
-
getNamespacesSkipped
final Property<Boolean> getNamespacesSkipped()
Controls unused namespaces skipping.
-
getParentsBackupEnabled
final Property<Boolean> getParentsBackupEnabled()
Controls backups for parent nodes of filter roots for keeping them untouched.
-
getParentsBackupSuffix
final Property<String> getParentsBackupSuffix()
File suffix being added to parent node back up files.
-
-
-
-