public class DefaultLabelsService extends Object implements LabelsService
Constructor and Description |
---|
DefaultLabelsService(LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager,
LabelPermissionEnforcer labelPermissionEnforcer) |
Modifier and Type | Method and 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(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(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(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.
|
public DefaultLabelsService(LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager, LabelPermissionEnforcer labelPermissionEnforcer)
public AddLabelsCommand newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId)
LabelsService
newAddLabelCommand
in interface LabelsService
labelString
- - string of labelsuser
- - logged in userentityId
- - page or blogpostpublic AddLabelsCommand newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId, String entityType)
LabelsService
newAddLabelCommand
in interface LabelsService
labelString
- - string of labelsuser
- - logged in userentityId
- - page or blogpostpublic ValidateLabelsCommand newValidateLabelCommand(String labelString, com.atlassian.user.User user)
LabelsService
newValidateLabelCommand
in interface LabelsService
labelString
- - string of labelsuser
- - logged in userpublic RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId)
LabelsService
newRemoveLabelCommand
in interface LabelsService
label
- - label objectuser
- - logged in userentityId
- - page or blogpostpublic RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId, String entityType)
newRemoveLabelCommand
in interface LabelsService
public RemoveLabelCommand newRemoveLabelCommand(String labelIdString, com.atlassian.user.User user, long entityId)
LabelsService
newRemoveLabelCommand
in interface LabelsService
labelIdString
- - label id or stringuser
- - logged in userentityId
- - page or blogpostpublic RemoveLabelCommand newRemoveLabelCommand(long labelId, com.atlassian.user.User user, long entityId)
LabelsService
newRemoveLabelCommand
in interface LabelsService
labelId
- - label iduser
- - logged in userentityId
- - page or blogpostCopyright © 2003–2020 Atlassian. All rights reserved.