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
,org.flowable.common.engine.impl.db.HasRevision
,org.flowable.common.engine.impl.persistence.entity.Entity
public class DeviceEntityImpl extends AbstractEngageEngineEntity implements DeviceEntity
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
applicationId
protected java.util.Date
creationTime
protected java.lang.String
creatorId
protected java.lang.String
deviceOS
protected boolean
enabled
protected java.lang.String
tenantId
protected java.lang.String
token
protected java.lang.String
tokenEncoding
protected java.lang.String
updaterId
protected java.util.Date
updateTime
protected java.lang.String
userId
-
Constructor Summary
Constructors Constructor Description DeviceEntityImpl()
-
Method Summary
Modifier and Type Method Description java.lang.String
getApplicationId()
The id of the application that this device is registered forjava.util.Date
getCreationTime()
The time when the device was createdjava.lang.String
getCreatorId()
The id of the user that created the token.java.lang.String
getDeviceOS()
The operating system of the devicejava.lang.Object
getPersistentState()
java.lang.String
getTenantId()
The tenant id of the devicejava.lang.String
getToken()
The token of the device that should be used when sending out notifications to it.java.lang.String
getTokenEncoding()
The type of the encoding for the device.java.lang.String
getUpdaterId()
The id of the user that last updated the devicejava.util.Date
getUpdateTime()
The time when the device was last updatedjava.lang.String
getUserId()
The id of the user that this device belongs toboolean
isEnabled()
Whether the device is enabled (i.e.void
setApplicationId(java.lang.String applicationId)
void
setCreationTime(java.util.Date creationTime)
void
setCreatorId(java.lang.String creatorId)
void
setDeviceOS(java.lang.String deviceOS)
void
setEnabled(boolean enabled)
void
setTenantId(java.lang.String tenantId)
void
setToken(java.lang.String token)
void
setTokenEncoding(java.lang.String tokenEncoding)
void
setUpdaterId(java.lang.String updaterId)
void
setUpdateTime(java.util.Date updateTime)
void
setUserId(java.lang.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
-
Field Details
-
token
protected java.lang.String token -
tokenEncoding
protected java.lang.String tokenEncoding -
enabled
protected boolean enabled -
deviceOS
protected java.lang.String deviceOS -
userId
protected java.lang.String userId -
applicationId
protected java.lang.String applicationId -
creatorId
protected java.lang.String creatorId -
creationTime
protected java.util.Date creationTime -
updaterId
protected java.lang.String updaterId -
updateTime
protected java.util.Date updateTime -
tenantId
protected java.lang.String tenantId
-
-
Constructor Details
-
DeviceEntityImpl
public DeviceEntityImpl()
-
-
Method Details
-
getToken
public java.lang.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(java.lang.String token)- Specified by:
setToken
in interfaceDeviceEntity
-
getTokenEncoding
public java.lang.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(java.lang.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 java.lang.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(java.lang.String deviceOS)- Specified by:
setDeviceOS
in interfaceDeviceEntity
-
getUserId
public java.lang.String getUserId()Description copied from interface:Device
The id of the user that this device belongs to -
setUserId
public void setUserId(java.lang.String userId)- Specified by:
setUserId
in interfaceDeviceEntity
-
getApplicationId
public java.lang.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(java.lang.String applicationId)- Specified by:
setApplicationId
in interfaceDeviceEntity
-
getCreatorId
public java.lang.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(java.lang.String creatorId)- Specified by:
setCreatorId
in interfaceDeviceEntity
-
getCreationTime
public java.util.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(java.util.Date creationTime)- Specified by:
setCreationTime
in interfaceDeviceEntity
-
getUpdaterId
public java.lang.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(java.lang.String updaterId)- Specified by:
setUpdaterId
in interfaceDeviceEntity
-
getUpdateTime
public java.util.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(java.util.Date updateTime)- Specified by:
setUpdateTime
in interfaceDeviceEntity
-
getTenantId
public java.lang.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(java.lang.String tenantId)- Specified by:
setTenantId
in interfaceDeviceEntity
-
getPersistentState
public java.lang.Object getPersistentState()- Specified by:
getPersistentState
in interfaceorg.flowable.common.engine.impl.persistence.entity.Entity
-