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.String
auditDefinitionId
protected java.util.Date
creationTime
protected java.lang.String
creatorId
protected java.lang.String
externalId
protected java.util.Map<java.lang.String,java.lang.Object>
payload
protected java.lang.String
scopeDefinitionId
protected java.lang.String
scopeId
protected java.lang.String
scopeType
protected java.lang.String
subScopeId
protected java.lang.String
subType
protected java.lang.String
tenantId
protected java.lang.String
type
-
Constructor Summary
Constructors Constructor Description AuditInstanceEntityImpl()
-
Method Summary
Modifier and Type Method Description java.lang.String
getAuditDefinitionId()
Reference to the audit definition of this audit instance.java.util.Date
getCreationTime()
Returns the creation timestamp of this audit instance.java.lang.String
getCreatorId()
Returns the id of the user creating this audit instance.java.lang.String
getExternalId()
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.Object
getPersistentState()
java.lang.String
getScopeDefinitionId()
Reference to the scope instance definition for which the audit instance was created (if available, might benull
).java.lang.String
getScopeId()
Reference to the optional scope instance for which the audit instance was created, if any, as this is optional, it might benull
.java.lang.String
getScopeType()
Type of the optional scope instance for which the audit instance was created (only, ifAuditInstance.getScopeId()
is set).java.lang.String
getSubScopeId()
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.String
getSubType()
Returns the sub type of this audit instance.java.lang.String
getTenantId()
Returns the id of the tenant this audit instance object belongs to.java.lang.String
getType()
Returns the main type of this audit instance.void
setAuditDefinitionId(java.lang.String auditDefinitionId)
void
setCreationTime(java.util.Date creationTime)
void
setCreatorId(java.lang.String creatorId)
void
setExternalId(java.lang.String externalId)
void
setPayload(java.util.Map<java.lang.String,java.lang.Object> payload)
void
setScopeDefinitionId(java.lang.String scopeDefinitionId)
void
setScopeId(java.lang.String scopeId)
void
setScopeType(java.lang.String scopeType)
void
setSubScopeId(java.lang.String subScopeId)
void
setSubType(java.lang.String subType)
void
setTenantId(java.lang.String tenantId)
void
setType(java.lang.String type)
java.lang.String
toString()
Methods inherited from class com.flowable.audit.engine.impl.persistence.entity.AbstractAuditEngineNoRevisionEntity
getIdPrefix
Methods 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:
getPersistentState
in interfaceorg.flowable.common.engine.impl.persistence.entity.Entity
-
getAuditDefinitionId
public java.lang.String getAuditDefinitionId()Description copied from interface:AuditInstance
Reference to the audit definition of this audit instance.- Specified by:
getAuditDefinitionId
in interfaceAuditInstance
-
setAuditDefinitionId
public void setAuditDefinitionId(java.lang.String auditDefinitionId)- Specified by:
setAuditDefinitionId
in interfaceAuditInstanceEntity
-
getScopeId
public java.lang.String getScopeId()Description copied from interface:AuditInstance
Reference to the optional scope instance for which the audit instance was created, if any, as this is optional, it might benull
.- Specified by:
getScopeId
in interfaceAuditInstance
-
setScopeId
public void setScopeId(java.lang.String scopeId)- Specified by:
setScopeId
in interfaceAuditInstanceEntity
-
getSubScopeId
public java.lang.String getSubScopeId()Description copied from interface:AuditInstance
Reference to the optional sub scope instance for which the audit instance was created, if any, as this is optional, it might benull
.- Specified by:
getSubScopeId
in interfaceAuditInstance
-
setSubScopeId
public void setSubScopeId(java.lang.String subScopeId)- Specified by:
setSubScopeId
in interfaceAuditInstanceEntity
-
getScopeType
public java.lang.String getScopeType()Description copied from interface:AuditInstance
Type of the optional scope instance for which the audit instance was created (only, ifAuditInstance.getScopeId()
is set).- Specified by:
getScopeType
in interfaceAuditInstance
-
setScopeType
public void setScopeType(java.lang.String scopeType)- Specified by:
setScopeType
in interfaceAuditInstanceEntity
-
getScopeDefinitionId
public java.lang.String getScopeDefinitionId()Description copied from interface:AuditInstance
Reference to the scope instance definition for which the audit instance was created (if available, might benull
).- Specified by:
getScopeDefinitionId
in interfaceAuditInstance
-
setScopeDefinitionId
public void setScopeDefinitionId(java.lang.String scopeDefinitionId)- Specified by:
setScopeDefinitionId
in interfaceAuditInstanceEntity
-
getExternalId
public java.lang.String getExternalId()Description copied from interface:AuditInstance
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.- Specified by:
getExternalId
in interfaceAuditInstance
-
setExternalId
public void setExternalId(java.lang.String externalId)- Specified by:
setExternalId
in interfaceAuditInstanceEntity
-
getType
public java.lang.String getType()Description copied from interface:AuditInstance
Returns 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:
getType
in interfaceAuditInstance
-
setType
public void setType(java.lang.String type)- Specified by:
setType
in interfaceAuditInstanceEntity
-
getSubType
public java.lang.String getSubType()Description copied from interface:AuditInstance
Returns 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:
getSubType
in interfaceAuditInstance
-
setSubType
public void setSubType(java.lang.String subType)- Specified by:
setSubType
in interfaceAuditInstanceEntity
-
getPayload
public java.util.Map<java.lang.String,java.lang.Object> getPayload()Description copied from interface:AuditInstance
Returns the optional payload as a byte array for this audit instance as described within theAuditDefinition
.- Specified by:
getPayload
in interfaceAuditInstance
-
setPayload
public void setPayload(java.util.Map<java.lang.String,java.lang.Object> payload)- Specified by:
setPayload
in interfaceAuditInstanceEntity
-
getCreationTime
public java.util.Date getCreationTime()Description copied from interface:AuditInstance
Returns the creation timestamp of this audit instance.- Specified by:
getCreationTime
in interfaceAuditInstance
-
setCreationTime
public void setCreationTime(java.util.Date creationTime)- Specified by:
setCreationTime
in interfaceAuditInstanceEntity
-
getCreatorId
public java.lang.String getCreatorId()Description copied from interface:AuditInstance
Returns the id of the user creating this audit instance.- Specified by:
getCreatorId
in interfaceAuditInstance
-
setCreatorId
public void setCreatorId(java.lang.String creatorId)- Specified by:
setCreatorId
in interfaceAuditInstanceEntity
-
getTenantId
public java.lang.String getTenantId()Description copied from interface:AuditInstance
Returns the id of the tenant this audit instance object belongs to.- Specified by:
getTenantId
in interfaceAuditInstance
-
setTenantId
public void setTenantId(java.lang.String tenantId)- Specified by:
setTenantId
in interfaceAuditInstanceEntity
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-