Class CmsHistorySettings
- java.lang.Object
-
- org.opencms.workplace.tools.history.CmsHistorySettings
-
public class CmsHistorySettings extends java.lang.Object
Bean to store the entries made by the user in the History Settings form in the administration view.- Since:
- 6.9.1
-
-
Field Summary
Fields Modifier and Type Field Description static int
MODE_DELETED_HISTORY_DISABLED
Constant for the deleted resources history mode: disabled.static int
MODE_DELETED_HISTORY_KEEP_NO_VERSIONS
Constant for the deleted resources history mode: keep without versions.static int
MODE_DELETED_HISTORY_KEEP_WITH_VERSIONS
Constant for the deleted resources history mode: keep with versions.
-
Constructor Summary
Constructors Constructor Description CmsHistorySettings()
Default constructor initializing values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMode()
Returns the mode how the deleted resource history is kept.int
getVersions()
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 Detail
-
MODE_DELETED_HISTORY_DISABLED
public static final int MODE_DELETED_HISTORY_DISABLED
Constant for the deleted resources history mode: disabled.- See Also:
- Constant Field Values
-
MODE_DELETED_HISTORY_KEEP_NO_VERSIONS
public static final int MODE_DELETED_HISTORY_KEEP_NO_VERSIONS
Constant for the deleted resources history mode: keep without versions.- See Also:
- Constant Field Values
-
MODE_DELETED_HISTORY_KEEP_WITH_VERSIONS
public static final int MODE_DELETED_HISTORY_KEEP_WITH_VERSIONS
Constant for the deleted resources history mode: keep with versions.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsHistorySettings
public CmsHistorySettings()
Default constructor initializing values.
-
-
Method Detail
-
getMode
public int getMode()
Returns the mode how the deleted resource history is kept.- Returns:
- the mode how the deleted resource history is kept
-
getVersions
public int getVersions()
Returns the number of versions to keep.- Returns:
- the number of versions to keep
-
setMode
public void setMode(int mode)
Sets the how the deleted resource history is kept.- Parameters:
mode
- the mode how the deleted resource history is kept
-
setVersions
public void setVersions(int versions)
Sets the number of versions to keep.- Parameters:
versions
- the number of versions to keep
-
-