Class SpaceLabelManagerImpl

java.lang.Object
com.atlassian.confluence.labels.SpaceLabelManagerImpl
All Implemented Interfaces:
SpaceLabelManager

public class SpaceLabelManagerImpl extends Object implements SpaceLabelManager
  • Constructor Details

    • SpaceLabelManagerImpl

      public SpaceLabelManagerImpl()
  • Method Details

    • getSpaceManager

      public SpaceManager getSpaceManager()
    • setSpaceManager

      public void setSpaceManager(SpaceManager spaceManager)
    • getLabelManager

      public LabelManager getLabelManager()
    • setLabelManager

      public void setLabelManager(LabelManager labelManager)
    • addLabel

      public Label addLabel(Space space, String labelName)
      Description copied from interface: SpaceLabelManager
      Adds a label to a space.
      Specified by:
      addLabel in interface SpaceLabelManager
      Parameters:
      space - space to add label to
      labelName - name of the label to be added
      Returns:
      the label if it was added to the space, null otherwise
    • getTeamLabelsOnSpace

      public List<Label> getTeamLabelsOnSpace(String spaceKey)
      Description copied from interface: SpaceLabelManager
      Returns the teams labels for the given space
      Specified by:
      getTeamLabelsOnSpace in interface SpaceLabelManager
      Returns:
      teams labels for the given space
    • getAvailableTeamLabels

      public List<Label> getAvailableTeamLabels(String spaceKey)
      Description copied from interface: SpaceLabelManager
      Returns the teams labels available for the given space
      Specified by:
      getAvailableTeamLabels in interface SpaceLabelManager
      Returns:
      teams labels available for the given space
    • getLabelsOnSpace

      public List<Label> getLabelsOnSpace(Space space)
      Description copied from interface: SpaceLabelManager
      Returns the labels for the given space (excluding team labels)
      Specified by:
      getLabelsOnSpace in interface SpaceLabelManager
      Returns:
      labels for the given space
    • getSuggestedLabelsForSpace

      public List<Label> getSuggestedLabelsForSpace(Space space, com.atlassian.user.User remoteUser)
      Description copied from interface: SpaceLabelManager
      Returns the labels available for the given space (excluding team labels)
      Specified by:
      getSuggestedLabelsForSpace in interface SpaceLabelManager
      Parameters:
      space - - given space
      remoteUser - - logged in user
      Returns:
      labels available for the given space