Class RemoveLabelAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.plugins.labels.actions.RemoveLabelAction
All Implemented Interfaces:
Beanable, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class RemoveLabelAction extends ConfluenceActionSupport implements Beanable
Removes labels from the page or blog post. Used for JSON requests. List of labels (as strings) removed is available under the 'labels' key of the bean.
See Also:
  • Constructor Details

    • RemoveLabelAction

      public RemoveLabelAction()
  • Method Details

    • getBean

      public Map<String,Collection<String>> getBean()
      Specified by:
      getBean in interface Beanable
    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
    • isPermitted

      public boolean isPermitted()
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • getEntity

      public Labelable getEntity()
      Used so that the links are correctly built when JS is disabled
      Returns:
      The entity the label is removed from
    • getEntityId

      public long getEntityId()
    • setEntityId

      public void setEntityId(long entityId)
    • getLabelId

      public long getLabelId()
    • setLabelId

      public void setLabelId(long labelId)
    • getLabelString

      public String getLabelString()
    • setLabelString

      public void setLabelString(String labelString)
    • setLabelsService

      public void setLabelsService(LabelsService labelsService)