Class DeviceEntityImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.entity.AbstractEntity
-
- com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
-
- com.flowable.engage.engine.impl.persistence.entity.DeviceEntityImpl
-
- All Implemented Interfaces:
Device,DeviceEntity,HasRevision,Entity
public class DeviceEntityImpl extends AbstractEngageEngineEntity implements DeviceEntity
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringapplicationIdprotected DatecreationTimeprotected StringcreatorIdprotected StringdeviceOSprotected booleanenabledprotected StringtenantIdprotected Stringtokenprotected StringtokenEncodingprotected StringupdaterIdprotected DateupdateTimeprotected StringuserId-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description DeviceEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplicationId()The id of the application that this device is registered forDategetCreationTime()The time when the device was createdStringgetCreatorId()The id of the user that created the token.StringgetDeviceOS()The operating system of the deviceObjectgetPersistentState()StringgetTenantId()The tenant id of the deviceStringgetToken()The token of the device that should be used when sending out notifications to it.StringgetTokenEncoding()The type of the encoding for the device.StringgetUpdaterId()The id of the user that last updated the deviceDategetUpdateTime()The time when the device was last updatedStringgetUserId()The id of the user that this device belongs tobooleanisEnabled()Whether the device is enabled (i.e.voidsetApplicationId(String applicationId)voidsetCreationTime(Date creationTime)voidsetCreatorId(String creatorId)voidsetDeviceOS(String deviceOS)voidsetEnabled(boolean enabled)voidsetTenantId(String tenantId)voidsetToken(String token)voidsetTokenEncoding(String tokenEncoding)voidsetUpdaterId(String updaterId)voidsetUpdateTime(Date updateTime)voidsetUserId(String userId)-
Methods inherited from class com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
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
-
-
-
-
Field Detail
-
token
protected String token
-
tokenEncoding
protected String tokenEncoding
-
enabled
protected boolean enabled
-
deviceOS
protected String deviceOS
-
userId
protected String userId
-
applicationId
protected String applicationId
-
creatorId
protected String creatorId
-
creationTime
protected Date creationTime
-
updaterId
protected String updaterId
-
updateTime
protected Date updateTime
-
tenantId
protected String tenantId
-
-
Method Detail
-
getToken
public String getToken()
Description copied from interface:DeviceThe token of the device that should be used when sending out notifications to it.
-
setToken
public void setToken(String token)
- Specified by:
setTokenin interfaceDeviceEntity
-
getTokenEncoding
public String getTokenEncoding()
Description copied from interface:DeviceThe type of the encoding for the device.- Specified by:
getTokenEncodingin interfaceDevice- Returns:
- the encoding of the device token
-
setTokenEncoding
public void setTokenEncoding(String tokenEncoding)
- Specified by:
setTokenEncodingin interfaceDeviceEntity
-
isEnabled
public boolean isEnabled()
Description copied from interface:DeviceWhether the device is enabled (i.e. can receive notifications)
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceDeviceEntity
-
getDeviceOS
public String getDeviceOS()
Description copied from interface:DeviceThe operating system of the device- Specified by:
getDeviceOSin interfaceDevice- Returns:
- the operating system of the device
-
setDeviceOS
public void setDeviceOS(String deviceOS)
- Specified by:
setDeviceOSin interfaceDeviceEntity
-
getUserId
public String getUserId()
Description copied from interface:DeviceThe id of the user that this device belongs to
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserIdin interfaceDeviceEntity
-
getApplicationId
public String getApplicationId()
Description copied from interface:DeviceThe id of the application that this device is registered for- Specified by:
getApplicationIdin interfaceDevice- Returns:
- the id of the application that the device is registered for
-
setApplicationId
public void setApplicationId(String applicationId)
- Specified by:
setApplicationIdin interfaceDeviceEntity
-
getCreatorId
public String getCreatorId()
Description copied from interface:DeviceThe id of the user that created the token.- Specified by:
getCreatorIdin interfaceDevice- Returns:
- the id of the creator
-
setCreatorId
public void setCreatorId(String creatorId)
- Specified by:
setCreatorIdin interfaceDeviceEntity
-
getCreationTime
public Date getCreationTime()
Description copied from interface:DeviceThe time when the device was created- Specified by:
getCreationTimein interfaceDevice- Returns:
- the creation time of the device
-
setCreationTime
public void setCreationTime(Date creationTime)
- Specified by:
setCreationTimein interfaceDeviceEntity
-
getUpdaterId
public String getUpdaterId()
Description copied from interface:DeviceThe id of the user that last updated the device- Specified by:
getUpdaterIdin interfaceDevice- Returns:
- the id of the updater
-
setUpdaterId
public void setUpdaterId(String updaterId)
- Specified by:
setUpdaterIdin interfaceDeviceEntity
-
getUpdateTime
public Date getUpdateTime()
Description copied from interface:DeviceThe time when the device was last updated- Specified by:
getUpdateTimein interfaceDevice- Returns:
- the last update time of the device
-
setUpdateTime
public void setUpdateTime(Date updateTime)
- Specified by:
setUpdateTimein interfaceDeviceEntity
-
getTenantId
public String getTenantId()
Description copied from interface:DeviceThe tenant id of the device- Specified by:
getTenantIdin interfaceDevice- Returns:
- the id of the tenant for the device
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceDeviceEntity
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentStatein interfaceEntity
-
-