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  

    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

    Modifier and Type Method Description
    java.lang.String getApplicationId()
    The id of the application that this device is registered for
    java.util.Date getCreationTime()
    The time when the device was created
    java.lang.String getCreatorId()
    The id of the user that created the token.
    java.lang.String getDeviceOS()
    The operating system of the device
    java.lang.Object getPersistentState()  
    java.lang.String getTenantId()
    The tenant id of the device
    java.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 device
    java.util.Date getUpdateTime()
    The time when the device was last updated
    java.lang.String getUserId()
    The id of the user that this device belongs to
    boolean 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

    Methods inherited from interface com.flowable.engage.api.notification.push.Device

    getId

    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 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

  • 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.
      Specified by:
      getToken in interface Device
      Returns:
      the device token
    • setToken

      public void setToken​(java.lang.String token)
      Specified by:
      setToken in interface DeviceEntity
    • getTokenEncoding

      public java.lang.String getTokenEncoding()
      Description copied from interface: Device
      The type of the encoding for the device.
      Specified by:
      getTokenEncoding in interface Device
      Returns:
      the encoding of the device token
    • setTokenEncoding

      public void setTokenEncoding​(java.lang.String tokenEncoding)
      Specified by:
      setTokenEncoding in interface DeviceEntity
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Device
      Whether the device is enabled (i.e. can receive notifications)
      Specified by:
      isEnabled in interface Device
      Returns:
      true if the device is enabled, false otherwise
    • setEnabled

      public void setEnabled​(boolean enabled)
      Specified by:
      setEnabled in interface DeviceEntity
    • getDeviceOS

      public java.lang.String getDeviceOS()
      Description copied from interface: Device
      The operating system of the device
      Specified by:
      getDeviceOS in interface Device
      Returns:
      the operating system of the device
    • setDeviceOS

      public void setDeviceOS​(java.lang.String deviceOS)
      Specified by:
      setDeviceOS in interface DeviceEntity
    • getUserId

      public java.lang.String getUserId()
      Description copied from interface: Device
      The id of the user that this device belongs to
      Specified by:
      getUserId in interface Device
      Returns:
      the id of the user that this device belongs to
    • setUserId

      public void setUserId​(java.lang.String userId)
      Specified by:
      setUserId in interface DeviceEntity
    • 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 interface Device
      Returns:
      the id of the application that the device is registered for
    • setApplicationId

      public void setApplicationId​(java.lang.String applicationId)
      Specified by:
      setApplicationId in interface DeviceEntity
    • getCreatorId

      public java.lang.String getCreatorId()
      Description copied from interface: Device
      The id of the user that created the token.
      Specified by:
      getCreatorId in interface Device
      Returns:
      the id of the creator
    • setCreatorId

      public void setCreatorId​(java.lang.String creatorId)
      Specified by:
      setCreatorId in interface DeviceEntity
    • getCreationTime

      public java.util.Date getCreationTime()
      Description copied from interface: Device
      The time when the device was created
      Specified by:
      getCreationTime in interface Device
      Returns:
      the creation time of the device
    • setCreationTime

      public void setCreationTime​(java.util.Date creationTime)
      Specified by:
      setCreationTime in interface DeviceEntity
    • 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 interface Device
      Returns:
      the id of the updater
    • setUpdaterId

      public void setUpdaterId​(java.lang.String updaterId)
      Specified by:
      setUpdaterId in interface DeviceEntity
    • getUpdateTime

      public java.util.Date getUpdateTime()
      Description copied from interface: Device
      The time when the device was last updated
      Specified by:
      getUpdateTime in interface Device
      Returns:
      the last update time of the device
    • setUpdateTime

      public void setUpdateTime​(java.util.Date updateTime)
      Specified by:
      setUpdateTime in interface DeviceEntity
    • getTenantId

      public java.lang.String getTenantId()
      Description copied from interface: Device
      The tenant id of the device
      Specified by:
      getTenantId in interface Device
      Returns:
      the id of the tenant for the device
    • setTenantId

      public void setTenantId​(java.lang.String tenantId)
      Specified by:
      setTenantId in interface DeviceEntity
    • getPersistentState

      public java.lang.Object getPersistentState()
      Specified by:
      getPersistentState in interface org.flowable.common.engine.impl.persistence.entity.Entity