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)
           
 
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.
 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(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.
 
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)
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

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(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-2011 Atlassian. All Rights Reserved.