Interface LabelsService
- All Known Implementing Classes:
DefaultLabelsService
public interface LabelsService
Creates label commands
-
Method Summary
Modifier and TypeMethodDescriptionnewAddLabelCommand(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.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.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.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.newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId, String entityType) 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.newValidateLabelCommand(String labelString, com.atlassian.user.User user) Builds a command that will validate the labels without actually adding them.
-
Method Details
-
newAddLabelCommand
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.- Parameters:
labelString- - string of labelsuser- - logged in userentityId- - page or blogpost- Returns:
- command //TODO deprecate
-
newAddLabelCommand
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.- Parameters:
labelString- - string of labelsuser- - logged in userentityId- - page or blogpostString- entityType - the type of entity to label one of: CONTENT, SPACE, ATTACHMENT- Returns:
- command
-
newValidateLabelCommand
Builds a command that will validate the labels without actually adding them.- Parameters:
labelString- - string of labelsuser- - logged in user- Returns:
- command
-
newRemoveLabelCommand
Builds a command that takes removes the specified label Page or Blog Post for the specified user.- Parameters:
label- - label objectuser- - logged in userentityId- - page or blogpost- Returns:
- command
-
newRemoveLabelCommand
RemoveLabelCommand newRemoveLabelCommand(Label label, com.atlassian.user.User user, long entityId, String entityType) -
newRemoveLabelCommand
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.- Parameters:
labelIdString- - label id or stringuser- - logged in userentityId- - page or blogpost- Returns:
- command
-
newRemoveLabelCommand
Builds a command that takes removes the specified label Page or Blog Post for the specified user.- Parameters:
labelId- - label iduser- - logged in userentityId- - page or blogpost- Returns:
- command
-