public class EditCommentCommandImpl extends AbstractServiceCommand implements EditCommentCommand
Modifier and Type | Field and Description |
---|---|
protected String |
newCommentBody |
Constructor and Description |
---|
EditCommentCommandImpl(PermissionManager permissionManager,
CommentManager commentManager,
long commentId,
String newCommentBody) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeInternal()
Template method for implementations to perform command execution.
|
Comment |
getComment()
Gets the comment that was edited.
|
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, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getValidationErrors, isAuthorized, isValid
protected String newCommentBody
public EditCommentCommandImpl(PermissionManager permissionManager, CommentManager commentManager, long commentId, String newCommentBody)
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 Comment getComment()
EditCommentCommand
execute()
has
been called successfully is undefined.getComment
in interface CommentCommand
getComment
in interface EditCommentCommand
Copyright © 2003–2018 Atlassian. All rights reserved.