Package org.opencms.file
Class CmsResource.CmsResourceUndoMode
- java.lang.Object
-
- org.opencms.util.A_CmsModeIntEnumeration
-
- org.opencms.file.CmsResource.CmsResourceUndoMode
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CmsResource
public static final class CmsResource.CmsResourceUndoMode extends A_CmsModeIntEnumeration
Enumeration class for resource undo changes modes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CmsResource.CmsResourceUndoModeMODE_UNDO_CONTENTIndicates that the undo method will only undo content changes.static CmsResource.CmsResourceUndoModeMODE_UNDO_CONTENT_RECURSIVEIndicates that the undo method will only recursive undo content changes.static CmsResource.CmsResourceUndoModeMODE_UNDO_MOVE_CONTENTIndicates that the undo method will undo move operations and content changes.static CmsResource.CmsResourceUndoModeMODE_UNDO_MOVE_CONTENT_RECURSIVEIndicates that the undo method will undo move operations and recursive content changes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmsResource.CmsResourceUndoModegetUndoMode(boolean move, boolean recursive)Gets the undo mode for the given parameters.CmsResource.CmsResourceUndoModeincludeMove()Returns a mode that includes the move operation with the same semantic as this mode.booleanisRecursive()Returnstrueif this undo operation is recursive.booleanisUndoMove()Returnstrueif this undo mode will undo move operations.java.lang.StringtoString()static CmsResource.CmsResourceUndoModevalueOf(int mode)Returns the undo mode object from the old undo mode integer.-
Methods inherited from class org.opencms.util.A_CmsModeIntEnumeration
equals, getMode, hashCode
-
-
-
-
Field Detail
-
MODE_UNDO_CONTENT
public static final CmsResource.CmsResourceUndoMode MODE_UNDO_CONTENT
Indicates that the undo method will only undo content changes.
-
MODE_UNDO_CONTENT_RECURSIVE
public static final CmsResource.CmsResourceUndoMode MODE_UNDO_CONTENT_RECURSIVE
Indicates that the undo method will only recursive undo content changes.
-
MODE_UNDO_MOVE_CONTENT
public static final CmsResource.CmsResourceUndoMode MODE_UNDO_MOVE_CONTENT
Indicates that the undo method will undo move operations and content changes.
-
MODE_UNDO_MOVE_CONTENT_RECURSIVE
public static final CmsResource.CmsResourceUndoMode MODE_UNDO_MOVE_CONTENT_RECURSIVE
Indicates that the undo method will undo move operations and recursive content changes.
-
-
Method Detail
-
getUndoMode
public static CmsResource.CmsResourceUndoMode getUndoMode(boolean move, boolean recursive)
Gets the undo mode for the given parameters.- Parameters:
move- flag for undoing move operationsrecursive- flag for recursive undo- Returns:
- the undo mode
-
valueOf
public static CmsResource.CmsResourceUndoMode valueOf(int mode)
Returns the undo mode object from the old undo mode integer.- Parameters:
mode- the old undo mode integer- Returns:
- the undo mode object
-
includeMove
public CmsResource.CmsResourceUndoMode includeMove()
Returns a mode that includes the move operation with the same semantic as this mode.- Returns:
- a mode that includes the move operation with the same semantic as this mode
-
isRecursive
public boolean isRecursive()
Returnstrueif this undo operation is recursive.- Returns:
trueif this undo operation is recursive
-
isUndoMove
public boolean isUndoMove()
Returnstrueif this undo mode will undo move operations.- Returns:
trueif this undo mode will undo move operations
-
toString
public java.lang.String toString()
- Overrides:
toStringin classA_CmsModeIntEnumeration- See Also:
Object.toString()
-
-