Interface MetaInf
-
- All Known Implementing Classes:
DefaultMetaInf
,JcrPackageDefinitionMetaInf
@ProviderType public interface MetaInf
Abstracts the way of accessing the vault specific meta-info of a checkout. TODO: merge with packageInfo
-
-
Field Summary
Fields Modifier and Type Field Description static String
CREATED
Name of the 'created' propertystatic String
CREATED_BY
Name of the 'created by' propertystatic int
FORMAT_VERSION_1
Format Version 1.static int
FORMAT_VERSION_2
Format Version 2.static String
GENERATOR
Name of the 'generator' propertystatic String
PACKAGE_FORMAT_VERSION
Name of the package format version
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable VaultFsConfig
getConfig()
Returns the vault config.@Nullable WorkspaceFilter
getFilter()
Returns the workspace filter.@NotNull Collection<NodeTypeSet>
getNodeTypes()
Returns the node types.int
getPackageFormatVersion()
Returns the package format version of this package.@NotNull PackageProperties
getPackageProperties()
Returns the package properties.@Nullable PrivilegeDefinitions
getPrivileges()
Returns custom privileges defined in the meta inf.@Nullable Properties
getProperties()
Returns the properties.@Nullable VaultSettings
getSettings()
Returns the vault settings.boolean
hasDefinition()
Checks if the meta-inf contains a serialized definition.
-
-
-
Field Detail
-
FORMAT_VERSION_1
static final int FORMAT_VERSION_1
Format Version 1. Used for content assembled until Vault 1.2.8- Since:
- 2.0
- See Also:
- Constant Field Values
-
FORMAT_VERSION_2
static final int FORMAT_VERSION_2
Format Version 2. Used for content assembled since Vault 1.2.9- Since:
- 2.0
- See Also:
- Constant Field Values
-
PACKAGE_FORMAT_VERSION
static final String PACKAGE_FORMAT_VERSION
Name of the package format version- Since:
- 2.0
- See Also:
- Constant Field Values
-
CREATED
static final String CREATED
Name of the 'created' property- See Also:
- Constant Field Values
-
CREATED_BY
static final String CREATED_BY
Name of the 'created by' property- See Also:
- Constant Field Values
-
GENERATOR
static final String GENERATOR
Name of the 'generator' property- See Also:
- Constant Field Values
-
-
Method Detail
-
getPackageFormatVersion
int getPackageFormatVersion()
Returns the package format version of this package. If the package lacks this information,FORMAT_VERSION_2
is returned, since this feature was implemented recently.- Returns:
- the package format version
- Since:
- 2.0
-
getSettings
@Nullable @Nullable VaultSettings getSettings()
Returns the vault settings.- Returns:
- the vault settings
-
getFilter
@Nullable @Nullable WorkspaceFilter getFilter()
Returns the workspace filter.- Returns:
- the workspace filter
-
getConfig
@Nullable @Nullable VaultFsConfig getConfig()
Returns the vault config.- Returns:
- the vault config
-
getProperties
@Nullable @Nullable Properties getProperties()
Returns the properties.- Returns:
- the properties
-
getPackageProperties
@NotNull @NotNull PackageProperties getPackageProperties()
Returns the package properties.- Returns:
- the package properties
-
getNodeTypes
@NotNull @NotNull Collection<NodeTypeSet> getNodeTypes()
Returns the node types.- Returns:
- the node types
-
getPrivileges
@Nullable @Nullable PrivilegeDefinitions getPrivileges()
Returns custom privileges defined in the meta inf.- Returns:
- a collection of custom privileges
- Since:
- 3.0
-
hasDefinition
boolean hasDefinition()
Checks if the meta-inf contains a serialized definition.- Returns:
true
if it contains a serialized definition
-
-