public class DefaultLabelsService extends Object implements LabelsService
| Constructor and Description |
|---|
DefaultLabelsService(LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
| Modifier and Type | Method and Description |
|---|---|
AddLabelsCommand |
newAddLabelCommand(String labelString,
ConfluenceUser 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,
ConfluenceUser user,
long entityId,
String entityType) |
RemoveLabelCommand |
newRemoveLabelCommand(long labelId,
ConfluenceUser user,
long entityId)
Builds a command that takes removes the specified label
Page or Blog Post for the specified user.
|
RemoveLabelCommand |
newRemoveLabelCommand(String labelIdString,
ConfluenceUser user,
long entityId)
Builds a command that takes removes the specified label
Page or Blog Post for the specified user.
|
ValidateLabelsCommand |
newValidateLabelCommand(String labelString,
ConfluenceUser user)
Builds a command that will validate the labels without actually adding them.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewAddLabelCommand, newAddLabelCommand, newRemoveLabelCommand, newRemoveLabelCommand, newRemoveLabelCommand, newRemoveLabelCommand, newValidateLabelCommandpublic DefaultLabelsService(LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
public AddLabelsCommand newAddLabelCommand(String labelString, ConfluenceUser user, long entityId, String entityType)
LabelsServicenewAddLabelCommand in interface LabelsServicelabelString - - string of labelsuser - - logged in userentityId - - page or blogpostentityType - - the type of entity to label one of: CONTENT, SPACE, ATTACHMENTpublic ValidateLabelsCommand newValidateLabelCommand(String labelString, ConfluenceUser user)
LabelsServicenewValidateLabelCommand in interface LabelsServicelabelString - - string of labelsuser - - logged in userpublic RemoveLabelCommand newRemoveLabelCommand(Label label, ConfluenceUser user, long entityId, String entityType)
newRemoveLabelCommand in interface LabelsServicepublic RemoveLabelCommand newRemoveLabelCommand(String labelIdString, ConfluenceUser user, long entityId)
LabelsServicenewRemoveLabelCommand in interface LabelsServicelabelIdString - - label id or stringuser - - logged in userentityId - - page or blogpostpublic RemoveLabelCommand newRemoveLabelCommand(long labelId, ConfluenceUser user, long entityId)
LabelsServicenewRemoveLabelCommand in interface LabelsServicelabelId - - label iduser - - logged in userentityId - - page or blogpostCopyright © 2003–2016 Atlassian. All rights reserved.