public class AddLabelsCommandImpl extends AbstractLabelsCommand implements AddLabelsCommand
Constructor and Description |
---|
AddLabelsCommandImpl(String labelsString,
com.atlassian.user.User user,
long entityId,
String entityType,
LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeInternal()
Template method for implementations to perform command execution.
|
Collection<Label> |
getAddedLabels()
Returns a list of labels that were added.
|
protected boolean |
isAuthorizedInternal()
Template method for implementations to perform authorization.
|
protected void |
validateInternal(ServiceCommandValidator validator)
Template method for implementations to perform validation.
|
getEntity, getEntityId, getUser
execute, getCurrentUser, getValidationErrors, isAuthorized, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity
execute, getValidationErrors, isAuthorized, isValid
public AddLabelsCommandImpl(String labelsString, com.atlassian.user.User user, long entityId, String entityType, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
protected void validateInternal(ServiceCommandValidator validator)
AbstractServiceCommand
Implementations can assume that if this method is called, authorization was already successful.
validateInternal
in class AbstractServiceCommand
protected boolean isAuthorizedInternal()
AbstractServiceCommand
isAuthorizedInternal
in class AbstractServiceCommand
protected void executeInternal()
AbstractServiceCommand
executeInternal
in class AbstractServiceCommand
public Collection<Label> getAddedLabels()
getAddedLabels
in interface AddLabelsCommand
Copyright © 2003–2018 Atlassian. All rights reserved.