Package org.opencms.workplace.explorer
Class CmsResourceUtil.CmsResourceProjectState
java.lang.Object
org.opencms.util.A_CmsModeIntEnumeration
org.opencms.workplace.explorer.CmsResourceUtil.CmsResourceProjectState
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CmsResourceUtil
Enumeration class for defining the resource project state.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final CmsResourceUtil.CmsResourceProjectState
Constant for the project state unlocked.protected static final CmsResourceUtil.CmsResourceProjectState
Constant for the project state locked for publishing.protected static final CmsResourceUtil.CmsResourceProjectState
Constant for the project state locked in current project.protected static final CmsResourceUtil.CmsResourceProjectState
Constant for the project state locked in other project. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this is aLOCKED_FOR_PUBLISHING
state.boolean
Checks if this is aMODIFIED_IN_CURRENT_PROJECT
state.boolean
Checks if this is aMODIFIED_IN_OTHER_PROJECT
state.boolean
Checks if this is aCLEAN
state.Methods inherited from class org.opencms.util.A_CmsModeIntEnumeration
equals, getMode, hashCode, toString
-
Field Details
-
CLEAN
Constant for the project state unlocked. -
LOCKED_FOR_PUBLISHING
Constant for the project state locked for publishing. -
MODIFIED_IN_CURRENT_PROJECT
Constant for the project state locked in current project. -
MODIFIED_IN_OTHER_PROJECT
Constant for the project state locked in other project.
-
-
Constructor Details
-
CmsResourceProjectState
Default constructor.- Parameters:
mode
- the mode descriptor
-
-
Method Details
-
isLockedForPublishing
Checks if this is aLOCKED_FOR_PUBLISHING
state.- Returns:
true
if this is aLOCKED_FOR_PUBLISHING
state
-
isModifiedInCurrentProject
Checks if this is aMODIFIED_IN_CURRENT_PROJECT
state.- Returns:
true
if this is aMODIFIED_IN_CURRENT_PROJECT
state
-
isModifiedInOtherProject
Checks if this is aMODIFIED_IN_OTHER_PROJECT
state.- Returns:
true
if this is aMODIFIED_IN_OTHER_PROJECT
state
-
isUnlocked
Checks if this is aCLEAN
state.- Returns:
true
if this is aCLEAN
state
-