public class PathEntry extends ImportOptions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTOCHECKOUT_DIRECTIVE
The autoCheckout directive specifying whether versionable nodes should be
checked out when necessary
|
static java.lang.String |
CHECKIN_DIRECTIVE
The checkin directive specifying whether versionable nodes should be
checked in
|
static java.lang.String |
CONTENT_HEADER
The manifest header to specify initial content to be loaded.
|
static java.lang.String |
IGNORE_CONTENT_READERS_DIRECTIVE
The ignore content readers directive specifying whether the available
ContentReader s should be used during
content loading. |
static java.lang.String |
MERGE_NODES_DIRECTIVE
The overwriteProperties directive specifying if content properties
should be overwritten or just initially added.
|
static java.lang.String |
MERGE_PROPERTIES_DIRECTIVE
The overwriteProperties directive specifying if content properties
should be overwritten or just initially added.
|
static java.lang.String |
OVERWRITE_DIRECTIVE
The overwrite directive specifying if content should be overwritten or
just initially added.
|
static java.lang.String |
OVERWRITE_PROPERTIES_DIRECTIVE
The overwriteProperties directive specifying if content properties
should be overwritten or just initially added.
|
static java.lang.String |
PATH_DIRECTIVE
The path directive specifying the target node where initial content will
be loaded.
|
static java.lang.String |
UNINSTALL_DIRECTIVE
The uninstall directive specifying if content should be uninstalled.
|
java.util.Set<java.lang.String> |
VALID_DIRECTIVES
All directive names which are valid for header Sling-Initial-Content
|
static java.lang.String |
WORKSPACE_DIRECTIVE
The workspace into which the content will be loaded.
|
Constructor and Description |
---|
PathEntry(ManifestHeader.Entry entry,
long bundleLastModified) |
PathEntry(ManifestHeader.Entry entry,
long bundleLastModified,
@Nullable java.lang.String bundleSymbolicName) |
Modifier and Type | Method and Description |
---|---|
static @Nullable java.util.Iterator<PathEntry> |
getContentPaths(org.osgi.framework.Bundle bundle)
Parses the "Sling-Initial-Content" header from the given bundle and returns the resolved PathEntries
|
static @Nullable java.util.Iterator<PathEntry> |
getContentPaths(@NotNull java.util.jar.Manifest manifest,
long bundleLastModified)
Parses the "Sling-Initial-Content" header from the given manifest and returns the resolved PathEntries
|
static @Nullable java.util.Iterator<PathEntry> |
getContentPaths(java.util.Map<java.lang.String,java.lang.String> headers,
long bundleLastModified)
Parses the "Sling-Initial-Content" header from the given headers and returns the resolved PathEntries
|
java.util.Set<java.lang.String> |
getIgnoredContentReaders() |
long |
getLastModified() |
java.lang.String |
getPath() |
java.lang.String |
getTarget() |
java.lang.String |
getWorkspace() |
boolean |
isAutoCheckout()
Specifies whether versionable nodes is automatically checked out when
necessary.
|
boolean |
isCheckin()
Specifies whether versionable nodes is automatically checked in at the
end of the import operation.
|
boolean |
isIgnoredImportProvider(java.lang.String extension)
Check if the content reader for the given file extension should
be ignored.
|
boolean |
isMerge()
Specifies whether imported nodes should merge with existing nodes.
|
boolean |
isOverwrite()
Specifies whether imported nodes should overwrite existing nodes.
|
boolean |
isPropertyMerge()
Specifies whether imported properties should merge with existing properties.
|
boolean |
isPropertyOverwrite()
Specifies whether imported properties should overwrite existing properties.
|
boolean |
isUninstall() |
public static final java.lang.String CONTENT_HEADER
public static final java.lang.String OVERWRITE_DIRECTIVE
public static final java.lang.String OVERWRITE_PROPERTIES_DIRECTIVE
public static final java.lang.String MERGE_PROPERTIES_DIRECTIVE
public static final java.lang.String MERGE_NODES_DIRECTIVE
public static final java.lang.String UNINSTALL_DIRECTIVE
public static final java.lang.String PATH_DIRECTIVE
public static final java.lang.String WORKSPACE_DIRECTIVE
public static final java.lang.String CHECKIN_DIRECTIVE
public static final java.lang.String AUTOCHECKOUT_DIRECTIVE
public static final java.lang.String IGNORE_CONTENT_READERS_DIRECTIVE
ContentReader
s should be used during
content loading. This is a string value that defaults to the emptystring.public java.util.Set<java.lang.String> VALID_DIRECTIVES
public PathEntry(ManifestHeader.Entry entry, long bundleLastModified)
public PathEntry(ManifestHeader.Entry entry, long bundleLastModified, @Nullable @Nullable java.lang.String bundleSymbolicName)
@Nullable public static @Nullable java.util.Iterator<PathEntry> getContentPaths(@NotNull @NotNull java.util.jar.Manifest manifest, long bundleLastModified)
manifest
- the manifestbundleLastModified
- the timestamp when the bundle has been last modified or -1 if not knownPathEntry
items or null
in case no "Sling-Initial-Content" header was found in the manifest@Nullable public static @Nullable java.util.Iterator<PathEntry> getContentPaths(org.osgi.framework.Bundle bundle)
bundle
- the bundlePathEntry
items or null
in case no "Sling-Initial-Content" header was found in the bundle's manifest@Nullable public static @Nullable java.util.Iterator<PathEntry> getContentPaths(java.util.Map<java.lang.String,java.lang.String> headers, long bundleLastModified)
headers
- the manifest headersbundleLastModified
- the timestamp when the bundle has been last modified or -1 if not knownPathEntry
items or null
in case no "Sling-Initial-Content" header was foundpublic long getLastModified()
public java.lang.String getPath()
public boolean isOverwrite()
ImportOptions
isOverwrite
in class ImportOptions
public boolean isPropertyOverwrite()
ImportOptions
isPropertyOverwrite
in class ImportOptions
public boolean isUninstall()
public boolean isCheckin()
ImportOptions
isCheckin
in class ImportOptions
public boolean isAutoCheckout()
ImportOptions
isAutoCheckout
in class ImportOptions
public boolean isIgnoredImportProvider(java.lang.String extension)
ImportOptions
isIgnoredImportProvider
in class ImportOptions
extension
- the extension to checkpublic java.util.Set<java.lang.String> getIgnoredContentReaders()
public java.lang.String getTarget()
public java.lang.String getWorkspace()
public boolean isPropertyMerge()
ImportOptions
isPropertyMerge
in class ImportOptions
public boolean isMerge()
ImportOptions
isMerge
in class ImportOptions
Copyright © 2022 The Apache Software Foundation. All rights reserved.