Class ReaderTracker

All Implemented Interfaces:
DBData, JcmsConstants, ImportConstants, MashupConstants, RelatedData<Publication>, Storable, JaliosConstants, LangPropertyArgument, Serializable, Cloneable, Comparable<BasicStorable>

public class ReaderTracker extends Data implements DBData, RelatedData<Publication>
See Also:
  • Field Details

    • ACCESS_TYPE_READER

      public static final int ACCESS_TYPE_READER
      See Also:
    • ACCESS_TYPE_DOWNLOAD

      public static final int ACCESS_TYPE_DOWNLOAD
      See Also:
    • HIBERNATE_MAPPING_PUBLICATIONID

      public static final int HIBERNATE_MAPPING_PUBLICATIONID
      See Also:
  • Constructor Details

    • ReaderTracker

      public ReaderTracker()
    • ReaderTracker

      public ReaderTracker(ReaderTracker other)
  • Method Details

    • toString

      public 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 Date getFirstAccessDate()
      Returns the first access date.
      Returns:
      the first access date.
      Since:
      jcms-7.0.0
    • getLastAccessDate

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

      public void setAuthorId(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

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

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

      @Deprecated public String getPublicationId()
      Deprecated.
    • setPublicationId

      @Deprecated public void setPublicationId(String v)
      Deprecated.
    • getTargetData

      public Publication getTargetData()
      Specified by:
      getTargetData in interface RelatedData<Publication>
    • setTargetData

      public void setTargetData(Publication targetData)
      Specified by:
      setTargetData in interface RelatedData<Publication>
    • getTargetDataId

      public String getTargetDataId()
      Specified by:
      getTargetDataId in interface RelatedData<Publication>
    • setTargetDataId

      public void setTargetDataId(String targetDataId)
      Specified by:
      setTargetDataId in interface RelatedData<Publication>
    • 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(Integer accessType)
      Parameters:
      accessType - value to assign to accessType
      Since:
      jcms-8.0.0
    • getAckDate

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

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

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

      public void setAckVersion(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 String getCSVHeader(String userLang)
      Parameters:
      userLang - the language of the user
      Returns:
      csv headers for ReaderTracker csv export
    • toCSV

      public String toCSV(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: