Package net.webpdf.wsclient.schema.beans
Class HistoryEntry
- java.lang.Object
-
- net.webpdf.wsclient.schema.beans.HistoryEntry
-
- All Implemented Interfaces:
Serializable
public class HistoryEntry extends Object implements Serializable
An instance ofHistoryEntryis intended to wrap and simplify information about a previous state of a givenDocument, it shall provide an ID for that history entry, allowing to revert to that state of the linked document.
SuchHistoryEntryobjects can be received via and are managed by aRestSession´sDocumentManager.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HistoryEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetDateTime()Returns the timestamp of the history entry.@Nullable StringgetFileName()Returns the name of the file, that has been changed.intgetId()Returns the ID of the history entry.@Nullable StringgetOperation()Returns the name of the operation, that has been executed.booleanisActive()Returns true, if the history entry is currently active.voidsetActive(boolean active)When set totrue, the history entry is currently active.voidsetDateTime(@Nullable String dateTime)Sets the timestamp of the history entry.voidsetFileName(@Nullable String fileName)Sets the name of the file, that has been changed.voidsetId(int id)Sets the ID of the history entry.voidsetOperation(@Nullable String operation)Sets the name of the operation, that has been executed.
-
-
-
Method Detail
-
getId
public int getId()
Returns the ID of the history entry.- Returns:
- The ID of the history entry.
-
setId
public void setId(int id)
Sets the ID of the history entry.- Parameters:
id- The ID, that shall be set.
-
isActive
public boolean isActive()
Returns true, if the history entry is currently active.- Returns:
- True, if the history entry is currently active.
-
setActive
public void setActive(boolean active)
When set totrue, the history entry is currently active.- Parameters:
active-true, if the history entry is currently active.
-
getFileName
@Nullable public @Nullable String getFileName()
Returns the name of the file, that has been changed.- Returns:
- The name of the file, that has been changed.
-
setFileName
public void setFileName(@Nullable @Nullable String fileName)Sets the name of the file, that has been changed.- Parameters:
fileName- The name of the file, that has been changed.
-
getOperation
@Nullable public @Nullable String getOperation()
Returns the name of the operation, that has been executed.- Returns:
- The name of the operation, that has been executed.
-
setOperation
public void setOperation(@Nullable @Nullable String operation)Sets the name of the operation, that has been executed.- Parameters:
operation- The name of the operation, that has been executed.
-
getDateTime
@Nullable public @Nullable String getDateTime()
Returns the timestamp of the history entry.- Returns:
- The timestamp of the history entry.
-
setDateTime
public void setDateTime(@Nullable @Nullable String dateTime)Sets the timestamp of the history entry.- Parameters:
dateTime- The timestamp of the history entry.
-
-