Class CmsDirectEditResourceInfo

java.lang.Object
org.opencms.workplace.editors.directedit.CmsDirectEditResourceInfo

public class CmsDirectEditResourceInfo extends Object
Contains information about a resource that is direct edited.

For example, the information in this class allows implementations of a I_CmsDirectEditProvider to render HTML with extended information about the resource displayed on the buttons.

Since:
6.2.3
  • Field Details

  • Constructor Details

    • CmsDirectEditResourceInfo

      Creates a new direct edit resource info container without any specific information about the resource to be direct edited.

      Parameters:
      permissions - the direct edit permissions of the resource
    • CmsDirectEditResourceInfo

      Creates a new direct edit resource info container.

      Parameters:
      permissions - the direct edit permissions of the resource
      resource - the resource that is to be direct edited
      lock - the lock on the direct edit resource
  • Method Details

    • getLock

      public CmsLock getLock()
      Returns the lock on the direct edit resource.

      This may be null in case the result is INACTIVE.

      Returns:
      the lock on the direct edit resource
    • getPermissions

      Returns the direct edit permissions of the resource.

      The result is ensured not to be null.

      Returns:
      the direct edit permissions of the resource
    • getResource

      Returns the resource that is to be direct edited.

      This may be null in case the result is INACTIVE.

      Returns:
      the resource that is to be direct edited