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 LOCKED_FOR_PUBLISHING
          Constant for the project state locked for publishing.
protected static CmsResourceUtil.CmsResourceProjectState LOCKED_IN_CURRENT_PROJECT
          Constant for the project state locked in current project.
protected static CmsResourceUtil.CmsResourceProjectState LOCKED_IN_OTHER_PROJECT
          Constant for the project state locked in other project.
protected static CmsResourceUtil.CmsResourceProjectState UNLOCKED
          Constant for the project state unlocked.
 
Constructor Summary
protected CmsResourceUtil.CmsResourceProjectState(int mode)
          Default constructor.
 
Method Summary
 boolean isLockedForPublishing()
          Checks if this is a LOCKED_FOR_PUBLISHING state.
 boolean isLockedInCurrentProject()
          Checks if this is a LOCKED_IN_CURRENT_PROJECT state.
 boolean isLockedInOtherProject()
          Checks if this is a LOCKED_IN_OTHER_PROJECT state.
 boolean isUnlocked()
          Checks if this is a UNLOCKED 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

LOCKED_FOR_PUBLISHING

protected static final CmsResourceUtil.CmsResourceProjectState LOCKED_FOR_PUBLISHING
Constant for the project state locked for publishing.


LOCKED_IN_CURRENT_PROJECT

protected static final CmsResourceUtil.CmsResourceProjectState LOCKED_IN_CURRENT_PROJECT
Constant for the project state locked in current project.


LOCKED_IN_OTHER_PROJECT

protected static final CmsResourceUtil.CmsResourceProjectState LOCKED_IN_OTHER_PROJECT
Constant for the project state locked in other project.


UNLOCKED

protected static final CmsResourceUtil.CmsResourceProjectState UNLOCKED
Constant for the project state unlocked.

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

isLockedInCurrentProject

public boolean isLockedInCurrentProject()
Checks if this is a LOCKED_IN_CURRENT_PROJECT state.

Returns:
true if this is a LOCKED_IN_CURRENT_PROJECT state

isLockedInOtherProject

public boolean isLockedInOtherProject()
Checks if this is a LOCKED_IN_OTHER_PROJECT state.

Returns:
true if this is a LOCKED_IN_OTHER_PROJECT state

isUnlocked

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

Returns:
true if this is a UNLOCKED state