Class DeploymentPackage
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.deployit.plugin.api.udm.Version
com.xebialabs.deployit.plugin.api.udm.DeploymentPackage
- All Implemented Interfaces:
ConfigurationItem
,Serializable
,Comparable<BaseConfigurationItem>
- Direct Known Subclasses:
ProvisioningPackage
@Metadata(description="A package of a certain version of an application. Groups all deployable artifact CIs for an application for a certain version. Is contained by the Application CI.")
public class DeploymentPackage
extends Version
A particular version of an
Application
consisting of both artifacts and resource specifications
(a set of Deployable
s) that can be deployed onto a Container
.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Indicates how application dependencies will be resolved when deploying an application. -
Field Summary
Fields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
id, syntheticProperties, type
Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeployable
(Deployable deployable) Adds aDeployable
The set of Deployables that are part of this package.Gets the application versions that the this package depends on.void
setApplicationDependencies
(Map<String, String> applicationDependencies) Sets the application versions that this package depends on.void
setBoundTemplates
(Set<Template> boundTemplates) void
setDependencyResolution
(String dependencyResolution) void
setDeployables
(Set<Deployable> deployables) void
setTemplates
(Set<Template> templates) void
setUndeployDependencies
(String undeployDependencies) Methods inherited from class com.xebialabs.deployit.plugin.api.udm.Version
getApplication, getOrchestrator, getVersion, setApplication, setOrchestrator
Methods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, get$ciAttributes, get$directoryReference, get$externalProperties, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$directoryReference, set$externalProperties, set$internalId, set$referenceId, set$securedCi, set$securedDirectoryReference, set$token, set$validationMessages, setId, setProperty, setType, toString
-
Constructor Details
-
DeploymentPackage
public DeploymentPackage() -
DeploymentPackage
- Parameters:
deployables
- TheDeployable
s that are part of this package.
-
-
Method Details
-
getTemplates
-
setTemplates
-
getBoundTemplates
-
setBoundTemplates
-
getDeployables
- Specified by:
getDeployables
in classVersion
- Returns:
- The set of
Deployable
s that are part of this package.
-
setDeployables
- Parameters:
deployables
- The set ofDeployable
s that are part of this package.
-
addDeployable
Adds aDeployable
The set of Deployables that are part of this package. -
getApplicationDependencies
Gets the application versions that the this package depends on. This is a mapping from application names or id's to version ranges. A version range is a string in OSGi Semantic Versioning format.- Returns:
- a Map<String, String>
-
setApplicationDependencies
Sets the application versions that this package depends on. This is a mapping from application names or id's (e.g. "Application/PetClinic") to version ranges. A version range is a string in OSGi Semantic Versioning format, e.g. "[1.5,3)"- Parameters:
applicationDependencies
- the map of dependencies for this application version.
-
getDependencyResolution
-
setDependencyResolution
-
getUndeployDependencies
-
setUndeployDependencies
-