public class AddLabelsCommandImpl extends AbstractLabelsCommand implements AddLabelsCommand
labelPermissionEnforcer| 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,
LabelPermissionEnforcer labelPermissionEnforcer) |
| 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, getUserexecute, getCurrentUser, getValidationErrors, isAuthorized, isValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityexecute, getValidationErrors, isAuthorized, isValidpublic AddLabelsCommandImpl(String labelsString, com.atlassian.user.User user, long entityId, String entityType, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager, LabelPermissionEnforcer labelPermissionEnforcer)
protected void validateInternal(ServiceCommandValidator validator)
AbstractServiceCommand
Implementations can assume that if this method is called, authorization was already successful.
validateInternal in class AbstractServiceCommandprotected boolean isAuthorizedInternal()
AbstractServiceCommandisAuthorizedInternal in class AbstractServiceCommandprotected void executeInternal()
AbstractServiceCommandexecuteInternal in class AbstractServiceCommandpublic Collection<Label> getAddedLabels()
getAddedLabels in interface AddLabelsCommandCopyright © 2003–2021 Atlassian. All rights reserved.