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
FieldsModifier and TypeFieldDescriptionstatic final intConstant for the deleted resources history mode: disabled.static final intConstant for the deleted resources history mode: keep without versions.static final intConstant for the deleted resources history mode: keep with versions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetMode()Returns the mode how the deleted resource history is kept.intReturns the number of versions to keep.voidsetMode(int mode) Sets the how the deleted resource history is kept.voidsetVersions(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
-