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 TypeMethodDescriptionintbooleanstatic Collection<String> Retrieves those histories that refer to events stored in the database and used for reports.getDate()getEvent()getIp()intgetPath()getUser()inthashCode()booleanvoidThis setter sets the ip, device and other informations that can be captured by the given clientvoidsetComment(String comment) voidvoidvoidSets the event keyvoidsetGeolocation(String geolocation) voidvoidsetKeyLabel(String keyLabel) voidsetNotified(int notified) voidsetNotifyEvent(boolean notifyEvent) voidvoidsetSession(Session session) This setter sets the sessionId, userId, username and other informations that can be captured by the given sessionvoidsetSessionId(String sessionId) voidvoidThis setter sets the userId and username and other informations that can be captured by the given uservoidvoidsetUserLogin(String login) voidsetUsername(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.
-
setEvent
Sets the event key- Parameters:
event- key of the event
-
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:
toStringin classPersistentObject
-
compareTo
- Specified by:
compareToin interfaceComparable<History>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin 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 theTableannotation.- Returns:
- Collection of table names
-