Class JcrPackageDefinitionMetaInf
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.DefaultMetaInf
-
- org.apache.jackrabbit.vault.packaging.impl.JcrPackageDefinitionMetaInf
-
- All Implemented Interfaces:
MetaInf
public class JcrPackageDefinitionMetaInf extends DefaultMetaInf
Only limited meta information like package properties and filters are exposed which are available from the underlying package definition node. Raw properties are exposed on a best effort basis, because the storage format is different from the one inproperties.xml
. Therefore it is recommended to use the high-level API exposed viaPackageProperties
.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.fs.config.MetaInf
CREATED, CREATED_BY, FORMAT_VERSION_1, FORMAT_VERSION_2, GENERATOR, PACKAGE_FORMAT_VERSION
-
-
Constructor Summary
Constructors Constructor Description JcrPackageDefinitionMetaInf(Node node, PackageProperties packageProperties, Properties legacyProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackageProperties
getPackageProperties()
Returns the package properties.Properties
getProperties()
Returns the properties.-
Methods inherited from class org.apache.jackrabbit.vault.fs.config.DefaultMetaInf
getConfig, getFilter, getNodeTypes, getPackageFormatVersion, getPrivileges, getSettings, hasDefinition, load, loadCNDs, loadConfig, loadConfig, loadFilter, loadFilter, loadPrivileges, loadPrivileges, loadProperties, loadProperties, loadSettings, loadSettings, save, saveConfig, saveFilter, saveProperties, saveSettings, setCNDs, setConfig, setFilter, setHasDefinition, setProperties, setSettings
-
-
-
-
Constructor Detail
-
JcrPackageDefinitionMetaInf
public JcrPackageDefinitionMetaInf(Node node, PackageProperties packageProperties, Properties legacyProperties) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
getPackageProperties
public PackageProperties getPackageProperties()
Description copied from interface:MetaInf
Returns the package properties.- Specified by:
getPackageProperties
in interfaceMetaInf
- Overrides:
getPackageProperties
in classDefaultMetaInf
- Returns:
- the package properties
-
getProperties
public Properties getProperties()
Description copied from class:DefaultMetaInf
Returns the properties.- Specified by:
getProperties
in interfaceMetaInf
- Overrides:
getProperties
in classDefaultMetaInf
- Returns:
- the properties
-
-