org.opencms.workplace.explorer
Class CmsResourceUtil.CmsResourceProjectState

java.lang.Object
  extended by org.opencms.util.A_CmsModeIntEnumeration
      extended by 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
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
protected CmsResourceUtil.CmsResourceProjectState(int mode)
          Default constructor.
 
Method Summary
 boolean isLockedForPublishing()
          Checks if this is a LOCKED_FOR_PUBLISHING state.
 boolean isModifiedInCurrentProject()
          Checks if this is a MODIFIED_IN_CURRENT_PROJECT state.
 boolean isModifiedInOtherProject()
          Checks if this is a MODIFIED_IN_OTHER_PROJECT state.
 boolean isUnlocked()
          Checks if this is a CLEAN state.
 
Methods inherited from class org.opencms.util.A_CmsModeIntEnumeration
equals, getMode, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

CmsResourceUtil.CmsResourceProjectState

protected CmsResourceUtil.CmsResourceProjectState(int mode)
Default constructor.

Parameters:
mode - the mode descriptor
Method Detail

isLockedForPublishing

public boolean isLockedForPublishing()
Checks if this is a LOCKED_FOR_PUBLISHING state.

Returns:
true if this is a LOCKED_FOR_PUBLISHING state

isModifiedInCurrentProject

public boolean isModifiedInCurrentProject()
Checks if this is a MODIFIED_IN_CURRENT_PROJECT state.

Returns:
true if this is a MODIFIED_IN_CURRENT_PROJECT state

isModifiedInOtherProject

public boolean isModifiedInOtherProject()
Checks if this is a MODIFIED_IN_OTHER_PROJECT state.

Returns:
true if this is a MODIFIED_IN_OTHER_PROJECT state

isUnlocked

public boolean isUnlocked()
Checks if this is a CLEAN state.

Returns:
true if this is a CLEAN state