com.atlassian.confluence.labels.service
Class DefaultLabelsService

java.lang.Object
  extended by com.atlassian.confluence.labels.service.DefaultLabelsService
All Implemented Interfaces:
LabelsService

public class DefaultLabelsService
extends java.lang.Object
implements LabelsService


Constructor Summary
DefaultLabelsService(LabelManager labelManager, PageManager pageManager, PermissionManager permissionManager, SpaceManager spaceManager, AttachmentManager attachmentManager, PageTemplateManager pageTemplateManager)
           
 
Method Summary
 AddLabelsCommand newAddLabelCommand(java.lang.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(java.lang.String labelString, com.atlassian.user.User user, long entityId, java.lang.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, java.lang.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(java.lang.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(java.lang.String labelString, com.atlassian.user.User user)
          Builds a command that will validate the labels without actually adding them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLabelsService

public DefaultLabelsService(LabelManager labelManager,
                            PageManager pageManager,
                            PermissionManager permissionManager,
                            SpaceManager spaceManager,
                            AttachmentManager attachmentManager,
                            PageTemplateManager pageTemplateManager)
Method Detail

newAddLabelCommand

public AddLabelsCommand newAddLabelCommand(java.lang.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 interface LabelsService
Parameters:
labelString - - string of labels
user - - logged in user
entityId - - page or blogpost
Returns:
command //TODO deprecate

newAddLabelCommand

public AddLabelsCommand newAddLabelCommand(java.lang.String labelString,
                                           com.atlassian.user.User user,
                                           long entityId,
                                           java.lang.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 interface LabelsService
Parameters:
labelString - - string of labels
user - - logged in user
entityId - - page or blogpost
Returns:
command

newValidateLabelCommand

public ValidateLabelsCommand newValidateLabelCommand(java.lang.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 interface LabelsService
Parameters:
labelString - - string of labels
user - - 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 interface LabelsService
Parameters:
label - - label object
user - - logged in user
entityId - - page or blogpost
Returns:
command

newRemoveLabelCommand

public RemoveLabelCommand newRemoveLabelCommand(Label label,
                                                com.atlassian.user.User user,
                                                long entityId,
                                                java.lang.String entityType)
Specified by:
newRemoveLabelCommand in interface LabelsService

newRemoveLabelCommand

public RemoveLabelCommand newRemoveLabelCommand(java.lang.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 interface LabelsService
Parameters:
labelIdString - - label id or string
user - - logged in user
entityId - - 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 interface LabelsService
Parameters:
labelId - - label id
user - - logged in user
entityId - - page or blogpost
Returns:
command


Copyright © 2003-2014 Atlassian. All Rights Reserved.