public class DeploymentProperties extends Properties
loadFromFile(File) to load deployment properties
files. Use saveToFile(File) to store deployment properties.defaults| Constructor and Description |
|---|
DeploymentProperties()
Creates an empty set of deployment properties.
|
DeploymentProperties(int deploymentId,
String bundleName,
String bundleVersion,
String description)
Deprecated.
use
DeploymentProperties(int, String, String, String, DestinationComplianceMode).
This constructor sets the compliance mode to DestinationComplianceMode.full. |
DeploymentProperties(int deploymentId,
String bundleName,
String bundleVersion,
String description,
DestinationComplianceMode destinationCompliance)
Convenience constructor whose parameters are all the required values that
this object needs.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleName() |
String |
getBundleVersion() |
int |
getDeploymentId()
This returns a deployment ID that identifies a known deployment.
|
String |
getDescription() |
DestinationComplianceMode |
getDestinationCompliance()
Returns the compliance mode of the destination.
|
boolean |
getManageRootDir()
Deprecated.
|
boolean |
isValid()
Returns
true if this object has everything required to define a valid deployment. |
static DeploymentProperties |
loadFromFile(File file) |
void |
saveToFile(File file) |
void |
setBundleName(String name) |
void |
setBundleVersion(String version) |
void |
setDeploymentId(int id) |
void |
setDescription(String description) |
void |
setDestinationCompliance(DestinationComplianceMode compliance) |
void |
setManageRootDir(boolean willManageRootDir)
Deprecated.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamespublic DeploymentProperties()
@Deprecated public DeploymentProperties(int deploymentId, String bundleName, String bundleVersion, String description)
DeploymentProperties(int, String, String, String, DestinationComplianceMode).
This constructor sets the compliance mode to DestinationComplianceMode.full.deploymentId - see getDeploymentId()bundleName - see getBundleName()bundleVersion - see getBundleVersion()description - see getDescription()public DeploymentProperties(int deploymentId,
String bundleName,
String bundleVersion,
String description,
DestinationComplianceMode destinationCompliance)
deploymentId - see getDeploymentId()bundleName - see getBundleName()bundleVersion - see getBundleVersion()description - see getDescription()destinationCompliance - see getDestinationCompliance()public static DeploymentProperties loadFromFile(File file) throws Exception
Exceptionpublic boolean isValid()
true if this object has everything required to define a valid deployment.public int getDeploymentId()
public void setDeploymentId(int id)
public String getBundleName()
public void setBundleName(String name)
public String getBundleVersion()
public void setBundleVersion(String version)
public String getDescription()
public void setDescription(String description)
@Deprecated public boolean getManageRootDir()
getDestinationCompliance()true@Deprecated public void setManageRootDir(boolean willManageRootDir)
setDestinationCompliance(DestinationComplianceMode) insteadsetDestinationCompliance(willManageRootDir ? DestinationComplianceMode.full :
DestinationComplianceMode.filesAndDirectories).willManageRootDir - whether to manage the root directorypublic DestinationComplianceMode getDestinationCompliance()
public void setDestinationCompliance(DestinationComplianceMode compliance)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.