Package com.logicaldoc.core
Class History
- java.lang.Object
-
- com.logicaldoc.core.PersistentObject
-
- com.logicaldoc.core.History
-
- All Implemented Interfaces:
Comparable<History>
- Direct Known Subclasses:
DocumentHistory
,FolderHistory
,UserHistory
,WebserviceCall
public abstract class History extends PersistentObject implements Comparable<History>
Superclass for history entries- Since:
- 5.0
- Author:
- Matteo Caruso - LogicalDOC
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASPECT
-
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
-
Constructor Summary
Constructors Constructor Description History()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(History o)
String
getColor()
String
getComment()
Date
getDate()
String
getDevice()
Long
getDocId()
Document
getDocument()
String
getEvent()
String
getFile()
String
getFilename()
String
getFilenameOld()
Long
getFileSize()
Folder
getFolder()
Long
getFolderId()
String
getGeolocation()
String
getIp()
int
getIsNew()
int
getNotified()
String
getPath()
String
getPathOld()
String
getReason()
String
getSessionId()
String
getTenant()
User
getUser()
Long
getUserId()
String
getUserLogin()
String
getUsername()
String
getVersion()
boolean
isNotifyEvent()
void
setClient(Client client)
This setter sets the ip, device and other informations that can be captured by the given clientvoid
setColor(String color)
void
setComment(String comment)
void
setDate(Date date)
void
setDevice(String device)
void
setDocId(Long docId)
void
setDocument(Document document)
void
setEvent(String event)
void
setFile(String file)
void
setFilename(String filename)
void
setFilenameOld(String filenameOld)
void
setFileSize(Long fileSize)
void
setFolder(Folder folder)
void
setFolderId(Long folderId)
void
setGeolocation(String geolocation)
void
setIp(String ip)
void
setIsNew(int _new)
void
setNotified(int notified)
void
setNotifyEvent(boolean notifyEvent)
void
setPath(String path)
void
setPathOld(String pathOld)
void
setReason(String reason)
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
setTenant(String tenant)
void
setUser(User user)
This setter sets the userId and username and other informations that can be captured by the given uservoid
setUserId(Long userId)
void
setUserLogin(String login)
void
setUsername(String username)
void
setVersion(String version)
-
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
-
-
-
Field Detail
-
ASPECT
public static String ASPECT
-
-
Method Detail
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getDate
public Date getDate()
- Returns:
- Returns the date.
-
setDate
public void setDate(Date date)
- Parameters:
date
- The date to set.
-
getDocId
public Long getDocId()
- Returns:
- Returns the docId.
-
setDocId
public void setDocId(Long docId)
- Parameters:
docId
- The docId to set.
-
getEvent
public String getEvent()
- Returns:
- Returns the event.
-
setEvent
public void setEvent(String event)
- Parameters:
event
- The event to set.
-
getUsername
public String getUsername()
- Returns:
- Returns the username.
-
setUsername
public void setUsername(String username)
- Parameters:
username
- The username to set.
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
getNotified
public int getNotified()
-
setNotified
public void setNotified(int notified)
-
getSessionId
public String getSessionId()
-
setSessionId
public void setSessionId(String sessionId)
-
getUser
public User getUser()
-
setSession
public void setSession(Session session)
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
public void setUser(User user)
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
public void setDocument(Document document)
-
setClient
public void setClient(Client client)
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 _new)
-
getFilename
public String getFilename()
-
setFilename
public void setFilename(String filename)
-
getFilenameOld
public String getFilenameOld()
-
setFilenameOld
public void setFilenameOld(String filenameOld)
-
getPathOld
public String getPathOld()
-
setPathOld
public void setPathOld(String pathOld)
-
getFile
public String getFile()
-
setFile
public void setFile(String file)
-
getTenant
public String getTenant()
-
setTenant
public void setTenant(String tenant)
-
getUserLogin
public String getUserLogin()
-
setUserLogin
public void setUserLogin(String login)
-
getDocument
public Document getDocument()
-
getFolder
public Folder getFolder()
-
setFolder
public void setFolder(Folder folder)
-
isNotifyEvent
public boolean isNotifyEvent()
-
setNotifyEvent
public void setNotifyEvent(boolean notifyEvent)
-
getIp
public String getIp()
-
setIp
public void setIp(String ip)
-
getReason
public String getReason()
-
setReason
public void setReason(String reason)
-
getFolderId
public Long getFolderId()
-
getUserId
public Long getUserId()
-
setFolderId
public void setFolderId(Long folderId)
-
setUserId
public void setUserId(Long userId)
-
getGeolocation
public String getGeolocation()
-
setGeolocation
public void setGeolocation(String geolocation)
-
getDevice
public String getDevice()
-
setDevice
public void setDevice(String device)
-
compareTo
public int compareTo(History o)
- Specified by:
compareTo
in interfaceComparable<History>
-
getFileSize
public Long getFileSize()
-
setFileSize
public void setFileSize(Long fileSize)
-
getColor
public String getColor()
-
setColor
public void setColor(String color)
-
-