Class 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:
    Serialized Form
    • Constructor Detail

      • RemoveLabelAction

        public RemoveLabelAction()
    • Method Detail

      • execute

        public String execute()
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
      • 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)