public class CreateCommentCommandImpl extends AbstractServiceCommand implements CreateCommentCommand
Modifier and Type | Field and Description |
---|---|
protected String |
commentBody |
Constructor and Description |
---|
CreateCommentCommandImpl(PermissionManager permissionManager,
ContentEntityManager contentManager,
CommentManager commentManager,
long contentId,
long parentCommentId,
String commentBody)
Deprecated.
since 5.6. Use
#CreateCommentCommandImpl(com.atlassian.confluence.security.PermissionManager, com.atlassian.confluence.core.ContentEntityManager, com.atlassian.confluence.pages.CommentManager, com.atlassian.confluence.core.ContentPropertyManager, long, long, String, java.util.UUID) |
CreateCommentCommandImpl(PermissionManager permissionManager,
ContentEntityManager contentManager,
CommentManager commentManager,
long contentId,
long parentCommentId,
String commentBody,
NewCommentDeduplicator commentDeduplicator) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeInternal()
Template method for implementations to perform command execution.
|
Comment |
getComment()
Gets the comment that was created.
|
protected ContentEntityObject |
getContent() |
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 commentBody
@Deprecated public CreateCommentCommandImpl(PermissionManager permissionManager, ContentEntityManager contentManager, CommentManager commentManager, long contentId, long parentCommentId, String commentBody)
#CreateCommentCommandImpl(com.atlassian.confluence.security.PermissionManager, com.atlassian.confluence.core.ContentEntityManager, com.atlassian.confluence.pages.CommentManager, com.atlassian.confluence.core.ContentPropertyManager, long, long, String, java.util.UUID)
public CreateCommentCommandImpl(PermissionManager permissionManager, ContentEntityManager contentManager, CommentManager commentManager, long contentId, long parentCommentId, String commentBody, NewCommentDeduplicator commentDeduplicator)
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
protected ContentEntityObject getContent()
public Comment getComment()
CreateCommentCommand
execute()
.getComment
in interface CommentCommand
getComment
in interface CreateCommentCommand
Copyright © 2003–2017 Atlassian. All rights reserved.