Class CmsLogEntry


  • public class CmsLogEntry
    extends java.lang.Object
    Wrapper class for a DB log entry.

    Since:
    8.0.0
    • Constructor Detail

      • CmsLogEntry

        public CmsLogEntry​(CmsDbContext dbc,
                           CmsUUID structureId,
                           CmsLogEntryType type,
                           java.lang.String[] data)
        Public constructor, will use the current time for time stamp.

        Parameters:
        dbc - the current database context with the current user
        structureId - the structure id
        type - the entry type
        data - the additional data to be parsed as a map
      • CmsLogEntry

        public CmsLogEntry​(CmsUUID userId,
                           long date,
                           CmsUUID structureId,
                           CmsLogEntryType type,
                           java.lang.String[] data)
        Public constructor.

        Parameters:
        userId - the user id
        date - the date in milliseconds
        structureId - the structure id
        type - the entry type
        data - the optional additional data
    • Method Detail

      • getData

        public java.lang.String[] getData()
        Returns the additional data.

        Returns:
        the additional data
      • getDate

        public long getDate()
        Returns the date.

        Returns:
        the date
      • getDetails

        public java.lang.String getDetails​(java.util.Locale locale)
        Returns the formatted details for this log entry.

        Parameters:
        locale - the locale
        Returns:
        the formatted details for this log entry
      • 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()