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 Object
implements LabelsService


Constructor Summary
DefaultLabelsService(LabelManager labelManager, PageManager pageManager, PermissionManager permissionManager, SpaceManager spaceManager)
           
 
Method Summary
 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.
 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(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.
 
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(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

newValidateLabelCommand

public ValidateLabelsCommand newValidateLabelCommand(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(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.