org.opencms.workplace.editors.directedit
Class CmsDirectEditPermissions

java.lang.Object
  extended byorg.opencms.workplace.editors.directedit.CmsDirectEditPermissions

public final class CmsDirectEditPermissions
extends java.lang.Object

Constants to indicate the direct edit permissions of a user for a VFS resource, used to describe if and how to show the direct edit buttons for the resource.

Since:
6.2.3
Version:
$Revision: 1.5 $
Author:
Alexander Kandzior

Field Summary
static CmsDirectEditPermissions DISABLED
          Describes the "disabled" permission.
static CmsDirectEditPermissions ENABLED
          Describes the "enabled" permission.
static CmsDirectEditPermissions INACTIVE
          Describes the "inactive" permission.
static java.lang.String VALUE_DISABLED
          String constant for DISABLED.
static java.lang.String VALUE_ENABLED
          String constant for ENABLED.
static java.lang.String VALUE_INACTIVE
          String constant for INACTIVE.
 
Method Summary
 int getPermission()
          Returns the direct edit permission int value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISABLED

public static final CmsDirectEditPermissions DISABLED
Describes the "disabled" permission.

User has general permissions to direct edit a resource, but this is currently not possible because for example another user has locked the resource.

Direct edit buttons are displayed, but "grayed out".


ENABLED

public static final CmsDirectEditPermissions ENABLED
Describes the "enabled" permission.

User has permissions to direct edit a resource, the resource is also available for direct edit.

Direct edit buttons are displayed and active.


INACTIVE

public static final CmsDirectEditPermissions INACTIVE
Describes the "inactive" permission.

User has no permissions to direct edit a resource. This may be because of write permissions, or because the resource is not part of the current project, or for other reasons.

Direct edit buttons are not displayed at all.


VALUE_DISABLED

public static final java.lang.String VALUE_DISABLED
String constant for DISABLED.

See Also:
Constant Field Values

VALUE_ENABLED

public static final java.lang.String VALUE_ENABLED
String constant for ENABLED.

See Also:
Constant Field Values

VALUE_INACTIVE

public static final java.lang.String VALUE_INACTIVE
String constant for INACTIVE.

See Also:
Constant Field Values
Method Detail

getPermission

public int getPermission()
Returns the direct edit permission int value.

The possible value are:

Returns:
the direct edit permission int value

toString

public java.lang.String toString()
See Also:
Object.toString()