public class WGUpdateLog
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_DELETE
An update log for a document deletion
|
static int |
TYPE_STRUCTMOVE
An update log for a struct entry movage.
|
static int |
TYPE_UPDATE
An update log for a document creation or update
|
| Constructor and Description |
|---|
WGUpdateLog(int type,
java.util.Date date,
java.lang.String user,
java.lang.String dockey,
java.lang.String task,
WGDatabaseRevision revision)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getDate()
Return the date of modification.
|
java.lang.String |
getDocumentKey()
Returns the key of the modified document
|
WGDatabaseRevision |
getRevision()
Returns the revision of this modification
|
java.lang.String |
getTask()
Returns the task that was set on the session doing this modification
|
int |
getType()
Returns the type of log as constants TYPE_...
|
java.lang.String |
getUser()
Returns the user that executed the modification
|
void |
setDate(java.util.Date date)
Sets the date of modification
|
void |
setDocumentKey(java.lang.String string)
Sets the document key of the modified document
|
void |
setTask(java.lang.String task)
Sets the task of the update log
|
void |
setType(int type)
Sets the type of the update log.
|
void |
setUser(java.lang.String string)
Sets the user that executed the modification
|
java.lang.String |
toString() |
public static final int TYPE_UPDATE
public static final int TYPE_DELETE
public static final int TYPE_STRUCTMOVE
public WGUpdateLog(int type,
java.util.Date date,
java.lang.String user,
java.lang.String dockey,
java.lang.String task,
WGDatabaseRevision revision)
date - The date of modification.user - The user that modified the document.dockey - The document key of the modified document.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Date getDate()
public java.lang.String getDocumentKey()
public java.lang.String getUser()
public void setDate(java.util.Date date)
date - public void setDocumentKey(java.lang.String string)
string - public void setUser(java.lang.String string)
string - public int getType()
public void setType(int type)
public WGDatabaseRevision getRevision()
public java.lang.String getTask()
public void setTask(java.lang.String task)