Package com.logicaldoc.core.history
Class History
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.history.History
- All Implemented Interfaces:
Serializable
,Comparable<History>
- Direct Known Subclasses:
AbstractDocumentHistory
,UserHistory
,WebserviceCall
@MappedSuperclass
public abstract class History
extends PersistentObject
implements Comparable<History>
Superclass for history entries
- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
FieldsFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static Collection
<String> Retrieves those histories that refer to events stored in the database and used for reports.getDate()
getEvent()
getIp()
int
getPath()
getUser()
int
hashCode()
boolean
void
This setter sets the ip, device and other informations that can be captured by the given clientvoid
setComment
(String comment) void
void
void
setGeolocation
(String geolocation) void
void
setKeyLabel
(String keyLabel) void
setNotified
(int notified) void
setNotifyEvent
(boolean notifyEvent) void
void
setSession
(Session session) This setter sets the sessionId, userId, username and other informations that can be captured by the given sessionvoid
setSessionId
(String sessionId) void
void
This setter sets the userId and username and other informations that can be captured by the given uservoid
void
setUserLogin
(String login) void
setUsername
(String username) toString()
Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
ASPECT
- See Also:
-
-
Constructor Details
-
History
public History()
-
-
Method Details
-
getPath
-
setPath
-
getDate
- Returns:
- Returns the date.
-
setDate
- Parameters:
date
- The date to set.
-
getEvent
- Returns:
- Returns the event.
-
getUsername
- Returns:
- Returns the username.
-
setUsername
- Parameters:
username
- The username to set.
-
getComment
-
setComment
-
getNotified
public int getNotified() -
setNotified
public void setNotified(int notified) -
getSessionId
-
setSessionId
-
getUser
-
setSession
This setter sets the sessionId, userId, username and other informations that can be captured by the given session- Parameters:
session
- the session to read informations from
-
setUser
This setter sets the userId and username and other informations that can be captured by the given user- Parameters:
user
- the user to read informations from
-
setClient
This setter sets the ip, device and other informations that can be captured by the given client- Parameters:
client
- the client to read informations from
-
getTenant
-
setTenant
-
getUserLogin
-
setUserLogin
-
isNotifyEvent
public boolean isNotifyEvent() -
setNotifyEvent
public void setNotifyEvent(boolean notifyEvent) -
getIp
-
setIp
-
getUserId
-
setUserId
-
getGeolocation
-
setGeolocation
-
getDevice
-
setDevice
-
getKeyLabel
-
setKeyLabel
-
toString
- Overrides:
toString
in classPersistentObject
-
compareTo
- Specified by:
compareTo
in interfaceComparable<History>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-
eventTables
Retrieves those histories that refer to events stored in the database and used for reports. It looks for those histories that also declare theTable
annotation.- Returns:
- Collection of table names
-