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:
java.io.Serializable
- Enclosing class:
- CmsResourceUtil
public static class CmsResourceUtil.CmsResourceProjectState extends A_CmsModeIntEnumeration
Enumeration class for defining the resource project state.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static CmsResourceUtil.CmsResourceProjectState
CLEAN
Constant for the project state unlocked.protected static CmsResourceUtil.CmsResourceProjectState
LOCKED_FOR_PUBLISHING
Constant for the project state locked for publishing.protected static CmsResourceUtil.CmsResourceProjectState
MODIFIED_IN_CURRENT_PROJECT
Constant for the project state locked in current project.protected static CmsResourceUtil.CmsResourceProjectState
MODIFIED_IN_OTHER_PROJECT
Constant for the project state locked in other project.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsResourceProjectState(int mode)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLockedForPublishing()
Checks if this is aLOCKED_FOR_PUBLISHING
state.boolean
isModifiedInCurrentProject()
Checks if this is aMODIFIED_IN_CURRENT_PROJECT
state.boolean
isModifiedInOtherProject()
Checks if this is aMODIFIED_IN_OTHER_PROJECT
state.boolean
isUnlocked()
Checks if this is aCLEAN
state.-
Methods inherited from class org.opencms.util.A_CmsModeIntEnumeration
equals, getMode, hashCode, toString
-
-
-
-
Field Detail
-
CLEAN
protected static final CmsResourceUtil.CmsResourceProjectState CLEAN
Constant for the project state unlocked.
-
LOCKED_FOR_PUBLISHING
protected static final CmsResourceUtil.CmsResourceProjectState LOCKED_FOR_PUBLISHING
Constant for the project state locked for publishing.
-
MODIFIED_IN_CURRENT_PROJECT
protected static final CmsResourceUtil.CmsResourceProjectState MODIFIED_IN_CURRENT_PROJECT
Constant for the project state locked in current project.
-
MODIFIED_IN_OTHER_PROJECT
protected static final CmsResourceUtil.CmsResourceProjectState MODIFIED_IN_OTHER_PROJECT
Constant for the project state locked in other project.
-
-
Constructor Detail
-
CmsResourceProjectState
protected CmsResourceProjectState(int mode)
Default constructor.- Parameters:
mode
- the mode descriptor
-
-
Method Detail
-
isLockedForPublishing
public boolean isLockedForPublishing()
Checks if this is aLOCKED_FOR_PUBLISHING
state.- Returns:
true
if this is aLOCKED_FOR_PUBLISHING
state
-
isModifiedInCurrentProject
public boolean isModifiedInCurrentProject()
Checks if this is aMODIFIED_IN_CURRENT_PROJECT
state.- Returns:
true
if this is aMODIFIED_IN_CURRENT_PROJECT
state
-
isModifiedInOtherProject
public boolean isModifiedInOtherProject()
Checks if this is aMODIFIED_IN_OTHER_PROJECT
state.- Returns:
true
if this is aMODIFIED_IN_OTHER_PROJECT
state
-
isUnlocked
public boolean isUnlocked()
Checks if this is aCLEAN
state.- Returns:
true
if this is aCLEAN
state
-
-