Package com.proxemo.todo4.bom
Class ToDoEventLog
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoEventLog
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoEventLog extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANONYMIZE_TASKS
static int
LOGOFF_EVENT
static int
LOGON_EVENT
static int
QUERYARCHIVE_EVENT
static int
SAVE_EXPERTS
static int
SAVE_LABEL
static int
SAVE_METADATA
static int
SAVE_PROPERTY
static int
SAVE_SCHEDULED_SCRIPT
static int
SAVE_SMSFETCHER
static int
SAVE_USER
static int
SAVE_WORKGROUP
static int
SAVE_WORKGROUP_TEXTMODULES
static int
SAVING_MAILBOX
static int
SAVING_SYSTEM
static int
UNKNOWN_EVENT
-
Constructor Summary
Constructors Constructor Description ToDoEventLog()
ToDoEventLog(int eventType, java.lang.String title, java.lang.String description, ToDoUser eventUser, java.lang.String ip, java.lang.String key, long duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anonymize()
java.lang.String
getDescription()
long
getDuration()
java.time.LocalDateTime
getEventDate()
int
getEventType()
ToDoUser
getEventUser()
java.lang.Long
getEventUserId()
java.lang.Long
getId()
Method returning a canonical id of the object.java.lang.String
getIp()
java.lang.String
getKey()
java.lang.String
getTitle()
java.lang.Integer
getVersion()
Method returning the version of the instancejava.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setDescription(java.lang.String description)
void
setDuration(long duration)
void
setEventDate(java.time.LocalDateTime eventDate)
void
setEventType(int eventType)
void
setEventUser(ToDoUser eventUser)
void
setEventUserId(java.lang.Long eventUserId)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setIp(java.lang.String ip)
void
setKey(java.lang.String key)
void
setTitle(java.lang.String title)
void
setToActive()
Method to undelete an object logically.void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Field Detail
-
UNKNOWN_EVENT
public static final int UNKNOWN_EVENT
- See Also:
- Constant Field Values
-
LOGON_EVENT
public static final int LOGON_EVENT
- See Also:
- Constant Field Values
-
LOGOFF_EVENT
public static final int LOGOFF_EVENT
- See Also:
- Constant Field Values
-
SAVE_WORKGROUP
public static final int SAVE_WORKGROUP
- See Also:
- Constant Field Values
-
SAVE_USER
public static final int SAVE_USER
- See Also:
- Constant Field Values
-
QUERYARCHIVE_EVENT
public static final int QUERYARCHIVE_EVENT
- See Also:
- Constant Field Values
-
SAVE_WORKGROUP_TEXTMODULES
public static final int SAVE_WORKGROUP_TEXTMODULES
- See Also:
- Constant Field Values
-
SAVING_MAILBOX
public static final int SAVING_MAILBOX
- See Also:
- Constant Field Values
-
SAVING_SYSTEM
public static final int SAVING_SYSTEM
- See Also:
- Constant Field Values
-
SAVE_SMSFETCHER
public static final int SAVE_SMSFETCHER
- See Also:
- Constant Field Values
-
SAVE_METADATA
public static final int SAVE_METADATA
- See Also:
- Constant Field Values
-
SAVE_SCHEDULED_SCRIPT
public static final int SAVE_SCHEDULED_SCRIPT
- See Also:
- Constant Field Values
-
SAVE_EXPERTS
public static final int SAVE_EXPERTS
- See Also:
- Constant Field Values
-
SAVE_PROPERTY
public static final int SAVE_PROPERTY
- See Also:
- Constant Field Values
-
ANONYMIZE_TASKS
public static final int ANONYMIZE_TASKS
- See Also:
- Constant Field Values
-
SAVE_LABEL
public static final int SAVE_LABEL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToDoEventLog
public ToDoEventLog()
-
ToDoEventLog
public ToDoEventLog(int eventType, java.lang.String title, java.lang.String description, ToDoUser eventUser, java.lang.String ip, java.lang.String key, long duration)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getEventDate
public java.time.LocalDateTime getEventDate()
-
setEventDate
public void setEventDate(java.time.LocalDateTime eventDate)
-
getEventType
public int getEventType()
-
setEventType
public void setEventType(int eventType)
-
getEventUser
public ToDoUser getEventUser()
-
setEventUser
public void setEventUser(ToDoUser eventUser)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String title)
-
getDuration
public long getDuration()
-
setDuration
public void setDuration(long duration)
-
getIp
public java.lang.String getIp()
-
setIp
public void setIp(java.lang.String ip)
-
getKey
public java.lang.String getKey()
-
setKey
public void setKey(java.lang.String key)
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiable
Method returning a canonical id of the object. Transient objects return -1;- Specified by:
getId
in classToDoVersionedIdentifiable
- Returns:
- id the id of the object. Id is canonical for all instances of a class.
-
setId
public void setId(java.lang.Long id)
Description copied from class:ToDoVersionedIdentifiable
Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setId
in classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiable
Method setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersion
in classToDoVersionedIdentifiable
- Parameters:
version
- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiable
Method that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActive
in classToDoVersionedIdentifiable
- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiable
Method setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActive
in classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in classToDoVersionedIdentifiable
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
getEventUserId
public java.lang.Long getEventUserId()
-
setEventUserId
public void setEventUserId(java.lang.Long eventUserId)
-
-