com.atlassian.confluence.labels
Class SpaceLabelManagerImpl

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

public class SpaceLabelManagerImpl
extends java.lang.Object
implements SpaceLabelManager


Constructor Summary
SpaceLabelManagerImpl()
           
 
Method Summary
 Label addLabel(Space space, java.lang.String labelName)
          Adds a label to a space.
 java.util.List getAvailableTeamLabels(java.lang.String spaceKey)
          Returns the teams labels available for the given space
 LabelManager getLabelManager()
           
 java.util.List getLabelsOnSpace(Space space)
          Returns the labels for the given space (excluding team labels)
 SpaceManager getSpaceManager()
           
 java.util.List getSuggestedLabelsForSpace(Space space, com.atlassian.user.User remoteUser)
          Returns the labels available for the given space (excluding team labels)
 java.util.List getTeamLabelsOnSpace(java.lang.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,
                      java.lang.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 java.util.List getTeamLabelsOnSpace(java.lang.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 java.util.List getAvailableTeamLabels(java.lang.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 java.util.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 java.util.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-2014 Atlassian. All Rights Reserved.