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 String
applicationId
protected Date
creationTime
protected String
creatorId
protected String
deviceOS
protected boolean
enabled
protected String
tenantId
protected String
token
protected String
tokenEncoding
protected String
updaterId
protected Date
updateTime
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 DeviceEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationId()
The id of the application that this device is registered forDate
getCreationTime()
The time when the device was createdString
getCreatorId()
The id of the user that created the token.String
getDeviceOS()
The operating system of the deviceObject
getPersistentState()
String
getTenantId()
The tenant id of the deviceString
getToken()
The token of the device that should be used when sending out notifications to it.String
getTokenEncoding()
The type of the encoding for the device.String
getUpdaterId()
The id of the user that last updated the deviceDate
getUpdateTime()
The time when the device was last updatedString
getUserId()
The id of the user that this device belongs toboolean
isEnabled()
Whether the device is enabled (i.e.void
setApplicationId(String applicationId)
void
setCreationTime(Date creationTime)
void
setCreatorId(String creatorId)
void
setDeviceOS(String deviceOS)
void
setEnabled(boolean enabled)
void
setTenantId(String tenantId)
void
setToken(String token)
void
setTokenEncoding(String tokenEncoding)
void
setUpdaterId(String updaterId)
void
setUpdateTime(Date updateTime)
void
setUserId(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:Device
The token of the device that should be used when sending out notifications to it.
-
setToken
public void setToken(String token)
- Specified by:
setToken
in interfaceDeviceEntity
-
getTokenEncoding
public String getTokenEncoding()
Description copied from interface:Device
The type of the encoding for the device.- Specified by:
getTokenEncoding
in interfaceDevice
- Returns:
- the encoding of the device token
-
setTokenEncoding
public void setTokenEncoding(String tokenEncoding)
- Specified by:
setTokenEncoding
in interfaceDeviceEntity
-
isEnabled
public boolean isEnabled()
Description copied from interface:Device
Whether the device is enabled (i.e. can receive notifications)
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceDeviceEntity
-
getDeviceOS
public String getDeviceOS()
Description copied from interface:Device
The operating system of the device- Specified by:
getDeviceOS
in interfaceDevice
- Returns:
- the operating system of the device
-
setDeviceOS
public void setDeviceOS(String deviceOS)
- Specified by:
setDeviceOS
in interfaceDeviceEntity
-
getUserId
public String getUserId()
Description copied from interface:Device
The id of the user that this device belongs to
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceDeviceEntity
-
getApplicationId
public String getApplicationId()
Description copied from interface:Device
The id of the application that this device is registered for- Specified by:
getApplicationId
in interfaceDevice
- Returns:
- the id of the application that the device is registered for
-
setApplicationId
public void setApplicationId(String applicationId)
- Specified by:
setApplicationId
in interfaceDeviceEntity
-
getCreatorId
public String getCreatorId()
Description copied from interface:Device
The id of the user that created the token.- Specified by:
getCreatorId
in interfaceDevice
- Returns:
- the id of the creator
-
setCreatorId
public void setCreatorId(String creatorId)
- Specified by:
setCreatorId
in interfaceDeviceEntity
-
getCreationTime
public Date getCreationTime()
Description copied from interface:Device
The time when the device was created- Specified by:
getCreationTime
in interfaceDevice
- Returns:
- the creation time of the device
-
setCreationTime
public void setCreationTime(Date creationTime)
- Specified by:
setCreationTime
in interfaceDeviceEntity
-
getUpdaterId
public String getUpdaterId()
Description copied from interface:Device
The id of the user that last updated the device- Specified by:
getUpdaterId
in interfaceDevice
- Returns:
- the id of the updater
-
setUpdaterId
public void setUpdaterId(String updaterId)
- Specified by:
setUpdaterId
in interfaceDeviceEntity
-
getUpdateTime
public Date getUpdateTime()
Description copied from interface:Device
The time when the device was last updated- Specified by:
getUpdateTime
in interfaceDevice
- Returns:
- the last update time of the device
-
setUpdateTime
public void setUpdateTime(Date updateTime)
- Specified by:
setUpdateTime
in interfaceDeviceEntity
-
getTenantId
public String getTenantId()
Description copied from interface:Device
The tenant id of the device- Specified by:
getTenantId
in interfaceDevice
- Returns:
- the id of the tenant for the device
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantId
in interfaceDeviceEntity
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentState
in interfaceEntity
-
-