Class ReaderTracker

    • Constructor Detail

      • ReaderTracker

        public ReaderTracker()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Data
      • incrementAccessCount

        public void incrementAccessCount()
        Increments the access count (+1)
        Since:
        jcms-6.0.0
      • incrementAccessCount

        public void incrementAccessCount​(int count)
        Increments the access count with the given count.
        Parameters:
        count - the count to add to the current access count
        Since:
        jcms-6.0.0
      • getFirstAccessDate

        public java.util.Date getFirstAccessDate()
        Returns the first access date.
        Returns:
        the first access date.
        Since:
        jcms-7.0.0
      • getLastAccessDate

        public java.util.Date getLastAccessDate()
        Returns the last access date.
        Returns:
        the last access date.
        Since:
        jcms-7.0.0
      • setAuthorId

        public void setAuthorId​(java.lang.String authordId)
        Description copied from class: Data
        Sets the JStore ID of the author (only for DBData).

        If the specified authorId is an invalid ID (non existing Member), the author will be set to the Member specified by property channel.default-author (or left null if this property has not been set).

        Overrides:
        setAuthorId in class Data
        Parameters:
        authordId - the JStore author id
      • getPublication

        public Publication getPublication()
        Get the value of publication.
        Returns:
        Value of publication.
        Since:
        jcms-6.0
      • setPublication

        public void setPublication​(Publication v)
        Set the value of publication.
        Parameters:
        v - Value to assign to publication.
        Since:
        jcms-6.0
      • getPublicationId

        public java.lang.String getPublicationId()
      • setPublicationId

        public void setPublicationId​(java.lang.String v)
      • getAccessCount

        public int getAccessCount()
      • setAccessCount

        public void setAccessCount​(int accessCount)
      • getAccessType

        public int getAccessType()
        Returns:
        value of accessType
        Since:
        jcms-8.0.0
      • setAccessType

        public void setAccessType​(int accessType)
        Parameters:
        accessType - value to assign to accessType
        Since:
        jcms-8.0.0
      • setAccessType

        public void setAccessType​(java.lang.Integer accessType)
        Parameters:
        accessType - value to assign to accessType
        Since:
        jcms-8.0.0
      • getAckDate

        public java.util.Date getAckDate()
        Returns:
        the acknowledge date
        Since:
        jcms-10.0.5
      • setAckDate

        public void setAckDate​(java.util.Date ackDate)
        Parameters:
        ackDate - the acknowledge date
        Since:
        jcms-10.0.5
      • getAckVersion

        public java.lang.String getAckVersion()
        Returns:
        the version the member acknowledge the reading
        Since:
        jcms-10.0.5
      • setAckVersion

        public void setAckVersion​(java.lang.String ackVersion)
        Parameters:
        ackVersion - the version the member acknowledge the reading
        Since:
        jcms-10.0.5
      • hasBeenAck

        public boolean hasBeenAck()
        Returns true if this ReaderTracker contains a reading confirmation (read ack) which date is valid.

        Ack date is valid when it occured after publication's last major modification date.

        (major modification date is publication's major modification date udate if any, else its creation date cdate).

        Returns:
        true if this ReaderTracker contains a valid reading confirmation.
        Since:
        jcms-10.0.5
      • getCSVHeader

        public static java.lang.String getCSVHeader​(java.lang.String userLang)
        Parameters:
        userLang - the language of the user
        Returns:
        csv headers for ReaderTracker csv export
      • toCSV

        public java.lang.String toCSV​(java.lang.String userLang)
        Description copied from class: Data
        Returns a CSV view of this object
        Overrides:
        toCSV in class Data
        Parameters:
        userLang - the output language
        Returns:
        a CSV view of this object
        See Also:
        Returns a CSV view of this object