Class DeviceEntityImpl

All Implemented Interfaces:
Device, DeviceEntity, HasRevision, Entity

public class DeviceEntityImpl extends AbstractEngageEngineEntity implements DeviceEntity
Author:
Filip Hrisafov
  • Field Details

    • 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
  • Constructor Details

    • DeviceEntityImpl

      public DeviceEntityImpl()
  • Method Details

    • getToken

      public 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(String token)
      Specified by:
      setToken in interface DeviceEntity
    • getTokenEncoding

      public 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(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 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(String deviceOS)
      Specified by:
      setDeviceOS in interface DeviceEntity
    • getUserId

      public 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(String userId)
      Specified by:
      setUserId in interface DeviceEntity
    • getApplicationId

      public 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(String applicationId)
      Specified by:
      setApplicationId in interface DeviceEntity
    • getCreatorId

      public 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(String creatorId)
      Specified by:
      setCreatorId in interface DeviceEntity
    • getCreationTime

      public 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(Date creationTime)
      Specified by:
      setCreationTime in interface DeviceEntity
    • getUpdaterId

      public 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(String updaterId)
      Specified by:
      setUpdaterId in interface DeviceEntity
    • getUpdateTime

      public 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(Date updateTime)
      Specified by:
      setUpdateTime in interface DeviceEntity
    • getTenantId

      public 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(String tenantId)
      Specified by:
      setTenantId in interface DeviceEntity
    • getPersistentState

      public Object getPersistentState()
      Specified by:
      getPersistentState in interface Entity