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 intANONYMIZE_TASKSstatic intLOGOFF_EVENTstatic intLOGON_EVENTstatic intNEW_PASSWORD_REQUESTstatic intNEW_PASSWORD_RESETstatic intQUERYARCHIVE_EVENTstatic intSAVE_EXPERTSstatic intSAVE_LABELstatic intSAVE_METADATAstatic intSAVE_PROPERTYstatic intSAVE_SCHEDULED_SCRIPTstatic intSAVE_SMSFETCHERstatic intSAVE_USERstatic intSAVE_WORKGROUPstatic intSAVE_WORKGROUP_TEXTMODULESstatic intSAVING_MAILBOXstatic intSAVING_SYSTEMstatic intUNKNOWN_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 voidanonymize()java.lang.StringgetDescription()longgetDuration()java.time.LocalDateTimegetEventDate()intgetEventType()ToDoUsergetEventUser()java.lang.LonggetEventUserId()java.lang.LonggetId()Method returning a canonical id of the object.java.lang.StringgetIp()java.lang.StringgetKey()java.lang.StringgetTitle()java.lang.IntegergetVersion()Method returning the version of the instancejava.lang.BooleanisActive()Method that returns whether the instance is active or not (means: logically deleted)voidsetActive(java.lang.Boolean active)Method setting the active flag.voidsetDescription(java.lang.String description)voidsetDuration(long duration)voidsetEventDate(java.time.LocalDateTime eventDate)voidsetEventType(int eventType)voidsetEventUser(ToDoUser eventUser)voidsetEventUserId(java.lang.Long eventUserId)voidsetId(java.lang.Long id)Method setting the canonical id of the object.voidsetInactive()Method to delete an object logically.voidsetIp(java.lang.String ip)voidsetKey(java.lang.String key)voidsetTitle(java.lang.String title)voidsetToActive()Method to undelete an object logically.voidsetVersion(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
areEqual, 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
-
NEW_PASSWORD_REQUEST
public static final int NEW_PASSWORD_REQUEST
- See Also:
- Constant Field Values
-
NEW_PASSWORD_RESET
public static final int NEW_PASSWORD_RESET
- 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:ToDoVersionedIdentifiableMethod returning a canonical id of the object. Transient objects return -1;- Specified by:
getIdin 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:ToDoVersionedIdentifiableMethod setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setIdin classToDoVersionedIdentifiable- Parameters:
id- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiableMethod returning the version of the instance- Specified by:
getVersionin classToDoVersionedIdentifiable- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiableMethod setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersionin classToDoVersionedIdentifiable- Parameters:
version- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiableMethod that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActivein classToDoVersionedIdentifiable- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiableMethod setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActivein classToDoVersionedIdentifiable- Parameters:
active- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiableMethod to undelete an object logically.- Specified by:
setToActivein classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiableMethod to delete an object logically.- Specified by:
setInactivein classToDoVersionedIdentifiable
-
anonymize
public void anonymize()
- Specified by:
anonymizein classToDoVersionedIdentifiable
-
getEventUserId
public java.lang.Long getEventUserId()
-
setEventUserId
public void setEventUserId(java.lang.Long eventUserId)
-
-