Interface MetaInf
-
- All Known Implementing Classes:
DefaultMetaInf
public interface MetaInfAbstracts the way of accessing the vault specific meta-info of a checkout.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCREATEDName of the 'created' propertystatic java.lang.StringCREATED_BYName of the 'created by' propertystatic intFORMAT_VERSION_1Format Version 1.static intFORMAT_VERSION_2Format Version 2.static java.lang.StringPACKAGE_FORMAT_VERSIONName of the package format version
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VaultFsConfiggetConfig()Returns the vault configWorkspaceFiltergetFilter()Returns the workspace filter.java.util.Collection<NodeTypeSet>getNodeTypes()Returns the node typesintgetPackageFormatVersion()Returns the package format version of this package.PrivilegeDefinitionsgetPrivileges()Returns custom privileges defined in the meta inf.java.util.PropertiesgetProperties()Returns the propertiesVaultSettingsgetSettings()Returns the vault settings.booleanhasDefinition()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 java.lang.String PACKAGE_FORMAT_VERSION
Name of the package format version- Since:
- 2.0
- See Also:
- Constant Field Values
-
CREATED
static final java.lang.String CREATED
Name of the 'created' property- See Also:
- Constant Field Values
-
CREATED_BY
static final java.lang.String CREATED_BY
Name of the 'created by' 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_2is returned, since this feature was implemented recently.- Returns:
- the package format version
- Since:
- 2.0
-
getSettings
@CheckForNull VaultSettings getSettings()
Returns the vault settings.- Returns:
- the vault settings.
-
getFilter
@CheckForNull WorkspaceFilter getFilter()
Returns the workspace filter.- Returns:
- the workspace filter.
-
getConfig
@CheckForNull VaultFsConfig getConfig()
Returns the vault config- Returns:
- the vault config
-
getProperties
@CheckForNull java.util.Properties getProperties()
Returns the properties- Returns:
- the properties
-
getNodeTypes
@Nonnull java.util.Collection<NodeTypeSet> getNodeTypes()
Returns the node types- Returns:
- the node types
-
getPrivileges
@CheckForNull 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:
trueif it contains a serialized definition.
-
-