public class VaultPackageAssembler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
VERSION_SUFFIX |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(@NotNull org.apache.jackrabbit.vault.packaging.Dependency dependency) |
void |
addEntry(@NotNull String path,
@NotNull org.apache.jackrabbit.vault.fs.io.Archive archive,
@NotNull org.apache.jackrabbit.vault.fs.io.Archive.Entry entry) |
void |
addEntry(@NotNull String path,
@NotNull File file) |
void |
addEntry(@NotNull String path,
@NotNull InputStream input) |
static @NotNull VaultPackageAssembler |
create(@NotNull File baseTempDir,
@NotNull org.apache.jackrabbit.vault.packaging.PackageId packageId,
String description)
Creates a new package assembler.
|
static @NotNull VaultPackageAssembler |
create(@NotNull File baseTempDir,
@NotNull org.apache.jackrabbit.vault.packaging.VaultPackage vaultPackage,
boolean removeInstallHooks,
boolean disablePackageTypeRecalculation)
Creates a new package assembler based on an existing package.
|
@NotNull OutputStream |
createEntry(@NotNull String path) |
@NotNull File |
createPackage() |
@NotNull File |
getEntry(@NotNull String path) |
org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter |
getFilter() |
@NotNull Properties |
getPackageProperties() |
void |
mergeFilters(@NotNull org.apache.jackrabbit.vault.fs.api.WorkspaceFilter filter) |
boolean |
recordEntryPath(@NotNull String entryPath)
Records an entry path as it is processed by the
ContentPackage2FeatureModelConverter . |
void |
updateDependencies(@NotNull Map<org.apache.jackrabbit.vault.packaging.PackageId,Set<org.apache.jackrabbit.vault.packaging.Dependency>> mutableContentsIds) |
public static final String VERSION_SUFFIX
@NotNull public static @NotNull VaultPackageAssembler create(@NotNull @NotNull File baseTempDir, @NotNull @NotNull org.apache.jackrabbit.vault.packaging.VaultPackage vaultPackage, boolean removeInstallHooks, boolean disablePackageTypeRecalculation)
baseTempDir
- the temp dirvaultPackage
- the package to take as blueprintremoveInstallHooks
- whether to remove install hooks or notdisablePackageTypeRecalculation
- disables the package recalculation and uses the parent source type@NotNull public static @NotNull VaultPackageAssembler create(@NotNull @NotNull File baseTempDir, @NotNull @NotNull org.apache.jackrabbit.vault.packaging.PackageId packageId, String description)
baseTempDir
- the temp dirpackageId
- the package id from which to generate a minimal properties.xmldescription
- the description which should end up in the package properties@NotNull public @NotNull Properties getPackageProperties()
public void mergeFilters(@NotNull @NotNull org.apache.jackrabbit.vault.fs.api.WorkspaceFilter filter)
public org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter getFilter()
public void addEntry(@NotNull @NotNull String path, @NotNull @NotNull org.apache.jackrabbit.vault.fs.io.Archive archive, @NotNull @NotNull org.apache.jackrabbit.vault.fs.io.Archive.Entry entry) throws IOException
IOException
public void addEntry(@NotNull @NotNull String path, @NotNull @NotNull File file) throws IOException
IOException
public void addEntry(@NotNull @NotNull String path, @NotNull @NotNull InputStream input) throws IOException
IOException
@NotNull public @NotNull OutputStream createEntry(@NotNull @NotNull String path) throws IOException
IOException
public boolean recordEntryPath(@NotNull @NotNull String entryPath)
ContentPackage2FeatureModelConverter
. The path of all
original entries that got processed will later be compared to the paths of those entries written back
to this assembler to build the converted content package and generate an updated WorkspaceFilter
that no
longer refers to paths that got moved out to the feature model (see also https://issues.apache.org/jira/browse/SLING-10467)entryPath
- The path of a content package entry processed by the converter.true
if the given path was successfully added to the internal set, false
otherwise.public void updateDependencies(@NotNull @NotNull Map<org.apache.jackrabbit.vault.packaging.PackageId,Set<org.apache.jackrabbit.vault.packaging.Dependency>> mutableContentsIds)
public void addDependency(@NotNull @NotNull org.apache.jackrabbit.vault.packaging.Dependency dependency)
@NotNull public @NotNull File createPackage() throws IOException
IOException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.