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
FieldsModifier and TypeFieldDescriptionstatic final StringName of the 'created' propertystatic final StringName of the 'created by' propertystatic final intFormat Version 1.static final intFormat Version 2.static final StringName of the 'generator' propertystatic final StringName of the package format version -
Method Summary
Modifier and TypeMethodDescription@Nullable VaultFsConfigReturns the vault config.@Nullable WorkspaceFilterReturns the workspace filter.@NotNull Collection<NodeTypeSet>Returns the node types.intReturns the package format version of this package.@NotNull PackagePropertiesReturns the package properties.@Nullable PrivilegeDefinitionsReturns custom privileges defined in the meta inf.@Nullable PropertiesReturns the properties.@Nullable VaultSettingsReturns the vault settings.booleanChecks if the meta-inf contains a serialized definition.
-
Field Details
-
FORMAT_VERSION_1
static final int FORMAT_VERSION_1Format Version 1. Used for content assembled until Vault 1.2.8- Since:
- 2.0
- See Also:
-
FORMAT_VERSION_2
static final int FORMAT_VERSION_2Format Version 2. Used for content assembled since Vault 1.2.9- Since:
- 2.0
- See Also:
-
PACKAGE_FORMAT_VERSION
Name of the package format version- Since:
- 2.0
- See Also:
-
CREATED
Name of the 'created' property- See Also:
-
CREATED_BY
Name of the 'created by' property- See Also:
-
GENERATOR
Name of the 'generator' property- See Also:
-
-
Method Details
-
getPackageFormatVersion
int getPackageFormatVersion()Returns the package format version of this package. If the package lacks this information,FORMAT_VERSION_2is returned, since this feature was implemented recently.- Returns:
- the package format version
- Since:
- 2.0
-
getSettings
Returns the vault settings.- Returns:
- the vault settings
-
getFilter
Returns the workspace filter.- Returns:
- the workspace filter
-
getConfig
Returns the vault config.- Returns:
- the vault config
-
getProperties
Returns the properties.- Returns:
- the properties
-
getPackageProperties
Returns the package properties.- Returns:
- the package properties
-
getNodeTypes
Returns the node types.- Returns:
- the node types
-
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:
trueif it contains a serialized definition
-