Class AddLabelAction

  • 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 final class AddLabelAction
    extends ConfluenceActionSupport
    implements Beanable
    Adds a label to a page or blog post Used for JSON requests, a list of the labels added are available under the 'labels' key of the bean.
    See Also:
    Serialized Form
    • Constructor Detail

      • AddLabelAction

        public AddLabelAction()
    • Method Detail

      • execute

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

        public Labelable getEntity()
        Used so that the links are correctly built when JS is disabled
        The entity the label is added to
      • setEntityId

        public void setEntityId​(long entityId)
      • setLabelString

        public void setLabelString​(String labelString)
      • setLabelsService

        public void setLabelsService​(LabelsService labelsService)
      • setEntityType

        public void setEntityType​(String type)
      • getEntityType

        public String getEntityType()