Class PublicationFollowerListener

  • All Implemented Interfaces:
    DBConstants, DBListener, PluginComponent

    public class PublicationFollowerListener
    extends BasicDBListener
    Automatically removes a member children publication followers when he unsubscribes from a parent:
    • Faq
    • Glossary
    Since:
    jcms-10.0.4
    Version:
    $Revision: 135309 $
    Author:
    Sylvain Devaux
    • Constructor Detail

      • PublicationFollowerListener

        public PublicationFollowerListener()
    • Method Detail

      • onPostDelete

        public void onPostDelete​(DBData data,
                                 org.hibernate.event.PostDeleteEvent event,
                                 boolean firstTime)
        If related Publication is a Faq or a Glossary, removes member from all faq/glossary entries followers too.
        Specified by:
        onPostDelete in interface DBListener
        Overrides:
        onPostDelete in class BasicDBListener
        Parameters:
        data - the deleted DBData. WARNING! In a JSync Cluster, when firstTime is false, this data will be null. In this case, to get information about this deleted data, you must use the event and in particular event.getId(), which returns the JPlatform ID of the data, and event.getDeletedState() which returns the attributes of the data.
        event - the event
        firstTime - true on the JSync replica on which the operation took place and false on the other replicas.
        See Also:
        DBListener.onPostDelete(DBData, PostDeleteEvent, boolean)