Class DeploymentEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity
-
- All Implemented Interfaces:
java.io.Serializable,DbEntity,Deployment,DeploymentWithDefinitions
- Direct Known Subclasses:
DeploymentStatisticsEntity
public class DeploymentEntity extends java.lang.Object implements java.io.Serializable, DeploymentWithDefinitions, DbEntity
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Class<?>,java.util.List>deployedArtifactsWill only be used during actual deployment to pass deployed artifacts (eg process definitions).protected java.util.DatedeploymentTimeprotected java.lang.Stringidprotected booleanisNewprotected java.lang.Stringnameprotected java.util.Map<java.lang.String,ResourceEntity>resourcesprotected java.lang.Stringsourceprotected java.lang.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()java.util.Map<java.lang.Class<?>,java.util.List>getDeployedArtifacts()<T> java.util.List<T>getDeployedArtifacts(java.lang.Class<T> clazz)java.util.List<CaseDefinition>getDeployedCaseDefinitions()Returns the case definitions, which are deployed with that deployment.java.util.List<DecisionDefinition>getDeployedDecisionDefinitions()Returns the decision definitions, which are deployed with that deploymentjava.util.List<DecisionRequirementsDefinition>getDeployedDecisionRequirementsDefinitions()Returns the decision requirements definitions, which are deployed with that deploymentjava.util.List<ProcessDefinition>getDeployedProcessDefinitions()Returns the process definitions, which are deployed with that deployment.java.util.DategetDeploymentTime()java.lang.StringgetId()java.lang.StringgetName()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.ResourceEntitygetResource(java.lang.String resourceName)java.util.Map<java.lang.String,ResourceEntity>getResources()java.lang.StringgetSource()java.lang.StringgetTenantId()Returns the id of the tenant this deployment belongs to.booleanisNew()booleanisValidatingSchema()voidremoveArtifact(ResourceDefinitionEntity notDeployedArtifact)voidsetDeploymentTime(java.util.Date deploymentTime)voidsetId(java.lang.String id)voidsetName(java.lang.String name)voidsetNew(boolean isNew)voidsetResources(java.util.Map<java.lang.String,ResourceEntity> resources)voidsetSource(java.lang.String source)voidsetTenantId(java.lang.String tenantId)voidsetValidatingSchema(boolean validatingSchema)java.lang.StringtoString()
-
-
-
Field Detail
-
id
protected java.lang.String id
-
name
protected java.lang.String name
-
resources
protected java.util.Map<java.lang.String,ResourceEntity> resources
-
deploymentTime
protected java.util.Date deploymentTime
-
validatingSchema
protected boolean validatingSchema
-
isNew
protected boolean isNew
-
source
protected java.lang.String source
-
tenantId
protected java.lang.String tenantId
-
deployedArtifacts
protected java.util.Map<java.lang.Class<?>,java.util.List> deployedArtifacts
Will only be used during actual deployment to pass deployed artifacts (eg process definitions). Will be null otherwise.
-
-
Method Detail
-
getResource
public ResourceEntity getResource(java.lang.String resourceName)
-
addResource
public void addResource(ResourceEntity resource)
-
clearResources
public void clearResources()
-
getResources
public java.util.Map<java.lang.String,ResourceEntity> getResources()
-
getPersistentState
public java.lang.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)
-
getDeployedArtifacts
public java.util.Map<java.lang.Class<?>,java.util.List> getDeployedArtifacts()
-
getDeployedArtifacts
public <T> java.util.List<T> getDeployedArtifacts(java.lang.Class<T> clazz)
-
removeArtifact
public void removeArtifact(ResourceDefinitionEntity notDeployedArtifact)
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceDeployment
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceDeployment
-
setName
public void setName(java.lang.String name)
-
setResources
public void setResources(java.util.Map<java.lang.String,ResourceEntity> resources)
-
getDeploymentTime
public java.util.Date getDeploymentTime()
- Specified by:
getDeploymentTimein interfaceDeployment
-
setDeploymentTime
public void setDeploymentTime(java.util.Date deploymentTime)
-
isValidatingSchema
public boolean isValidatingSchema()
-
setValidatingSchema
public void setValidatingSchema(boolean validatingSchema)
-
isNew
public boolean isNew()
-
setNew
public void setNew(boolean isNew)
-
getSource
public java.lang.String getSource()
- Specified by:
getSourcein interfaceDeployment
-
setSource
public void setSource(java.lang.String source)
-
getTenantId
public java.lang.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(java.lang.String tenantId)
-
getDeployedProcessDefinitions
public java.util.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 java.util.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 java.util.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 java.util.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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-