Class UserAccountEntityImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.entity.AbstractEntity
-
- com.flowable.idm.engine.impl.persistence.entity.AbstractIdmEngineEntity
-
- com.flowable.idm.engine.impl.persistence.entity.UserAccountEntityImpl
-
- All Implemented Interfaces:
UserAccount
,UserAccountEntity
,HasRevision
,Entity
public class UserAccountEntityImpl extends AbstractIdmEngineEntity implements UserAccountEntity
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected String
businessAccountId
protected Date
creationTime
protected String
creatorId
protected String
externalUserId
protected String
name
protected String
state
protected String
subState
protected String
subType
protected String
tenantId
protected String
type
protected String
updaterId
protected Date
updateTime
protected String
userAccountDefinitionId
protected String
userId
-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description UserAccountEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBusinessAccountId()
The id of the business account id this user account is linked to (e.g.Date
getCreationTime()
The time of creation of this accountString
getCreatorId()
The id of the user that created this accountString
getExternalUserId()
The id of the user within the external system (e.g.String
getName()
The name of the account.Object
getPersistentState()
String
getState()
The state of the user accountString
getSubState()
The sub state of the user accountString
getSubType()
The sub type of the account.String
getTenantId()
The id of the tenant that this user account belongs toString
getType()
The type of the account.String
getUpdaterId()
The id of the user that last updated the accountDate
getUpdateTime()
The time of the last update of this accountString
getUserAccountDefinitionId()
The id of the user account definition for this user accountString
getUserId()
The id of the user that this account belongs to.void
setBusinessAccountId(String businessAccountId)
void
setCreationTime(Date creationTime)
void
setCreatorId(String creatorId)
void
setExternalUserId(String externalUserId)
void
setName(String name)
void
setState(String state)
void
setSubState(String subState)
void
setSubType(String subType)
void
setTenantId(String tenantId)
void
setType(String type)
void
setUpdaterId(String updaterId)
void
setUpdateTime(Date updateTime)
void
setUserAccountDefinitionId(String userAccountDefinitionId)
void
setUserId(String userId)
-
Methods inherited from class com.flowable.idm.engine.impl.persistence.entity.AbstractIdmEngineEntity
getIdPrefix
-
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
-
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface com.flowable.core.idm.api.UserAccount
getId, isActive
-
-
-
-
Field Detail
-
userId
protected String userId
-
tenantId
protected String tenantId
-
name
protected String name
-
type
protected String type
-
subType
protected String subType
-
state
protected String state
-
subState
protected String subState
-
businessAccountId
protected String businessAccountId
-
externalUserId
protected String externalUserId
-
userAccountDefinitionId
protected String userAccountDefinitionId
-
creatorId
protected String creatorId
-
creationTime
protected Date creationTime
-
updaterId
protected String updaterId
-
updateTime
protected Date updateTime
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentState
in interfaceEntity
-
getUserId
public String getUserId()
Description copied from interface:UserAccount
The id of the user that this account belongs to. It might benull
if the account is not yet linked with a user (during onboarding for example).- Specified by:
getUserId
in interfaceUserAccount
- Returns:
- the id of the user that this account belongs to
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceUserAccountEntity
-
getTenantId
public String getTenantId()
Description copied from interface:UserAccount
The id of the tenant that this user account belongs to- Specified by:
getTenantId
in interfaceUserAccount
- Returns:
- the tenant id
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantId
in interfaceUserAccountEntity
-
getName
public String getName()
Description copied from interface:UserAccount
The name of the account. (e.g. WhatsApp for XY, etc)- Specified by:
getName
in interfaceUserAccount
- Returns:
- the name of the account
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceUserAccountEntity
-
getType
public String getType()
Description copied from interface:UserAccount
The type of the account. (e.g. Messenger)- Specified by:
getType
in interfaceUserAccount
- Returns:
- the type of the account
-
setType
public void setType(String type)
- Specified by:
setType
in interfaceUserAccountEntity
-
getSubType
public String getSubType()
Description copied from interface:UserAccount
The sub type of the account. (e.g. WhatsApp, WeChat, Facebook, etc)- Specified by:
getSubType
in interfaceUserAccount
- Returns:
- the sub type of the account
-
setSubType
public void setSubType(String subType)
- Specified by:
setSubType
in interfaceUserAccountEntity
-
getState
public String getState()
Description copied from interface:UserAccount
The state of the user account- Specified by:
getState
in interfaceUserAccount
- Returns:
- the state
-
setState
public void setState(String state)
- Specified by:
setState
in interfaceUserAccountEntity
-
getSubState
public String getSubState()
Description copied from interface:UserAccount
The sub state of the user account- Specified by:
getSubState
in interfaceUserAccount
- Returns:
- the sub state
-
setSubState
public void setSubState(String subState)
- Specified by:
setSubState
in interfaceUserAccountEntity
-
getBusinessAccountId
public String getBusinessAccountId()
Description copied from interface:UserAccount
The id of the business account id this user account is linked to (e.g. WhatsApp business number xyz or WeChat official account, etc).- Specified by:
getBusinessAccountId
in interfaceUserAccount
- Returns:
- the business account id
-
setBusinessAccountId
public void setBusinessAccountId(String businessAccountId)
- Specified by:
setBusinessAccountId
in interfaceUserAccountEntity
-
getExternalUserId
public String getExternalUserId()
Description copied from interface:UserAccount
The id of the user within the external system (e.g. the phone number if it is a WhatsApp account or the user-id for a facebook account, etc)- Specified by:
getExternalUserId
in interfaceUserAccount
- Returns:
- external user id
-
setExternalUserId
public void setExternalUserId(String externalUserId)
- Specified by:
setExternalUserId
in interfaceUserAccountEntity
-
getUserAccountDefinitionId
public String getUserAccountDefinitionId()
Description copied from interface:UserAccount
The id of the user account definition for this user account- Specified by:
getUserAccountDefinitionId
in interfaceUserAccount
- Returns:
- the user account definition id
-
setUserAccountDefinitionId
public void setUserAccountDefinitionId(String userAccountDefinitionId)
- Specified by:
setUserAccountDefinitionId
in interfaceUserAccountEntity
-
getCreatorId
public String getCreatorId()
Description copied from interface:UserAccount
The id of the user that created this account- Specified by:
getCreatorId
in interfaceUserAccount
- Returns:
- the id of the creator
-
setCreatorId
public void setCreatorId(String creatorId)
- Specified by:
setCreatorId
in interfaceUserAccountEntity
-
getCreationTime
public Date getCreationTime()
Description copied from interface:UserAccount
The time of creation of this account- Specified by:
getCreationTime
in interfaceUserAccount
- Returns:
- the creation time of this account
-
setCreationTime
public void setCreationTime(Date creationTime)
- Specified by:
setCreationTime
in interfaceUserAccountEntity
-
getUpdaterId
public String getUpdaterId()
Description copied from interface:UserAccount
The id of the user that last updated the account- Specified by:
getUpdaterId
in interfaceUserAccount
- Returns:
- the id of the user that last updated the account
-
setUpdaterId
public void setUpdaterId(String updaterId)
- Specified by:
setUpdaterId
in interfaceUserAccountEntity
-
getUpdateTime
public Date getUpdateTime()
Description copied from interface:UserAccount
The time of the last update of this account- Specified by:
getUpdateTime
in interfaceUserAccount
- Returns:
- the last update time of this account
-
setUpdateTime
public void setUpdateTime(Date updateTime)
- Specified by:
setUpdateTime
in interfaceUserAccountEntity
-
-