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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<?>,List>
deployedArtifacts
Will only be used during actual deployment to pass deployed artifacts (eg process definitions).protected Date
deploymentTime
protected String
id
protected boolean
isNew
protected String
name
protected Map<String,ResourceEntity>
resources
protected String
source
protected String
tenantId
protected boolean
validatingSchema
-
Constructor Summary
Constructors Constructor Description DeploymentEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDeployedArtifact(ResourceDefinitionEntity deployedArtifact)
void
addResource(ResourceEntity resource)
void
clearResources()
Map<Class<?>,List>
getDeployedArtifacts()
<T> List<T>
getDeployedArtifacts(Class<T> clazz)
List<CaseDefinition>
getDeployedCaseDefinitions()
Returns the case definitions, which are deployed with that deployment.List<DecisionDefinition>
getDeployedDecisionDefinitions()
Returns the decision definitions, which are deployed with that deploymentList<DecisionRequirementsDefinition>
getDeployedDecisionRequirementsDefinitions()
Returns the decision requirements definitions, which are deployed with that deploymentList<ProcessDefinition>
getDeployedProcessDefinitions()
Returns the process definitions, which are deployed with that deployment.Date
getDeploymentTime()
String
getId()
String
getName()
Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.ResourceEntity
getResource(String resourceName)
Map<String,ResourceEntity>
getResources()
String
getSource()
String
getTenantId()
Returns the id of the tenant this deployment belongs to.boolean
isNew()
boolean
isValidatingSchema()
void
removeArtifact(ResourceDefinitionEntity notDeployedArtifact)
void
setDeploymentTime(Date deploymentTime)
void
setId(String id)
void
setName(String name)
void
setNew(boolean isNew)
void
setResources(Map<String,ResourceEntity> resources)
void
setSource(String source)
void
setTenantId(String tenantId)
void
setValidatingSchema(boolean validatingSchema)
String
toString()
-
-
-
Field Detail
-
id
protected String id
-
name
protected String name
-
resources
protected Map<String,ResourceEntity> resources
-
deploymentTime
protected Date deploymentTime
-
validatingSchema
protected boolean validatingSchema
-
isNew
protected boolean isNew
-
source
protected String source
-
tenantId
protected String tenantId
-
-
Method Detail
-
getResource
public ResourceEntity getResource(String resourceName)
-
addResource
public void addResource(ResourceEntity resource)
-
clearResources
public void clearResources()
-
getResources
public Map<String,ResourceEntity> getResources()
-
getPersistentState
public Object 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
public void addDeployedArtifact(ResourceDefinitionEntity deployedArtifact)
-
removeArtifact
public void removeArtifact(ResourceDefinitionEntity notDeployedArtifact)
-
getId
public String getId()
- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceDeployment
-
getName
public String getName()
- Specified by:
getName
in interfaceDeployment
-
setName
public void setName(String name)
-
setResources
public void setResources(Map<String,ResourceEntity> resources)
-
getDeploymentTime
public Date getDeploymentTime()
- Specified by:
getDeploymentTime
in interfaceDeployment
-
setDeploymentTime
public void setDeploymentTime(Date deploymentTime)
-
isValidatingSchema
public boolean isValidatingSchema()
-
setValidatingSchema
public void setValidatingSchema(boolean validatingSchema)
-
isNew
public boolean isNew()
-
setNew
public void setNew(boolean isNew)
-
getSource
public String getSource()
- Specified by:
getSource
in interfaceDeployment
-
setSource
public void setSource(String source)
-
getTenantId
public String 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
public void setTenantId(String tenantId)
-
getDeployedProcessDefinitions
public List<ProcessDefinition> 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
public List<CaseDefinition> 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
public List<DecisionDefinition> 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
public List<DecisionRequirementsDefinition> 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
-
-