Class WFNote

    • Field Detail

      • publicationId

        protected java.lang.String publicationId
      • prevPstatus

        protected int prevPstatus
      • newPstatus

        protected int newPstatus
      • note

        protected java.lang.String note
      • finalVote

        protected boolean finalVote
    • Constructor Detail

      • WFNote

        public WFNote()
      • WFNote

        public WFNote​(Publication publication,
                      int prevPstatus,
                      int newPstatus,
                      java.lang.String comment,
                      Member author,
                      DataExtension extension)
      • WFNote

        public WFNote​(WFNote other)
    • Method Detail

      • getPrevStateLabel

        public java.lang.String getPrevStateLabel​(java.lang.String userLang)
        Returns the label of the previous state.
        Parameters:
        userLang - the user language.
        Returns:
        the label of the previous state.
        Since:
        jcms-5.7.0
      • getNewStateLabel

        public java.lang.String getNewStateLabel​(java.lang.String userLang)
        Returns the label of the previous state.
        Parameters:
        userLang - the user language.
        Returns:
        the label of the previous state.
        Since:
        jcms-5.7.0
      • getFinalVote

        public boolean getFinalVote()
        Returns true if the WFNote is the final in a vote.
        Returns:
        true if the WFNote is the final in a vote.
        Since:
        jcms-6.0.0
      • setFinalVote

        public void setFinalVote​(boolean finalVote)
        Sets this WFNote as final vote.
        Parameters:
        finalVote - the boolean value.
        Since:
        jcms-6.0.0
      • getPublication

        public Publication getPublication()
        Retrieve the publication associated to this WFNote.
        Returns:
        the Publication associated to this WFNote.
        Since:
        jcms-2.1
      • setPublication

        public void setPublication​(Publication pub)
        Set the publication associated to this WFNote.
        Parameters:
        pub - a Publication.
        Since:
        jcms-2.1
      • getPublicationId

        public java.lang.String getPublicationId()
        Returns the JStore ID of the publication.
        Returns:
        the JStore ID of the publication
        Since:
        jcms-6.0.0
      • setPublicationId

        public void setPublicationId​(java.lang.String v)
        Sets the JStore ID of the publication.
        Parameters:
        v - the JStore publication id
        Since:
        jcms-6.0.0
      • getPrevPstatus

        public int getPrevPstatus()
        Retrieve the pstatus in which the Publication was prior to the change associated to this WFNote.
        Returns:
        the previous pstatus.
        Since:
        jcms-2.1
      • setPrevPstatus

        public void setPrevPstatus​(int pstatus)
        Set the pstatus in which the Publication was prior to the update associated with this WFNote.
        Parameters:
        pstatus - the previous pstatus.
        Since:
        jcms-2.1
      • getNewPstatus

        public int getNewPstatus()
        Retrieve the pstatus in which the Publication is after the update associated with this WFNote.
        Returns:
        the new pstatus.
        Since:
        jcms-2.1
      • setNewPstatus

        public void setNewPstatus​(int pstatus)
        Set the pstatus in which the Publication is after the update associated with this WFNote.
        Parameters:
        pstatus - the new pstatus.
        Since:
        jcms-2.1
      • getNote

        public java.lang.String getNote()
        Retrieve the note text of this WFNote.
        Returns:
        the text.
        Since:
        jcms-6.0.0
      • setNote

        public void setNote​(java.lang.String note)
        Set the note text of this WFNote.
        Parameters:
        note - the text of this WFNote.
        Since:
        jcms-6.0.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Data
        Since:
        jcms-4.1