public class CmsLogEntry
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ATTR_LOG_ENTRY
DB context attribute name constant.
|
构造器和说明 |
---|
CmsLogEntry(CmsDbContext dbc,
CmsUUID structureId,
CmsLogEntryType type,
java.lang.String[] data)
Public constructor, will use the current time for time stamp.
|
CmsLogEntry(CmsUUID userId,
long date,
CmsUUID structureId,
CmsLogEntryType type,
java.lang.String[] data)
Public constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String[] |
getData()
Returns the additional data.
|
long |
getDate()
Returns the date.
|
java.lang.String |
getDetails(java.util.Locale locale)
Returns the formatted details for this log entry.
|
CmsUUID |
getStructureId()
Returns the structure id.
|
CmsLogEntryType |
getType()
Returns the type.
|
CmsUUID |
getUserId()
Returns the user id.
|
java.lang.String |
toString() |
public static final java.lang.String ATTR_LOG_ENTRY
public CmsLogEntry(CmsDbContext dbc, CmsUUID structureId, CmsLogEntryType type, java.lang.String[] data)
dbc
- the current database context with the current userstructureId
- the structure idtype
- the entry typedata
- the additional data to be parsed as a mappublic CmsLogEntry(CmsUUID userId, long date, CmsUUID structureId, CmsLogEntryType type, java.lang.String[] data)
userId
- the user iddate
- the date in millisecondsstructureId
- the structure idtype
- the entry typedata
- the optional additional datapublic java.lang.String[] getData()
public long getDate()
public java.lang.String getDetails(java.util.Locale locale)
locale
- the localepublic CmsUUID getStructureId()
public CmsLogEntryType getType()
public CmsUUID getUserId()
public java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()