public class RemoveLabelCommandImpl extends AbstractLabelsCommand implements RemoveLabelCommand
Constructor and Description |
---|
RemoveLabelCommandImpl(Label label,
com.atlassian.user.User user,
long entityId,
LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
RemoveLabelCommandImpl(Label label,
com.atlassian.user.User user,
long entityId,
String entityType,
LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
RemoveLabelCommandImpl(long labelId,
com.atlassian.user.User user,
long entityId,
LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
RemoveLabelCommandImpl(long labelId,
com.atlassian.user.User user,
long entityId,
String entityType,
LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
RemoveLabelCommandImpl(String labelsString,
com.atlassian.user.User user,
long entityId,
LabelManager labelManager,
PermissionManager permissionManager,
SpaceManager spaceManager,
PageTemplateManager pageTemplateManager,
ContentEntityManager contentEntityManager) |
Modifier and Type | Method and Description |
---|---|
void |
executeInternal()
Template method for implementations to perform command execution.
|
Collection<String> |
getRemovedLabels()
A list of labels removed as strings
|
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 RemoveLabelCommandImpl(String labelsString, com.atlassian.user.User user, long entityId, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
public RemoveLabelCommandImpl(Label label, com.atlassian.user.User user, long entityId, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
public RemoveLabelCommandImpl(Label label, com.atlassian.user.User user, long entityId, String entityType, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
public RemoveLabelCommandImpl(long labelId, com.atlassian.user.User user, long entityId, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
public RemoveLabelCommandImpl(long labelId, com.atlassian.user.User user, long entityId, String entityType, LabelManager labelManager, PermissionManager permissionManager, SpaceManager spaceManager, PageTemplateManager pageTemplateManager, ContentEntityManager contentEntityManager)
protected boolean isAuthorizedInternal()
AbstractServiceCommand
isAuthorizedInternal
in class AbstractServiceCommand
protected void validateInternal(ServiceCommandValidator validator)
AbstractServiceCommand
Implementations can assume that if this method is called, authorization was already successful.
validateInternal
in class AbstractServiceCommand
public void executeInternal()
AbstractServiceCommand
executeInternal
in class AbstractServiceCommand
public Collection<String> getRemovedLabels()
RemoveLabelCommand
getRemovedLabels
in interface RemoveLabelCommand
Copyright © 2003–2016 Atlassian. All rights reserved.