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)
LabelsServicenewAddLabelCommand in interface LabelsServicelabelString - - string of labelsuser - - logged in userentityId - - page or blogpostpublic AddLabelsCommand newAddLabelCommand(String labelString, com.atlassian.user.User user, long entityId, String entityType)
LabelsServicenewAddLabelCommand in interface LabelsServicelabelString - - string of labelsuser - - logged in userentityId - - page or blogpostpublic ValidateLabelsCommand newValidateLabelCommand(String labelString, com.atlassian.user.User user)
LabelsServicenewValidateLabelCommand in interface LabelsServicelabelString - - string of labelsuser - - logged in userpublic RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId)
LabelsServicenewRemoveLabelCommand in interface LabelsServicelabel - - label objectuser - - logged in userentityId - - page or blogpostpublic RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId, String entityType)
newRemoveLabelCommand in interface LabelsServicepublic RemoveLabelCommand newRemoveLabelCommand(String labelIdString, com.atlassian.user.User user, long entityId)
LabelsServicenewRemoveLabelCommand in interface LabelsServicelabelIdString - - label id or stringuser - - logged in userentityId - - page or blogpostpublic RemoveLabelCommand newRemoveLabelCommand(long labelId, com.atlassian.user.User user, long entityId)
LabelsServicenewRemoveLabelCommand in interface LabelsServicelabelId - - label iduser - - logged in userentityId - - page or blogpostCopyright © 2003–2022 Atlassian. All rights reserved.