Class DefaultMetaInf
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.DefaultMetaInf
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.fs.config.MetaInf
CREATED, CREATED_BY, FORMAT_VERSION_1, FORMAT_VERSION_2, PACKAGE_FORMAT_VERSION
-
-
Constructor Summary
Constructors Constructor Description DefaultMetaInf()
-
Method Summary
All Methods Instance Methods Concrete 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.booleanload(java.io.InputStream in, java.lang.String systemId)Loads a setting based on the name of the system id.voidloadConfig(java.io.InputStream in, java.lang.String systemId)The specified stream remains open after this method returns.voidloadFilter(java.io.InputStream in, java.lang.String systemId)The specified stream remains open after this method returns.voidloadPrivileges(java.io.InputStream in, java.lang.String systemId)The specified stream remains open after this method returns.voidloadProperties(java.io.InputStream in, java.lang.String systemId)The specified stream remains open after this method returns.voidloadSettings(java.io.InputStream in, java.lang.String systemId)voidsave(java.io.File metaDir)voidsetCNDs(java.util.Collection<NodeTypeSet> cnds)voidsetConfig(VaultFsConfig config)voidsetFilter(WorkspaceFilter filter)voidsetHasDefinition(boolean hasDefinition)voidsetProperties(java.util.Properties properties)voidsetSettings(VaultSettings settings)
-
-
-
Method Detail
-
getPackageFormatVersion
public int getPackageFormatVersion()
Returns the package format version of this package. If the package lacks this information,MetaInf.FORMAT_VERSION_2is returned, since this feature was implemented recently.- Specified by:
getPackageFormatVersionin interfaceMetaInf- Returns:
- the package format version
- Since:
- 2.0
-
load
public boolean load(@Nullable java.io.InputStream in, @Nonnull java.lang.String systemId) throws java.io.IOException, ConfigurationExceptionLoads a setting based on the name of the system id.The specified stream remains open after this method returns.
- Parameters:
systemId- the system id of the setting to loadin- the input stream- Returns:
trueif the setting was loaded.- Throws:
java.io.IOException- if an I/O error occurrsConfigurationException- if a configuration error occurrs- Since:
- 3.1.32
-
loadFilter
public void loadFilter(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws ConfigurationException, java.io.IOExceptionThe specified stream remains open after this method returns.
- Parameters:
in-systemId-- Throws:
ConfigurationExceptionjava.io.IOException
-
loadConfig
public void loadConfig(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws ConfigurationException, java.io.IOExceptionThe specified stream remains open after this method returns.
- Parameters:
in-systemId-- Throws:
ConfigurationExceptionjava.io.IOException
-
loadSettings
public void loadSettings(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws ConfigurationException, java.io.IOException- Throws:
ConfigurationExceptionjava.io.IOException
-
loadProperties
public void loadProperties(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws java.io.IOExceptionThe specified stream remains open after this method returns.
- Parameters:
in-systemId-- Throws:
java.io.IOException
-
loadPrivileges
public void loadPrivileges(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws java.io.IOExceptionThe specified stream remains open after this method returns.
- Parameters:
in-systemId-- Throws:
java.io.IOException
-
save
public void save(@Nonnull java.io.File metaDir) throws java.io.IOException- Throws:
java.io.IOException
-
getSettings
public VaultSettings getSettings()
Returns the vault settings.- Specified by:
getSettingsin interfaceMetaInf- Returns:
- the vault settings.
-
setSettings
public void setSettings(VaultSettings settings)
-
getFilter
public WorkspaceFilter getFilter()
Returns the workspace filter.
-
setFilter
public void setFilter(WorkspaceFilter filter)
-
getConfig
public VaultFsConfig getConfig()
Returns the vault config
-
setConfig
public void setConfig(VaultFsConfig config)
-
getProperties
public java.util.Properties getProperties()
Returns the properties- Specified by:
getPropertiesin interfaceMetaInf- Returns:
- the properties
-
setProperties
public void setProperties(java.util.Properties properties)
-
getNodeTypes
public java.util.Collection<NodeTypeSet> getNodeTypes()
Returns the node types- Specified by:
getNodeTypesin interfaceMetaInf- Returns:
- the node types
-
getPrivileges
public PrivilegeDefinitions getPrivileges()
Returns custom privileges defined in the meta inf.- Specified by:
getPrivilegesin interfaceMetaInf- Returns:
- a collection of custom privileges.
-
setCNDs
public void setCNDs(java.util.Collection<NodeTypeSet> cnds)
-
hasDefinition
public boolean hasDefinition()
Checks if the meta-inf contains a serialized definition.- Specified by:
hasDefinitionin interfaceMetaInf- Returns:
trueif it contains a serialized definition.
-
setHasDefinition
public void setHasDefinition(boolean hasDefinition)
-
-