Class CmsHistorySettings
java.lang.Object
org.opencms.workplace.tools.history.CmsHistorySettings
Bean to store the entries made by the user in the History Settings form in the
administration view.
- Since:
- 6.9.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant for the deleted resources history mode: disabled.static final int
Constant for the deleted resources history mode: keep without versions.static final int
Constant for the deleted resources history mode: keep with versions. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getMode()
Returns the mode how the deleted resource history is kept.int
Returns the number of versions to keep.void
setMode
(int mode) Sets the how the deleted resource history is kept.void
setVersions
(int versions) Sets the number of versions to keep.
-
Field Details
-
MODE_DELETED_HISTORY_DISABLED
Constant for the deleted resources history mode: disabled.- See Also:
-
MODE_DELETED_HISTORY_KEEP_NO_VERSIONS
Constant for the deleted resources history mode: keep without versions.- See Also:
-
MODE_DELETED_HISTORY_KEEP_WITH_VERSIONS
Constant for the deleted resources history mode: keep with versions.- See Also:
-
-
Constructor Details
-
CmsHistorySettings
public CmsHistorySettings()Default constructor initializing values.
-
-
Method Details
-
getMode
Returns the mode how the deleted resource history is kept.- Returns:
- the mode how the deleted resource history is kept
-
getVersions
Returns the number of versions to keep.- Returns:
- the number of versions to keep
-
setMode
Sets the how the deleted resource history is kept.- Parameters:
mode
- the mode how the deleted resource history is kept
-
setVersions
Sets the number of versions to keep.- Parameters:
versions
- the number of versions to keep
-