Class DefaultPackagesEventsEmitter
java.lang.Object
org.apache.sling.feature.cpconverter.vltpkg.DefaultPackagesEventsEmitter
- All Implemented Interfaces:
PackagesEventsEmitter
Writes a CSV file
containerFile,packageId,packageType[,parentId,pathInParent]-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Package converter endsvoidendPackage(@NotNull org.apache.jackrabbit.vault.packaging.PackageId originalPackageId, @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage convertedPackage) Marks the end of the conversion of the package withoriginalPackageId.voidendSubPackage(@NotNull String path, @NotNull org.apache.jackrabbit.vault.packaging.PackageId originalPackageId, @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage convertedPackage) Marks the end of the conversion of the sub package withoriginalPackageId.static @NotNull DefaultPackagesEventsEmittervoidstart()Package converter startsvoidstartPackage(@NotNull org.apache.jackrabbit.vault.packaging.VaultPackage originalPackage) Marks the start of the given original package.voidstartSubPackage(@NotNull String path, @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage originalPackage) Marks the start of the given sub package.
-
Constructor Details
-
DefaultPackagesEventsEmitter
-
-
Method Details
-
open
@NotNull public static @NotNull DefaultPackagesEventsEmitter open(@NotNull @NotNull File featureModelsOutputDirectory) throws IOException - Throws:
IOException
-
start
public void start()Description copied from interface:PackagesEventsEmitterPackage converter starts- Specified by:
startin interfacePackagesEventsEmitter
-
end
public void end()Description copied from interface:PackagesEventsEmitterPackage converter ends- Specified by:
endin interfacePackagesEventsEmitter
-
startPackage
public void startPackage(@NotNull @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage originalPackage) Description copied from interface:PackagesEventsEmitterMarks the start of the given original package.- Specified by:
startPackagein interfacePackagesEventsEmitter- Parameters:
originalPackage- the package to be converted.
-
endPackage
public void endPackage(@NotNull @NotNull org.apache.jackrabbit.vault.packaging.PackageId originalPackageId, @NotNull @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage convertedPackage) Description copied from interface:PackagesEventsEmitterMarks the end of the conversion of the package withoriginalPackageId.- Specified by:
endPackagein interfacePackagesEventsEmitter- Parameters:
originalPackageId- The id of the original package as passed toPackagesEventsEmitter.startPackage(VaultPackage).convertedPackage- the converted package.
-
startSubPackage
public void startSubPackage(@NotNull @NotNull String path, @NotNull @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage originalPackage) Description copied from interface:PackagesEventsEmitterMarks the start of the given sub package.- Specified by:
startSubPackagein interfacePackagesEventsEmitter- Parameters:
path- The path of the sub package in the original parent packageoriginalPackage- the sub package to be converted.
-
endSubPackage
public void endSubPackage(@NotNull @NotNull String path, @NotNull @NotNull org.apache.jackrabbit.vault.packaging.PackageId originalPackageId, @NotNull @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage convertedPackage) Description copied from interface:PackagesEventsEmitterMarks the end of the conversion of the sub package withoriginalPackageId.- Specified by:
endSubPackagein interfacePackagesEventsEmitter- Parameters:
path- The path of the original sub package in the parent packageoriginalPackageId- The id of the original sub package as passed toPackagesEventsEmitter.startSubPackage(String, VaultPackage).convertedPackage- the converted package
-