Class CmsVisitEntry


  • public class CmsVisitEntry
    extends java.lang.Object
    A bean which represents a user having visited a page.

    Since:
    8.0.0
    • Constructor Detail

      • CmsVisitEntry

        public CmsVisitEntry​(CmsDbContext dbc,
                             CmsUUID structureId)
        Public constructor, will use the current time for time stamp.

        Parameters:
        dbc - the current database context with the current user
        structureId - the structure id
      • CmsVisitEntry

        public CmsVisitEntry​(CmsUUID userId,
                             long date,
                             CmsUUID structureId)
        Public constructor.

        Parameters:
        userId - the user id
        date - the date in milliseconds
        structureId - the structure id
    • Method Detail

      • getDate

        public long getDate()
        Returns the date.

        Returns:
        the date
      • getUserId

        public CmsUUID getUserId()
        Returns the user id.

        Returns:
        the user id
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()