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 SummaryFieldsFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Field Details- 
ASPECT- See Also:
 
 
- 
- 
Constructor Details- 
Historypublic History()
 
- 
- 
Method Details- 
getPath
- 
setPath
- 
getDate- Returns:
- Returns the date.
 
- 
setDate- Parameters:
- date- The date to set.
 
- 
setEventSets 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
- 
getNotifiedpublic int getNotified()
- 
setNotifiedpublic void setNotified(int notified) 
- 
getSessionId
- 
setSessionId
- 
getUser
- 
setSessionThis 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
 
- 
setUserThis 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
 
- 
setClientThis 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
- 
isNotifyEventpublic boolean isNotifyEvent()
- 
setNotifyEventpublic void setNotifyEvent(boolean notifyEvent) 
- 
getIp
- 
setIp
- 
getUserId
- 
setUserId
- 
getGeolocation
- 
setGeolocation
- 
getDevice
- 
setDevice
- 
getKeyLabel
- 
setKeyLabel
- 
toString- Overrides:
- toStringin class- PersistentObject
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<History>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
- 
eventTablesRetrieves 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
 
 
-