public interface JcrPackageDefinition
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NN_FILTER
Node name of the filter node
|
static java.lang.String |
PN_AC_HANDLING
Property name of the access control handling mode
|
static java.lang.String |
PN_BUILD_COUNT
Property name of the build count
|
static java.lang.String |
PN_CND_PATTERN
Property name of the cnd pattern filter
|
static java.lang.String |
PN_CREATED
Property name of the creation date
|
static java.lang.String |
PN_CREATED_BY
Property name of the creation user id
|
static java.lang.String |
PN_DEPENDENCIES
Property name of the package dependencies
|
static java.lang.String |
PN_DESCRIPTION
Property name of the package description
|
static java.lang.String |
PN_DISABLE_INTERMEDIATE_SAVE
Property name of the disable intermediate save flag
|
static java.lang.String |
PN_GROUP
Property name of the 'group'
|
static java.lang.String |
PN_LAST_UNPACKED
Property name of the last unpacked date
|
static java.lang.String |
PN_LAST_UNPACKED_BY
Property name of the last unpacked user id
|
static java.lang.String |
PN_LAST_UNWRAPPED
Property name of the last unwrapped date
|
static java.lang.String |
PN_LAST_UNWRAPPED_BY
Property name of the last unwrapped user id
|
static java.lang.String |
PN_LAST_WRAPPED
Property name of the last wrapped date
|
static java.lang.String |
PN_LAST_WRAPPED_BY
Property name of the last wrapped user id
|
static java.lang.String |
PN_LASTMODIFIED
Property name of the last modification date
|
static java.lang.String |
PN_LASTMODIFIED_BY
Property name of the last modification user id
|
static java.lang.String |
PN_MODE
Property name of the filter root
|
static java.lang.String |
PN_NAME
Property name of the 'name'
|
static java.lang.String |
PN_PATTERN
Property name of the rule pattern
|
static java.lang.String |
PN_REQUIRES_RESTART
Property name of the "require restart" flag
|
static java.lang.String |
PN_REQUIRES_ROOT
Property name of the "requires root" flag
|
static java.lang.String |
PN_ROOT
Property name of the filter root
|
static java.lang.String |
PN_RULES
Property name of the filter rules
|
static java.lang.String |
PN_SUB_PACKAGES
Property name of the sub packages (only used in snapshots)
|
static java.lang.String |
PN_TYPE
Property name of the rule type
|
static java.lang.String |
PN_VERSION
Property name of the package version
|
Modifier and Type | Method and Description |
---|---|
void |
dumpCoverage(ProgressTrackerListener listener)
Dumps the coverage of this definition to the given listener
|
java.lang.String |
get(java.lang.String name)
Generic method to retrieve a string property of this definition.
|
AccessControlHandling |
getAccessControlHandling()
Returns the access control handling defined in the definition, or
null
if not defined. |
boolean |
getBoolean(java.lang.String name)
Generic method to retrieve a boolean property of this definition.
|
long |
getBuildCount()
Returns the build count of this package
|
java.util.Calendar |
getCalendar(java.lang.String name)
Generic method to retrieve a date property of this definition.
|
java.util.Calendar |
getCreated()
Returns the created date
|
java.lang.String |
getCreatedBy()
Returns the creator user id
|
Dependency[] |
getDependencies()
Returns the dependencies stored in this definition
|
java.lang.String |
getDescription()
Returns the description of this package
|
PackageId |
getId()
Returns the package id
|
java.util.Calendar |
getLastModified()
Returns the last modified date
|
java.lang.String |
getLastModifiedBy()
Returns the last modified user id
|
java.util.Calendar |
getLastUnpacked()
Returns the date when the package was unpacked
|
java.lang.String |
getLastUnpackedBy()
Returns the user id who unpacked the package
|
java.util.Calendar |
getLastUnwrapped()
Returns the last unwrapped date
|
java.lang.String |
getLastUnwrappedBy()
Returns the last unwrapped user id
|
java.util.Calendar |
getLastWrapped()
Returns the last wrapped date
|
java.lang.String |
getLastWrappedBy()
Returns the wrapper user id
|
MetaInf |
getMetaInf()
Returns the meta inf of this package
|
Node |
getNode()
Returns the underlying node
|
boolean |
isModified()
Checks if the definition was modified since it was last wrapped.
|
boolean |
isUnwrapped()
Checks if this definition is unwrapped, i.e.
|
boolean |
requiresRestart()
Returns
true if this package needs restart after installation. |
boolean |
requiresRoot()
Deprecated.
|
void |
set(java.lang.String name,
boolean value,
boolean autoSave)
Generic method to set a boolean property to this definition.
|
void |
set(java.lang.String name,
java.util.Calendar value,
boolean autoSave)
Generic method to set a date property to this definition.
|
void |
set(java.lang.String name,
java.lang.String value,
boolean autoSave)
Generic method to set a string property to this definition.
|
void |
setDependencies(Dependency[] dependencies,
boolean autoSave)
Sets the dependencies to this definition and stores it in a node representation.
|
void |
setFilter(WorkspaceFilter filter,
boolean autoSave)
Sets the filter to this definition and stores it in a node representation.
|
void |
setId(PackageId id,
boolean autoSave)
Writes the properties derived from the package id to the content
|
void |
touch(java.util.Calendar now,
boolean autoSave)
Touches the last modified and last modified by property.
|
void |
unwrap(VaultPackage pack,
boolean force,
boolean autoSave)
Unwraps the package definition to the underlying node.
|
static final java.lang.String PN_LAST_UNPACKED
static final java.lang.String PN_LAST_UNPACKED_BY
static final java.lang.String PN_CREATED
static final java.lang.String PN_CREATED_BY
static final java.lang.String PN_LASTMODIFIED
static final java.lang.String PN_LASTMODIFIED_BY
static final java.lang.String PN_LAST_WRAPPED
static final java.lang.String PN_LAST_WRAPPED_BY
static final java.lang.String PN_DESCRIPTION
static final java.lang.String PN_VERSION
static final java.lang.String PN_BUILD_COUNT
static final java.lang.String PN_NAME
static final java.lang.String PN_GROUP
static final java.lang.String PN_REQUIRES_ROOT
static final java.lang.String PN_REQUIRES_RESTART
static final java.lang.String PN_DEPENDENCIES
static final java.lang.String PN_SUB_PACKAGES
static final java.lang.String PN_LAST_UNWRAPPED
static final java.lang.String PN_LAST_UNWRAPPED_BY
static final java.lang.String PN_AC_HANDLING
static final java.lang.String PN_CND_PATTERN
static final java.lang.String NN_FILTER
static final java.lang.String PN_ROOT
static final java.lang.String PN_MODE
static final java.lang.String PN_RULES
static final java.lang.String PN_TYPE
static final java.lang.String PN_PATTERN
static final java.lang.String PN_DISABLE_INTERMEDIATE_SAVE
Node getNode()
PackageId getId()
void setId(PackageId id, boolean autoSave)
id
- the package idautoSave
- if true
the changes are saved automatically.boolean isUnwrapped()
true
if unwrapped.boolean isModified()
true
if modifiedvoid unwrap(VaultPackage pack, boolean force, boolean autoSave) throws RepositoryException, java.io.IOException
pack
- the packageforce
- if true
unwrapping is forcedautoSave
- if true
modifications are saved automaticallyRepositoryException
- if an error occursjava.io.IOException
- if an I/O error occursvoid dumpCoverage(ProgressTrackerListener listener) throws RepositoryException
listener
- the listenerRepositoryException
- if an error occurrsDependency[] getDependencies()
void setDependencies(Dependency[] dependencies, boolean autoSave)
dependencies
- the package dependenciesautoSave
- if true
the modifications are saved automatically.java.lang.String get(java.lang.String name)
name
- the name of the property.null
if it does not exist.boolean getBoolean(java.lang.String name)
name
- the name of the property.null
if it does not exist.java.util.Calendar getCalendar(java.lang.String name)
name
- the name of the property.null
if it does not exist.void set(java.lang.String name, java.lang.String value, boolean autoSave)
name
- the name of the propertyvalue
- the value or null
to clear the propertyautoSave
- if true
the modifications are saved automatically.void set(java.lang.String name, java.util.Calendar value, boolean autoSave)
name
- the name of the propertyvalue
- the value or null
to clear the propertyautoSave
- if true
the modifications are saved automatically.void set(java.lang.String name, boolean value, boolean autoSave)
name
- the name of the propertyvalue
- the valueautoSave
- if true
the modifications are saved automatically.void touch(java.util.Calendar now, boolean autoSave)
now
- calendar or null
autoSave
- if true
the modifications are saved automatically.void setFilter(WorkspaceFilter filter, boolean autoSave)
filter
- the filter to setautoSave
- if true
the modifications are saved automatically.java.util.Calendar getLastModified()
java.lang.String getLastModifiedBy()
java.util.Calendar getCreated()
java.lang.String getCreatedBy()
java.util.Calendar getLastWrapped()
java.lang.String getLastWrappedBy()
java.util.Calendar getLastUnwrapped()
java.lang.String getLastUnwrappedBy()
java.util.Calendar getLastUnpacked()
java.lang.String getLastUnpackedBy()
@Deprecated boolean requiresRoot()
true
if this package needs a admin user to install it.boolean requiresRestart()
true
if this package needs restart after installation.AccessControlHandling getAccessControlHandling()
null
if not defined.null
java.lang.String getDescription()
long getBuildCount()
MetaInf getMetaInf() throws RepositoryException
RepositoryException
- if an error occurs."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"