Package com.logicaldoc.core
Class History
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.History
- All Implemented Interfaces:
Serializable,Comparable<History>
- Direct Known Subclasses:
DocumentHistory,FolderHistory,UserHistory,WebserviceCall
Superclass for history entries
- Since:
- 5.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Field Summary
FieldsFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetColor()getDate()getDocId()getEvent()getFile()getIp()intgetIsNew()intgetPath()getUser()inthashCode()booleanvoidThis setter sets the ip, device and other informations that can be captured by the given clientvoidvoidsetComment(String comment) voidvoidvoidvoidsetDocument(Document document) voidvoidvoidsetFilename(String filename) voidsetFilenameOld(String filenameOld) voidsetFileSize(Long fileSize) voidsetFileVersion(String fileVersion) voidvoidsetFolderId(Long folderId) voidsetGeolocation(String geolocation) voidvoidsetIsNew(int nnew) voidsetKeyLabel(String keyLabel) voidsetNotified(int notified) voidsetNotifyEvent(boolean notifyEvent) voidvoidsetPathOld(String pathOld) 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) voidsetVersion(String version) 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
-
getFileVersion
-
setFileVersion
-
getVersion
-
setVersion
-
getPath
-
setPath
-
getDate
- Returns:
- Returns the date.
-
setDate
- Parameters:
date- The date to set.
-
getDocId
- Returns:
- Returns the docId.
-
setDocId
- Parameters:
docId- The docId to set.
-
getEvent
- Returns:
- Returns the event.
-
setEvent
- Parameters:
event- The event to set.
-
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
-
setDocument
-
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
-
getIsNew
public int getIsNew() -
setIsNew
public void setIsNew(int nnew) -
getFilename
-
setFilename
-
getFilenameOld
-
setFilenameOld
-
getPathOld
-
setPathOld
-
getFile
-
setFile
-
getTenant
-
setTenant
-
getUserLogin
-
setUserLogin
-
getDocument
-
getFolder
-
setFolder
-
isNotifyEvent
public boolean isNotifyEvent() -
setNotifyEvent
public void setNotifyEvent(boolean notifyEvent) -
getIp
-
setIp
-
getReason
-
setReason
-
getFolderId
-
getUserId
-
setFolderId
-
setUserId
-
getGeolocation
-
setGeolocation
-
getDevice
-
setDevice
-
getFileSize
-
setFileSize
-
getColor
-
setColor
-
getKeyLabel
-
setKeyLabel
-
toString
- Overrides:
toStringin classPersistentObject
-
compareTo
- Specified by:
compareToin interfaceComparable<History>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-