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>
deployedArtifacts
Will only be used during actual deployment to pass deployed artifacts (eg process definitions).protected java.util.Date
deploymentTime
protected java.lang.String
id
protected boolean
isNew
protected java.lang.String
name
protected java.util.Map<java.lang.String,ResourceEntity>
resources
protected java.lang.String
source
protected java.lang.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()
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.Date
getDeploymentTime()
java.lang.String
getId()
java.lang.String
getName()
java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.ResourceEntity
getResource(java.lang.String resourceName)
java.util.Map<java.lang.String,ResourceEntity>
getResources()
java.lang.String
getSource()
java.lang.String
getTenantId()
Returns the id of the tenant this deployment belongs to.boolean
isNew()
boolean
isValidatingSchema()
void
removeArtifact(ResourceDefinitionEntity notDeployedArtifact)
void
setDeploymentTime(java.util.Date deploymentTime)
void
setId(java.lang.String id)
void
setName(java.lang.String name)
void
setNew(boolean isNew)
void
setResources(java.util.Map<java.lang.String,ResourceEntity> resources)
void
setSource(java.lang.String source)
void
setTenantId(java.lang.String tenantId)
void
setValidatingSchema(boolean validatingSchema)
java.lang.String
toString()
-
-
-
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: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)
-
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:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceDeployment
-
getName
public java.lang.String getName()
- Specified by:
getName
in 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:
getDeploymentTime
in 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:
getSource
in interfaceDeployment
-
setSource
public void setSource(java.lang.String source)
-
getTenantId
public java.lang.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(java.lang.String tenantId)
-
getDeployedProcessDefinitions
public java.util.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 java.util.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 java.util.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 java.util.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-