CREATED, CREATED_BY, FORMAT_VERSION_1, FORMAT_VERSION_2, PACKAGE_FORMAT_VERSION
Constructor and Description |
---|
DefaultMetaInf() |
Modifier and Type | Method and Description |
---|---|
VaultFsConfig |
getConfig()
Returns the vault config
|
WorkspaceFilter |
getFilter()
Returns the workspace filter.
|
java.util.Collection<NodeTypeSet> |
getNodeTypes()
Returns the node types
|
int |
getPackageFormatVersion()
Returns the package format version of this package.
|
PrivilegeDefinitions |
getPrivileges()
Returns custom privileges defined in the meta inf.
|
java.util.Properties |
getProperties()
Returns the properties
|
VaultSettings |
getSettings()
Returns the vault settings.
|
boolean |
hasDefinition()
Checks if the meta-inf contains a serialized definition.
|
boolean |
load(java.io.InputStream in,
java.lang.String systemId)
Loads a setting based on the name of the system id.
|
void |
loadConfig(java.io.InputStream in,
java.lang.String systemId) |
void |
loadFilter(java.io.InputStream in,
java.lang.String systemId) |
void |
loadPrivileges(java.io.InputStream in,
java.lang.String systemId) |
void |
loadProperties(java.io.InputStream in,
java.lang.String systemId) |
void |
loadSettings(java.io.InputStream in,
java.lang.String systemId) |
void |
save(java.io.File metaDir) |
void |
setCNDs(java.util.Collection<NodeTypeSet> cnds) |
void |
setConfig(VaultFsConfig config) |
void |
setFilter(WorkspaceFilter filter) |
void |
setHasDefinition(boolean hasDefinition) |
void |
setProperties(java.util.Properties properties) |
void |
setSettings(VaultSettings settings) |
public int getPackageFormatVersion()
MetaInf.FORMAT_VERSION_2
is returned, since this
feature was implemented recently.getPackageFormatVersion
in interface MetaInf
public boolean load(@Nullable java.io.InputStream in, @Nonnull java.lang.String systemId) throws java.io.IOException, ConfigurationException
systemId
- the system id of the setting to loadin
- the input streamtrue
if the setting was loaded.java.io.IOException
- if an I/O error occurrsConfigurationException
- if a configuration error occurrspublic void loadFilter(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws ConfigurationException, java.io.IOException
ConfigurationException
java.io.IOException
public void loadConfig(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws ConfigurationException, java.io.IOException
ConfigurationException
java.io.IOException
public void loadSettings(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws ConfigurationException, java.io.IOException
ConfigurationException
java.io.IOException
public void loadProperties(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws java.io.IOException
java.io.IOException
public void loadPrivileges(@Nonnull java.io.InputStream in, @Nonnull java.lang.String systemId) throws java.io.IOException
java.io.IOException
public void save(@Nonnull java.io.File metaDir) throws java.io.IOException
java.io.IOException
public VaultSettings getSettings()
getSettings
in interface MetaInf
public void setSettings(VaultSettings settings)
public WorkspaceFilter getFilter()
public void setFilter(WorkspaceFilter filter)
public VaultFsConfig getConfig()
public void setConfig(VaultFsConfig config)
public java.util.Properties getProperties()
getProperties
in interface MetaInf
public void setProperties(java.util.Properties properties)
public java.util.Collection<NodeTypeSet> getNodeTypes()
getNodeTypes
in interface MetaInf
public PrivilegeDefinitions getPrivileges()
getPrivileges
in interface MetaInf
public void setCNDs(java.util.Collection<NodeTypeSet> cnds)
public boolean hasDefinition()
hasDefinition
in interface MetaInf
true
if it contains a serialized definition.public void setHasDefinition(boolean hasDefinition)
Copyright © 2010 - 2020 Adobe. All Rights Reserved