public class ContentPackage2FeatureModelConverter extends BaseVaultPackageScanner implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentPackage2FeatureModelConverter.PackagePolicy |
static class |
ContentPackage2FeatureModelConverter.SlingInitialContentPolicy |
| Modifier and Type | Field and Description |
|---|---|
static String |
PACKAGE_CLASSIFIER |
static String |
ZIP_TYPE |
logger, packageManager, strictValidation| Constructor and Description |
|---|
ContentPackage2FeatureModelConverter() |
ContentPackage2FeatureModelConverter(boolean strictValidation,
@NotNull ContentPackage2FeatureModelConverter.SlingInitialContentPolicy slingInitialContentPolicy) |
ContentPackage2FeatureModelConverter(boolean strictValidation,
@NotNull ContentPackage2FeatureModelConverter.SlingInitialContentPolicy slingInitialContentPolicy,
boolean disablePackageTypeRecalculation) |
onDirectory, open, traverse, traversepublic static final String ZIP_TYPE
public static final String PACKAGE_CLASSIFIER
public ContentPackage2FeatureModelConverter()
throws IOException
IOExceptionpublic ContentPackage2FeatureModelConverter(boolean strictValidation,
@NotNull
@NotNull ContentPackage2FeatureModelConverter.SlingInitialContentPolicy slingInitialContentPolicy)
throws IOException
IOExceptionpublic ContentPackage2FeatureModelConverter(boolean strictValidation,
@NotNull
@NotNull ContentPackage2FeatureModelConverter.SlingInitialContentPolicy slingInitialContentPolicy,
boolean disablePackageTypeRecalculation)
throws IOException
IOException@NotNull public @NotNull ContentPackage2FeatureModelConverter setEntryHandlersManager(@Nullable @Nullable EntryHandlersManager handlersManager)
@Nullable public @Nullable FeaturesManager getFeaturesManager()
@NotNull public @NotNull ContentPackage2FeatureModelConverter setFeaturesManager(@NotNull @NotNull FeaturesManager featuresManager)
@NotNull public @NotNull ContentPackage2FeatureModelConverter setResourceFilter(@Nullable @Nullable ResourceFilter resourceFilter)
@Nullable public @Nullable ArtifactsDeployer getArtifactsDeployer()
@NotNull public @NotNull ContentPackage2FeatureModelConverter setBundlesDeployer(@NotNull @NotNull ArtifactsDeployer bundlesDeployer)
@NotNull public @NotNull ContentPackage2FeatureModelConverter setUnreferencedArtifactsDeployer(@NotNull @NotNull ArtifactsDeployer unreferencedArtifactsDeployer)
@Nullable public @Nullable AclManager getAclManager()
@NotNull public @NotNull ContentPackage2FeatureModelConverter setAclManager(@NotNull @NotNull AclManager aclManager)
public boolean hasMainPackageAssembler()
@NotNull public @NotNull VaultPackageAssembler getMainPackageAssembler()
@NotNull public @NotNull ContentPackage2FeatureModelConverter setMainPackageAssembler(@NotNull @NotNull VaultPackageAssembler assembler)
@NotNull public @NotNull ContentPackage2FeatureModelConverter setEmitter(@NotNull @NotNull PackagesEventsEmitter emitter)
@NotNull public @NotNull ContentPackage2FeatureModelConverter setContentTypePackagePolicy(@NotNull @NotNull ContentPackage2FeatureModelConverter.PackagePolicy contentTypePackagePolicy)
@NotNull public @NotNull ContentPackage2FeatureModelConverter setFailOnMixedPackages(boolean failOnMixedPackages)
@NotNull public @NotNull ContentPackage2FeatureModelConverter setRemoveInstallHooks(boolean removeInstallHook)
@NotNull public @NotNull File getTempDirectory()
public void cleanup()
throws IOException
IOExceptionpublic void convert(@NotNull
File... contentPackages)
throws IOException,
ConverterException
IOExceptionConverterException@NotNull protected @NotNull Collection<org.apache.jackrabbit.vault.packaging.VaultPackage> firstPass(@NotNull File... contentPackages) throws IOException, ConverterException
IOExceptionConverterExceptionpublic void processSubPackage(@NotNull
@NotNull String path,
@Nullable
@Nullable String runMode,
@NotNull
@NotNull org.apache.jackrabbit.vault.packaging.VaultPackage vaultPackage,
boolean isEmbeddedPackage)
throws IOException,
ConverterException
IOExceptionConverterExceptionpublic void deployPackages()
public boolean isSubContentPackageIncluded(@NotNull
@NotNull String path)
public ContentPackage2FeatureModelConverter setBundleSlingInitialContentExtractor(BundleSlingInitialContentExtractor bundleSlingInitialContentExtractor)
protected void onFile(@NotNull
@NotNull String entryPath,
@NotNull
@NotNull org.apache.jackrabbit.vault.fs.io.Archive archive,
@NotNull
@NotNull org.apache.jackrabbit.vault.fs.io.Archive.Entry entry)
throws IOException,
ConverterException
onFile in class BaseVaultPackageScannerIOExceptionConverterException@NotNull
public static @NotNull org.apache.sling.feature.ArtifactId toArtifactId(@NotNull
@NotNull org.apache.jackrabbit.vault.packaging.PackageId packageId,
@NotNull
@NotNull File file)
protected void addCdnPattern(@NotNull
@NotNull Pattern cndPattern)
addCdnPattern in class BaseVaultPackageScannerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic List<VaultPackageAssembler> getAssemblers()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.