Class CmsDirectEditParams

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

public class CmsDirectEditParams extends Object
A parameter set to start a direct edit element, for internal use only.

Since:
6.2.3
  • Field Details

  • Constructor Details

    • CmsDirectEditParams

      public CmsDirectEditParams(String linkForClose)
      Creates a new direct edit parameter set usually used for including the head HTML.

      Parameters:
      linkForClose - the link to the current page useed when closing an editor or dialog
    • CmsDirectEditParams

      public CmsDirectEditParams(String resourceName, CmsDirectEditButtonSelection options, CmsDirectEditMode mode, String linkForNew)
      Creates a new direct edit parameter set usually used within a XML content load loop for a xmlcontent.

      Parameters:
      resourceName - the edit target VFS resource name
      options - the direct edit options to display buttons for
      linkForNew - the link to create a new VFS resource of the edited type
      mode - the direct edit mode to use
    • CmsDirectEditParams

      public CmsDirectEditParams(String resourceName, String element)
      Creates a new direct edit parameter set usually used within a cms:include call for a xmlpage.

      Parameters:
      resourceName - the edit target VFS resource name
      element - the selected element in the target content
  • Method Details

    • getButtonSelection

      Returns the direct edit buttons selection to display.

      Returns:
      the direct edit buttons selection to display
    • getCollectorName

      Returns the collectorName.

      Returns:
      the collectorName
    • getCollectorParams

      Returns the collectorParams.

      Returns:
      the collectorParams
    • getContainerElement

      Gets the container element (used for display formatters).

      Returns:
      the container element
    • getElement

      public String getElement()
      Returns the selected element in the target content.

      Returns:
      the selected element in the target content
    • getId

      public String getId()
      Gets the ID for the contentload tag instance.

      Returns:
      the id
    • getLinkForClose

      Returns the link to the current page useed when closing an editor or dialog.

      Returns:
      the link to the current page useed when closing an editor or dialog
    • getLinkForDelete

      Returns the link to delete the selected VFS resource.

      Returns:
      the link to delete the selected VFS resource
    • getLinkForEdit

      Returns the link to edit the selected VFS resource (element).

      Returns:
      the link to edit the selected VFS resource (element)
    • getLinkForNew

      Returns the link to create a new VFS resource of the edited type.

      Returns:
      the link to create a new VFS resource of the edited type
    • getMode

      Returns the direct edit mode.

      Returns:
      the direct edit mode
    • getPostCreateHandler

      Gets the post-create handler class name.

      Returns:
      the post-create handler class name
    • getResourceName

      Returns the edit target VFS resource name.

      Returns:
      the edit target VFS resource name
    • getUploadFolder

      Gets the upload folder.
      Returns:
      the upload folder
    • setCollectorName

      public void setCollectorName(String collectorName)
      Sets the collectorName.

      Parameters:
      collectorName - the collectorName to set
    • setCollectorParams

      public void setCollectorParams(String collectorParams)
      Sets the collectorParams.

      Parameters:
      collectorParams - the collectorParams to set
    • setContainerElement

      Sets the container element bean.

      Parameters:
      element - the container element
    • setId

      public void setId(String id)
      Sets the ID for the contentload tag instance.

      Parameters:
      id - the id to set
    • setPostCreateHandler

      public void setPostCreateHandler(String postCreateHandler)
      Sets the post-create handler class name.

      Parameters:
      postCreateHandler - the post-create handler class name
    • setUploadFolder

      public void setUploadFolder(String uploadFolder)
      Sets the upload folder.
      Parameters:
      uploadFolder - the upload folder