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.
|
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.
|
Properties |
getProperties()
Returns the properties
|
VaultSettings |
getSettings()
Returns the vault settings.
|
boolean |
hasDefinition()
Checks if the meta-inf contains a serialized definition.
|
boolean |
load(InputStream in,
String systemId)
Loads a setting based on the name of the system id.
|
void |
loadConfig(InputStream in,
String systemId)
The specified stream remains open after this method returns.
|
void |
loadFilter(InputStream in,
String systemId)
The specified stream remains open after this method returns.
|
void |
loadPrivileges(InputStream in,
String systemId)
The specified stream remains open after this method returns.
|
void |
loadProperties(InputStream in,
String systemId)
The specified stream remains open after this method returns.
|
void |
loadSettings(InputStream in,
String systemId) |
void |
save(File metaDir) |
void |
setCNDs(Collection<NodeTypeSet> cnds) |
void |
setConfig(VaultFsConfig config) |
void |
setFilter(WorkspaceFilter filter) |
void |
setHasDefinition(boolean hasDefinition) |
void |
setProperties(Properties properties) |
void |
setSettings(VaultSettings settings) |
public int getPackageFormatVersion()
MetaInf.FORMAT_VERSION_2 is returned, since this
feature was implemented recently.getPackageFormatVersion in interface MetaInfpublic boolean load(@Nullable InputStream in, @Nonnull String systemId) throws IOException, ConfigurationException
The specified stream remains open after this method returns.
systemId - the system id of the setting to loadin - the input streamtrue if the setting was loaded.IOException - if an I/O error occurrsConfigurationException - if a configuration error occurrspublic void loadFilter(@Nonnull InputStream in, @Nonnull String systemId) throws ConfigurationException, IOException
The specified stream remains open after this method returns.
in - systemId - ConfigurationExceptionIOExceptionpublic void loadConfig(@Nonnull InputStream in, @Nonnull String systemId) throws ConfigurationException, IOException
The specified stream remains open after this method returns.
in - systemId - ConfigurationExceptionIOExceptionpublic void loadSettings(@Nonnull InputStream in, @Nonnull String systemId) throws ConfigurationException, IOException
ConfigurationExceptionIOExceptionpublic void loadProperties(@Nonnull InputStream in, @Nonnull String systemId) throws IOException
The specified stream remains open after this method returns.
in - systemId - IOExceptionpublic void loadPrivileges(@Nonnull InputStream in, @Nonnull String systemId) throws IOException
The specified stream remains open after this method returns.
in - systemId - IOExceptionpublic void save(@Nonnull File metaDir) throws IOException
IOExceptionpublic VaultSettings getSettings()
getSettings in interface MetaInfpublic void setSettings(VaultSettings settings)
public WorkspaceFilter getFilter()
public void setFilter(WorkspaceFilter filter)
public VaultFsConfig getConfig()
public void setConfig(VaultFsConfig config)
public Properties getProperties()
getProperties in interface MetaInfpublic void setProperties(Properties properties)
public Collection<NodeTypeSet> getNodeTypes()
getNodeTypes in interface MetaInfpublic PrivilegeDefinitions getPrivileges()
getPrivileges in interface MetaInfpublic void setCNDs(Collection<NodeTypeSet> cnds)
public boolean hasDefinition()
hasDefinition in interface MetaInftrue if it contains a serialized definition.public void setHasDefinition(boolean hasDefinition)
Copyright © 2010 - 2020 Adobe. All Rights Reserved