@Deprecated public class ArtifactMetadataManager extends Object
Constructor and Description |
---|
ArtifactMetadataManager(org.apache.axis2.engine.AxisConfiguration axisConfig)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteMetafile(String artifactName,
ArtifactType artifactType)
Deprecated.
|
protected String |
getFilePathFromResourceId(String resourceId)
Deprecated.
|
boolean |
isMetafileExists(String artifactName,
ArtifactType artifactType)
Deprecated.
|
String |
loadParameter(String artifactName,
ArtifactType artifactType,
String propertyName)
Deprecated.
|
Properties |
loadParameters(String absolutePath)
Deprecated.
|
ArtifactMetadata |
loadParameters(String artifactName,
ArtifactType artifactType)
Deprecated.
|
Element |
loadXMLParameter(String artifactName,
ArtifactType artifactType,
String propertyName)
Deprecated.
|
void |
removeParameter(String artifactName,
ArtifactType artifactType,
String propertyName)
Deprecated.
|
void |
setParameter(String artifactName,
ArtifactType artifactType,
String propertyName,
String propertyValue,
boolean replace)
Deprecated.
if 'replace' is set, then save parameter.
|
void |
setParameters(String artifactName,
ArtifactType artifactType,
Properties properties)
Deprecated.
|
public ArtifactMetadataManager(org.apache.axis2.engine.AxisConfiguration axisConfig) throws ArtifactMetadataException
ArtifactMetadataException
public boolean isMetafileExists(String artifactName, ArtifactType artifactType)
public void deleteMetafile(String artifactName, ArtifactType artifactType)
public ArtifactMetadata loadParameters(String artifactName, ArtifactType artifactType) throws ArtifactMetadataException
ArtifactMetadataException
public Properties loadParameters(String absolutePath) throws ArtifactMetadataException
ArtifactMetadataException
public String loadParameter(String artifactName, ArtifactType artifactType, String propertyName) throws ArtifactMetadataException
ArtifactMetadataException
public Element loadXMLParameter(String artifactName, ArtifactType artifactType, String propertyName) throws ArtifactMetadataException
ArtifactMetadataException
public void setParameter(String artifactName, ArtifactType artifactType, String propertyName, String propertyValue, boolean replace) throws ArtifactMetadataException
artifactName
- The artifact name - ex. example.warartifactType
- The artifact type - ex. webapp, service etc.propertyName
- Name of the property to be savedpropertyValue
- property valuereplace
- whether the existing property should be replaced or notArtifactMetadataException
- if file can not be readpublic void setParameters(String artifactName, ArtifactType artifactType, Properties properties) throws ArtifactMetadataException
ArtifactMetadataException
public void removeParameter(String artifactName, ArtifactType artifactType, String propertyName) throws ArtifactMetadataException
ArtifactMetadataException
Copyright © 2016 WSO2 Inc. All rights reserved.