com.atlassian.confluence.labels
Class SpaceLabelManagerImpl

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

public class SpaceLabelManagerImpl
extends Object
implements SpaceLabelManager


Constructor Summary
SpaceLabelManagerImpl()
           
 
Method Summary
 Label addLabel(Space space, String labelName)
          Adds a label to a space.
 List getAvailableTeamLabels(String spaceKey)
          Returns the teams labels available for the given space
 LabelManager getLabelManager()
           
 List getLabelsOnSpace(Space space)
          Returns the labels for the given space (excluding team labels)
 SpaceManager getSpaceManager()
           
 List getSuggestedLabelsForSpace(Space space, com.atlassian.user.User remoteUser)
          Returns the labels available for the given space (excluding team labels)
 List getTeamLabelsOnSpace(String spaceKey)
          Returns the teams labels for the given space
 void setLabelManager(LabelManager labelManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceLabelManagerImpl

public SpaceLabelManagerImpl()
Method Detail

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 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 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 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 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


Copyright © 2003–2015 Atlassian. All rights reserved.