Class PstatusAlarmListener

  • All Implemented Interfaces:
    AlarmListener

    public class PstatusAlarmListener
    extends TransactionalAlarmListener
    This class is the AlarmListener used to change pstatus scheduled with pdate, edate and adate.
    Since:
    jcms-2.1
    Version:
    $Revision: 132126 $
    Author:
    Olivier Dedieu, Olivier Jaquemet
    • Constructor Detail

      • PstatusAlarmListener

        public PstatusAlarmListener​(Publication pub,
                                    int comparisonOperator,
                                    int srcPstatus,
                                    int tgtPstatus)
        Constructs a new PstatusAlarmListener
        Parameters:
        pub - the publication to managed
        srcPstatus - the pstatus the publication will be compared to, in order to be updated
        comparisonOperator - define how the comparison between the publication's pstatus and the srcPstatus and will take place in order to allow or not the pstatus change LOWER (-2) : publication pstatus must be lower than srcPstatus LOWER_EQUAL (-1) : publication pstatus must be lower or equal than srcPstatus EQUALS ( 0) : publication pstatus must equal srcPstatus, this is the default value GREATER_EQUAL ( 1) : publication pstatus must be greater or equal than srcPstatus GREATER ( 2) : publication pstatus must be greater than srcPstatus
        tgtPstatus - the new pstatus the publication will get when the alarm will be reached.
    • Method Detail

      • toString

        public java.lang.String toString()
        readable PstatusAlarmListener toString
        Overrides:
        toString in class java.lang.Object