Class DeploymentEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity
- All Implemented Interfaces:
Serializable
,DbEntity
,Deployment
,DeploymentWithDefinitions
- Direct Known Subclasses:
DeploymentStatisticsEntity
public class DeploymentEntity
extends Object
implements Serializable, DeploymentWithDefinitions, DbEntity
- Author:
- Tom Baeyens
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeployedArtifact
(ResourceDefinitionEntity deployedArtifact) void
addResource
(ResourceEntity resource) void
<T> List<T>
getDeployedArtifacts
(Class<T> clazz) Returns the case definitions, which are deployed with that deployment.Returns the decision definitions, which are deployed with that deploymentReturns the decision requirements definitions, which are deployed with that deploymentReturns the process definitions, which are deployed with that deployment.getId()
getName()
Returns a representation of the object, as would be stored in the database.getResource
(String resourceName) Returns the id of the tenant this deployment belongs to.boolean
isNew()
boolean
void
removeArtifact
(ResourceDefinitionEntity notDeployedArtifact) void
setDeploymentTime
(Date deploymentTime) void
void
void
setNew
(boolean isNew) void
setResources
(Map<String, ResourceEntity> resources) void
void
setTenantId
(String tenantId) void
setValidatingSchema
(boolean validatingSchema) toString()
-
Field Details
-
id
-
name
-
resources
-
deploymentTime
-
validatingSchema
protected boolean validatingSchema -
isNew
protected boolean isNew -
source
-
tenantId
-
deployedArtifacts
Will only be used during actual deployment to pass deployed artifacts (eg process definitions). Will be null otherwise.
-
-
Constructor Details
-
DeploymentEntity
public DeploymentEntity()
-
-
Method Details
-
getResource
-
addResource
-
clearResources
public void clearResources() -
getResources
-
getPersistentState
Description copied from interface:DbEntity
Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentState
in interfaceDbEntity
-
addDeployedArtifact
-
getDeployedArtifacts
-
getDeployedArtifacts
-
removeArtifact
-
getId
- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceDeployment
-
setId
-
getName
- Specified by:
getName
in interfaceDeployment
-
setName
-
setResources
-
getDeploymentTime
- Specified by:
getDeploymentTime
in interfaceDeployment
-
setDeploymentTime
-
isValidatingSchema
public boolean isValidatingSchema() -
setValidatingSchema
public void setValidatingSchema(boolean validatingSchema) -
isNew
public boolean isNew() -
setNew
public void setNew(boolean isNew) -
getSource
- Specified by:
getSource
in interfaceDeployment
-
setSource
-
getTenantId
Description copied from interface:Deployment
Returns the id of the tenant this deployment belongs to. Can benull
if the deployment belongs to no single tenant.- Specified by:
getTenantId
in interfaceDeployment
-
setTenantId
-
getDeployedProcessDefinitions
Description copied from interface:DeploymentWithDefinitions
Returns the process definitions, which are deployed with that deployment.- Specified by:
getDeployedProcessDefinitions
in interfaceDeploymentWithDefinitions
- Returns:
- the process definitions which are deployed
-
getDeployedCaseDefinitions
Description copied from interface:DeploymentWithDefinitions
Returns the case definitions, which are deployed with that deployment.- Specified by:
getDeployedCaseDefinitions
in interfaceDeploymentWithDefinitions
- Returns:
- the case definitions, which are deployed
-
getDeployedDecisionDefinitions
Description copied from interface:DeploymentWithDefinitions
Returns the decision definitions, which are deployed with that deployment- Specified by:
getDeployedDecisionDefinitions
in interfaceDeploymentWithDefinitions
- Returns:
- the decision definitions, which are deployed
-
getDeployedDecisionRequirementsDefinitions
Description copied from interface:DeploymentWithDefinitions
Returns the decision requirements definitions, which are deployed with that deployment- Specified by:
getDeployedDecisionRequirementsDefinitions
in interfaceDeploymentWithDefinitions
- Returns:
- the decision definitions, which are deployed
-
toString
-