Class EditSpaceLabelAction

All Implemented Interfaces:
Evented<SpaceLabelsViewEvent>, WebInterface, SpaceAware, SpaceLabelAware, Spaced, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable
Direct Known Subclasses:
AddLabelToSpaceAction

public class EditSpaceLabelAction extends AbstractSpaceAdminAction implements SpaceLabelAware, Evented<SpaceLabelsViewEvent>
See Also:
  • Constructor Details

    • EditSpaceLabelAction

      public EditSpaceLabelAction()
  • Method Details

    • getSpaceLabelManager

      public SpaceLabelManager getSpaceLabelManager()
    • setSpaceLabelManager

      public void setSpaceLabelManager(SpaceLabelManager spaceLabelManager)
    • getTeamLabelsOnThisSpace

      public List getTeamLabelsOnThisSpace()
      Description copied from interface: SpaceLabelAware
      Returns the teams labels for the space for rendering in the UI
      Specified by:
      getTeamLabelsOnThisSpace in interface SpaceLabelAware
      Returns:
      teams labels for the space
    • getLabelsOnThisSpace

      public List getLabelsOnThisSpace()
      Description copied from interface: SpaceLabelAware
      Returns the labels for the space (excluding team labels) for rendering in the UI
      Specified by:
      getLabelsOnThisSpace in interface SpaceLabelAware
      Returns:
      teams labels for the space
    • getAvailableTeamLabels

      public List getAvailableTeamLabels()
    • getSuggestedLabelsForSpace

      public List getSuggestedLabelsForSpace() throws Exception
      Throws:
      Exception
    • addLabel

      public Label addLabel(Space space, String labelName)
    • getEventToPublish

      public SpaceLabelsViewEvent getEventToPublish(String result)
      Description copied from interface: Evented
      Gets the event to publish.
      Specified by:
      getEventToPublish in interface Evented<SpaceLabelsViewEvent>
      Parameters:
      result - the result of the action executing.
      Returns:
      the event. Can be null, in which case no event will be published.