public class DeleteCommentCommandImpl extends AbstractServiceCommand implements DeleteCommentCommand
| Constructor and Description |
|---|
DeleteCommentCommandImpl(PermissionManager permissionManager,
CommentManager commentManager,
long commentId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeInternal()
Template method for implementations to perform command execution.
|
Comment |
getComment()
Gets the comment that was removed.
|
protected boolean |
isAuthorizedInternal()
Template method for implementations to perform authorization.
|
protected void |
validateInternal(ServiceCommandValidator validator)
Template method for implementations to perform validation.
|
execute, getCurrentUser, getValidationErrors, isAuthorized, isValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getValidationErrors, isAuthorized, isValidpublic DeleteCommentCommandImpl(PermissionManager permissionManager, CommentManager commentManager, long commentId)
protected boolean isAuthorizedInternal()
AbstractServiceCommandisAuthorizedInternal in class AbstractServiceCommandprotected void validateInternal(ServiceCommandValidator validator)
AbstractServiceCommand
Implementations can assume that if this method is called, authorization was already successful.
validateInternal in class AbstractServiceCommandprotected void executeInternal()
AbstractServiceCommandexecuteInternal in class AbstractServiceCommandpublic Comment getComment()
DeleteCommentCommandexecute() completes
successfully is undefined.getComment in interface CommentCommandgetComment in interface DeleteCommentCommandCopyright © 2003–2021 Atlassian. All rights reserved.