Class DefaultLabelsService
- java.lang.Object
-
- com.atlassian.confluence.labels.service.DefaultLabelsService
-
- All Implemented Interfaces:
LabelsService
public class DefaultLabelsService extends Object implements LabelsService
-
-
Constructor Summary
Constructors Constructor Description DefaultLabelsService(LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager, LabelPermissionEnforcer labelPermissionEnforcer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddLabelsCommand
newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId)
Builds a command that takes a string of comma separated labels and adds them to a Page or Blog Post for the specified user.AddLabelsCommand
newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId, String entityType)
Builds a command that takes a string of comma separated labels and adds them to a Page or Blog Post for the specified user.RemoveLabelCommand
newRemoveLabelCommand(long labelId, com.atlassian.user.User user, long entityId)
Builds a command that takes removes the specified label Page or Blog Post for the specified user.RemoveLabelCommand
newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId)
Builds a command that takes removes the specified label Page or Blog Post for the specified user.RemoveLabelCommand
newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId, String entityType)
RemoveLabelCommand
newRemoveLabelCommand(String labelIdString, com.atlassian.user.User user, long entityId)
Builds a command that takes removes the specified label Page or Blog Post for the specified user.ValidateLabelsCommand
newValidateLabelCommand(String labelString, com.atlassian.user.User user)
Builds a command that will validate the labels without actually adding them.
-
-
-
Constructor Detail
-
DefaultLabelsService
public DefaultLabelsService(LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager, LabelPermissionEnforcer labelPermissionEnforcer)
-
-
Method Detail
-
newAddLabelCommand
public AddLabelsCommand newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId)
Description copied from interface:LabelsService
Builds a command that takes a string of comma separated labels and adds them to a Page or Blog Post for the specified user.- Specified by:
newAddLabelCommand
in interfaceLabelsService
- Parameters:
labelString
- - string of labelsuser
- - logged in userentityId
- - page or blogpost- Returns:
- command //TODO deprecate
-
newAddLabelCommand
public AddLabelsCommand newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId, String entityType)
Description copied from interface:LabelsService
Builds a command that takes a string of comma separated labels and adds them to a Page or Blog Post for the specified user.- Specified by:
newAddLabelCommand
in interfaceLabelsService
- Parameters:
labelString
- - string of labelsuser
- - logged in userentityId
- - page or blogpost- Returns:
- command
-
newValidateLabelCommand
public ValidateLabelsCommand newValidateLabelCommand(String labelString, com.atlassian.user.User user)
Description copied from interface:LabelsService
Builds a command that will validate the labels without actually adding them.- Specified by:
newValidateLabelCommand
in interfaceLabelsService
- Parameters:
labelString
- - string of labelsuser
- - logged in user- Returns:
- command
-
newRemoveLabelCommand
public RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId)
Description copied from interface:LabelsService
Builds a command that takes removes the specified label Page or Blog Post for the specified user.- Specified by:
newRemoveLabelCommand
in interfaceLabelsService
- Parameters:
label
- - label objectuser
- - logged in userentityId
- - page or blogpost- Returns:
- command
-
newRemoveLabelCommand
public RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId, String entityType)
- Specified by:
newRemoveLabelCommand
in interfaceLabelsService
-
newRemoveLabelCommand
public RemoveLabelCommand newRemoveLabelCommand(String labelIdString, com.atlassian.user.User user, long entityId)
Description copied from interface:LabelsService
Builds a command that takes removes the specified label Page or Blog Post for the specified user.- Specified by:
newRemoveLabelCommand
in interfaceLabelsService
- Parameters:
labelIdString
- - label id or stringuser
- - logged in userentityId
- - page or blogpost- Returns:
- command
-
newRemoveLabelCommand
public RemoveLabelCommand newRemoveLabelCommand(long labelId, com.atlassian.user.User user, long entityId)
Description copied from interface:LabelsService
Builds a command that takes removes the specified label Page or Blog Post for the specified user.- Specified by:
newRemoveLabelCommand
in interfaceLabelsService
- Parameters:
labelId
- - label iduser
- - logged in userentityId
- - page or blogpost- Returns:
- command
-
-