org.camunda.bpm.engine.impl.persistence.entity
Class DeploymentEntity

java.lang.Object
  extended by 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
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
DeploymentEntity()
           
 
Method Summary
 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 deployment
 List<DecisionRequirementsDefinition> getDeployedDecisionRequirementsDefinitions()
          Returns the decision requirements definitions, which are deployed with that deployment
 List<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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

deployedArtifacts

protected Map<Class<?>,List> deployedArtifacts
Will only be used during actual deployment to pass deployed artifacts (eg process definitions). Will be null otherwise.

Constructor Detail

DeploymentEntity

public DeploymentEntity()
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 interface DbEntity

addDeployedArtifact

public void addDeployedArtifact(ResourceDefinitionEntity deployedArtifact)

getDeployedArtifacts

public Map<Class<?>,List> getDeployedArtifacts()

getDeployedArtifacts

public <T> List<T> getDeployedArtifacts(Class<T> clazz)

removeArtifact

public void removeArtifact(ResourceDefinitionEntity notDeployedArtifact)

getId

public String getId()
Specified by:
getId in interface DbEntity
Specified by:
getId in interface Deployment

setId

public void setId(String id)
Specified by:
setId in interface DbEntity

getName

public String getName()
Specified by:
getName in interface Deployment

setName

public void setName(String name)

setResources

public void setResources(Map<String,ResourceEntity> resources)

getDeploymentTime

public Date getDeploymentTime()
Specified by:
getDeploymentTime in interface Deployment

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 interface Deployment

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 be null if the deployment belongs to no single tenant.

Specified by:
getTenantId in interface Deployment

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 interface DeploymentWithDefinitions
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 interface DeploymentWithDefinitions
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 interface DeploymentWithDefinitions
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 interface DeploymentWithDefinitions
Returns:
the decision definitions, which are deployed

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017 camunda services GmbH. All rights reserved.