Package com.atlassian.confluence.labels
Class SpaceLabelManagerImpl
java.lang.Object
com.atlassian.confluence.labels.SpaceLabelManagerImpl
- All Implemented Interfaces:
SpaceLabelManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a label to a space.getAvailableTeamLabels
(String spaceKey) Returns the teams labels available for the given spacegetLabelsOnSpace
(Space space) Returns the labels for the given space (excluding team labels)getSuggestedLabelsForSpace
(Space space, com.atlassian.user.User remoteUser) Returns the labels available for the given space (excluding team labels)getTeamLabelsOnSpace
(String spaceKey) Returns the teams labels for the given spacevoid
setLabelManager
(LabelManager labelManager) void
setSpaceManager
(SpaceManager spaceManager)
-
Constructor Details
-
SpaceLabelManagerImpl
public SpaceLabelManagerImpl()
-
-
Method Details
-
getSpaceManager
-
setSpaceManager
-
getLabelManager
-
setLabelManager
-
addLabel
Description copied from interface:SpaceLabelManager
Adds a label to a space.- Specified by:
addLabel
in interfaceSpaceLabelManager
- Parameters:
space
- space to add label tolabelName
- name of the label to be added- Returns:
- the label if it was added to the space, null otherwise
-
getTeamLabelsOnSpace
Description copied from interface:SpaceLabelManager
Returns the teams labels for the given space- Specified by:
getTeamLabelsOnSpace
in interfaceSpaceLabelManager
- Returns:
- teams labels for the given space
-
getAvailableTeamLabels
Description copied from interface:SpaceLabelManager
Returns the teams labels available for the given space- Specified by:
getAvailableTeamLabels
in interfaceSpaceLabelManager
- Returns:
- teams labels available for the given space
-
getLabelsOnSpace
Description copied from interface:SpaceLabelManager
Returns the labels for the given space (excluding team labels)- Specified by:
getLabelsOnSpace
in interfaceSpaceLabelManager
- Returns:
- labels for the given space
-
getSuggestedLabelsForSpace
Description copied from interface:SpaceLabelManager
Returns the labels available for the given space (excluding team labels)- Specified by:
getSuggestedLabelsForSpace
in interfaceSpaceLabelManager
- Parameters:
space
- - given spaceremoteUser
- - logged in user- Returns:
- labels available for the given space
-