Class AuditInstanceEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntityNoRevision
com.flowable.audit.engine.impl.persistence.entity.AbstractAuditEngineNoRevisionEntity
com.flowable.audit.engine.impl.persistence.entity.AuditInstanceEntityImpl
- All Implemented Interfaces:
AuditInstance,AuditInstanceEntity,java.io.Serializable,org.flowable.common.engine.impl.persistence.entity.Entity
public class AuditInstanceEntityImpl extends AbstractAuditEngineNoRevisionEntity implements AuditInstanceEntity, java.io.Serializable
- Author:
- Tijs Rademakers
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringauditDefinitionIdprotected java.util.DatecreationTimeprotected java.lang.StringcreatorIdprotected java.lang.StringexternalIdprotected java.util.Map<java.lang.String,java.lang.Object>payloadprotected java.lang.StringscopeDefinitionIdprotected java.lang.StringscopeIdprotected java.lang.StringscopeTypeprotected java.lang.StringsubScopeIdprotected java.lang.StringsubTypeprotected java.lang.StringtenantIdprotected java.lang.Stringtype -
Constructor Summary
Constructors Constructor Description AuditInstanceEntityImpl() -
Method Summary
Modifier and Type Method Description java.lang.StringgetAuditDefinitionId()Reference to the audit definition of this audit instance.java.util.DategetCreationTime()Returns the creation timestamp of this audit instance.java.lang.StringgetCreatorId()Returns the id of the user creating this audit instance.java.lang.StringgetExternalId()If this audit instance was created from an external system, this optional external id might be used to map to that external data object id, if necessary.java.util.Map<java.lang.String,java.lang.Object>getPayload()Returns the optional payload as a byte array for this audit instance as described within theAuditDefinition.java.lang.ObjectgetPersistentState()java.lang.StringgetScopeDefinitionId()Reference to the scope instance definition for which the audit instance was created (if available, might benull).java.lang.StringgetScopeId()Reference to the optional scope instance for which the audit instance was created, if any, as this is optional, it might benull.java.lang.StringgetScopeType()Type of the optional scope instance for which the audit instance was created (only, ifAuditInstance.getScopeId()is set).java.lang.StringgetSubScopeId()Reference to the optional sub scope instance for which the audit instance was created, if any, as this is optional, it might benull.java.lang.StringgetSubType()Returns the sub type of this audit instance.java.lang.StringgetTenantId()Returns the id of the tenant this audit instance object belongs to.java.lang.StringgetType()Returns the main type of this audit instance.voidsetAuditDefinitionId(java.lang.String auditDefinitionId)voidsetCreationTime(java.util.Date creationTime)voidsetCreatorId(java.lang.String creatorId)voidsetExternalId(java.lang.String externalId)voidsetPayload(java.util.Map<java.lang.String,java.lang.Object> payload)voidsetScopeDefinitionId(java.lang.String scopeDefinitionId)voidsetScopeId(java.lang.String scopeId)voidsetScopeType(java.lang.String scopeType)voidsetSubScopeId(java.lang.String subScopeId)voidsetSubType(java.lang.String subType)voidsetTenantId(java.lang.String tenantId)voidsetType(java.lang.String type)java.lang.StringtoString()Methods inherited from class com.flowable.audit.engine.impl.persistence.entity.AbstractAuditEngineNoRevisionEntity
getIdPrefixMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityNoRevision
getId, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
-
Field Details
-
auditDefinitionId
protected java.lang.String auditDefinitionId -
scopeId
protected java.lang.String scopeId -
subScopeId
protected java.lang.String subScopeId -
scopeType
protected java.lang.String scopeType -
scopeDefinitionId
protected java.lang.String scopeDefinitionId -
externalId
protected java.lang.String externalId -
type
protected java.lang.String type -
subType
protected java.lang.String subType -
payload
protected java.util.Map<java.lang.String,java.lang.Object> payload -
creationTime
protected java.util.Date creationTime -
creatorId
protected java.lang.String creatorId -
tenantId
protected java.lang.String tenantId
-
-
Constructor Details
-
AuditInstanceEntityImpl
public AuditInstanceEntityImpl()
-
-
Method Details
-
getPersistentState
public java.lang.Object getPersistentState()- Specified by:
getPersistentStatein interfaceorg.flowable.common.engine.impl.persistence.entity.Entity
-
getAuditDefinitionId
public java.lang.String getAuditDefinitionId()Description copied from interface:AuditInstanceReference to the audit definition of this audit instance.- Specified by:
getAuditDefinitionIdin interfaceAuditInstance
-
setAuditDefinitionId
public void setAuditDefinitionId(java.lang.String auditDefinitionId)- Specified by:
setAuditDefinitionIdin interfaceAuditInstanceEntity
-
getScopeId
public java.lang.String getScopeId()Description copied from interface:AuditInstanceReference to the optional scope instance for which the audit instance was created, if any, as this is optional, it might benull.- Specified by:
getScopeIdin interfaceAuditInstance
-
setScopeId
public void setScopeId(java.lang.String scopeId)- Specified by:
setScopeIdin interfaceAuditInstanceEntity
-
getSubScopeId
public java.lang.String getSubScopeId()Description copied from interface:AuditInstanceReference to the optional sub scope instance for which the audit instance was created, if any, as this is optional, it might benull.- Specified by:
getSubScopeIdin interfaceAuditInstance
-
setSubScopeId
public void setSubScopeId(java.lang.String subScopeId)- Specified by:
setSubScopeIdin interfaceAuditInstanceEntity
-
getScopeType
public java.lang.String getScopeType()Description copied from interface:AuditInstanceType of the optional scope instance for which the audit instance was created (only, ifAuditInstance.getScopeId()is set).- Specified by:
getScopeTypein interfaceAuditInstance
-
setScopeType
public void setScopeType(java.lang.String scopeType)- Specified by:
setScopeTypein interfaceAuditInstanceEntity
-
getScopeDefinitionId
public java.lang.String getScopeDefinitionId()Description copied from interface:AuditInstanceReference to the scope instance definition for which the audit instance was created (if available, might benull).- Specified by:
getScopeDefinitionIdin interfaceAuditInstance
-
setScopeDefinitionId
public void setScopeDefinitionId(java.lang.String scopeDefinitionId)- Specified by:
setScopeDefinitionIdin interfaceAuditInstanceEntity
-
getExternalId
public java.lang.String getExternalId()Description copied from interface:AuditInstanceIf this audit instance was created from an external system, this optional external id might be used to map to that external data object id, if necessary.- Specified by:
getExternalIdin interfaceAuditInstance
-
setExternalId
public void setExternalId(java.lang.String externalId)- Specified by:
setExternalIdin interfaceAuditInstanceEntity
-
getType
public java.lang.String getType()Description copied from interface:AuditInstanceReturns the main type of this audit instance. The type and sub type might later be used for easy querying and filtering of the audit stream.- Specified by:
getTypein interfaceAuditInstance
-
setType
public void setType(java.lang.String type)- Specified by:
setTypein interfaceAuditInstanceEntity
-
getSubType
public java.lang.String getSubType()Description copied from interface:AuditInstanceReturns the sub type of this audit instance. The type and sub type might later be used for easy querying and filtering of the audit stream.- Specified by:
getSubTypein interfaceAuditInstance
-
setSubType
public void setSubType(java.lang.String subType)- Specified by:
setSubTypein interfaceAuditInstanceEntity
-
getPayload
public java.util.Map<java.lang.String,java.lang.Object> getPayload()Description copied from interface:AuditInstanceReturns the optional payload as a byte array for this audit instance as described within theAuditDefinition.- Specified by:
getPayloadin interfaceAuditInstance
-
setPayload
public void setPayload(java.util.Map<java.lang.String,java.lang.Object> payload)- Specified by:
setPayloadin interfaceAuditInstanceEntity
-
getCreationTime
public java.util.Date getCreationTime()Description copied from interface:AuditInstanceReturns the creation timestamp of this audit instance.- Specified by:
getCreationTimein interfaceAuditInstance
-
setCreationTime
public void setCreationTime(java.util.Date creationTime)- Specified by:
setCreationTimein interfaceAuditInstanceEntity
-
getCreatorId
public java.lang.String getCreatorId()Description copied from interface:AuditInstanceReturns the id of the user creating this audit instance.- Specified by:
getCreatorIdin interfaceAuditInstance
-
setCreatorId
public void setCreatorId(java.lang.String creatorId)- Specified by:
setCreatorIdin interfaceAuditInstanceEntity
-
getTenantId
public java.lang.String getTenantId()Description copied from interface:AuditInstanceReturns the id of the tenant this audit instance object belongs to.- Specified by:
getTenantIdin interfaceAuditInstance
-
setTenantId
public void setTenantId(java.lang.String tenantId)- Specified by:
setTenantIdin interfaceAuditInstanceEntity
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-