Class DigestTimeZoneListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<String,String>
io.meeds.commons.digest.listener.DigestTimeZoneListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<String,String>

public class DigestTimeZoneListener extends org.exoplatform.services.listener.Listener<String,String>
The glue between the platform timezone of a user and the digest: when the platform saves a user's timezone (event social.timeZone.saved, source = the username, data = the zone id), the copy the digest sender job keeps in its work list is refreshed, so the next occurrence is computed in the new timezone. Fail-safe: a failure is logged, the timezone save itself is never affected.
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<String,String> event)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName
  • Constructor Details

    • DigestTimeZoneListener

      public DigestTimeZoneListener()
  • Method Details

    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<String,String> event)