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>deployedArtifactsWill only be used during actual deployment to pass deployed artifacts (eg process definitions).protected DatedeploymentTimeprotected Stringidprotected booleanisNewprotected Stringnameprotected Map<String,ResourceEntity>resourcesprotected Stringsourceprotected StringtenantIdprotected booleanvalidatingSchema
-
Constructor Summary
Constructors Constructor Description DeploymentEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeployedArtifact(ResourceDefinitionEntity deployedArtifact)voidaddResource(ResourceEntity resource)voidclearResources()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.DategetDeploymentTime()StringgetId()StringgetName()ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.ResourceEntitygetResource(String resourceName)Map<String,ResourceEntity>getResources()StringgetSource()StringgetTenantId()Returns the id of the tenant this deployment belongs to.booleanisNew()booleanisValidatingSchema()voidremoveArtifact(ResourceDefinitionEntity notDeployedArtifact)voidsetDeploymentTime(Date deploymentTime)voidsetId(String id)voidsetName(String name)voidsetNew(boolean isNew)voidsetResources(Map<String,ResourceEntity> resources)voidsetSource(String source)voidsetTenantId(String tenantId)voidsetValidatingSchema(boolean validatingSchema)StringtoString()
-
-
-
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:DbEntityReturns 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:
getPersistentStatein interfaceDbEntity
-
addDeployedArtifact
public void addDeployedArtifact(ResourceDefinitionEntity deployedArtifact)
-
removeArtifact
public void removeArtifact(ResourceDefinitionEntity notDeployedArtifact)
-
getId
public String getId()
- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceDeployment
-
getName
public String getName()
- Specified by:
getNamein interfaceDeployment
-
setName
public void setName(String name)
-
setResources
public void setResources(Map<String,ResourceEntity> resources)
-
getDeploymentTime
public Date getDeploymentTime()
- Specified by:
getDeploymentTimein 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:
getSourcein interfaceDeployment
-
setSource
public void setSource(String source)
-
getTenantId
public String getTenantId()
Description copied from interface:DeploymentReturns the id of the tenant this deployment belongs to. Can benullif the deployment belongs to no single tenant.- Specified by:
getTenantIdin interfaceDeployment
-
setTenantId
public void setTenantId(String tenantId)
-
getDeployedProcessDefinitions
public List<ProcessDefinition> getDeployedProcessDefinitions()
Description copied from interface:DeploymentWithDefinitionsReturns the process definitions, which are deployed with that deployment.- Specified by:
getDeployedProcessDefinitionsin interfaceDeploymentWithDefinitions- Returns:
- the process definitions which are deployed
-
getDeployedCaseDefinitions
public List<CaseDefinition> getDeployedCaseDefinitions()
Description copied from interface:DeploymentWithDefinitionsReturns the case definitions, which are deployed with that deployment.- Specified by:
getDeployedCaseDefinitionsin interfaceDeploymentWithDefinitions- Returns:
- the case definitions, which are deployed
-
getDeployedDecisionDefinitions
public List<DecisionDefinition> getDeployedDecisionDefinitions()
Description copied from interface:DeploymentWithDefinitionsReturns the decision definitions, which are deployed with that deployment- Specified by:
getDeployedDecisionDefinitionsin interfaceDeploymentWithDefinitions- Returns:
- the decision definitions, which are deployed
-
getDeployedDecisionRequirementsDefinitions
public List<DecisionRequirementsDefinition> getDeployedDecisionRequirementsDefinitions()
Description copied from interface:DeploymentWithDefinitionsReturns the decision requirements definitions, which are deployed with that deployment- Specified by:
getDeployedDecisionRequirementsDefinitionsin interfaceDeploymentWithDefinitions- Returns:
- the decision definitions, which are deployed
-
-