public class NullCommentExtensionsSupport extends Object implements CommentExtensionsSupport
NULL_OBJECT| Constructor and Description |
|---|
NullCommentExtensionsSupport() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ContentType> |
getCommentContainerType()
Get the comment container ContentType that we provide support for.
|
Map<String,com.atlassian.fugue.Option<String>> |
getExpansions()
Deprecated.
since 7.0.1. Use
CommentExtensionsSupport.expansions() |
Map<ContentId,Map<String,Object>> |
getExtensions(Iterable<Comment> comments,
Expansions expansions)
Get the map of extension properties for each of the comment entities
|
void |
updateExtensionsOnEntity(Comment comment,
Map<String,Object> extensions)
A creation hook, extension properties should be set on the passed in comment
object.
|
ValidationResult |
validateExtensionsForCreate(Map<String,Object> extensions,
SimpleValidationResult.Builder validationResultBuilder)
Validation hook for create operations.
|
ValidationResult |
validateExtensionsForUpdate(Comment comment,
Map<String,Object> extensions,
SimpleValidationResult.Builder validationResultBuilder)
Validation hook for update operations.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpansionspublic Iterable<ContentType> getCommentContainerType()
CommentExtensionsSupportThis is needed so that we can provide different handling for inline comments when they are on Files compared to Pages and Blogs
getCommentContainerType in interface CommentExtensionsSupportpublic Map<ContentId,Map<String,Object>> getExtensions(Iterable<Comment> comments, Expansions expansions)
CommentExtensionsSupportgetExtensions in interface CommentExtensionsSupportcomments - the comments to get the additional extension properties forexpansions - the expansions that have been requested@Deprecated public Map<String,com.atlassian.fugue.Option<String>> getExpansions()
CommentExtensionsSupport.expansions()CommentExtensionsSupportgetExpansions in interface CommentExtensionsSupportpublic ValidationResult validateExtensionsForCreate(Map<String,Object> extensions, SimpleValidationResult.Builder validationResultBuilder)
CommentExtensionsSupportvalidateExtensionsForCreate in interface CommentExtensionsSupportpublic ValidationResult validateExtensionsForUpdate(Comment comment, Map<String,Object> extensions, SimpleValidationResult.Builder validationResultBuilder)
CommentExtensionsSupportvalidateExtensionsForUpdate in interface CommentExtensionsSupportpublic void updateExtensionsOnEntity(Comment comment, Map<String,Object> extensions)
CommentExtensionsSupportupdateExtensionsOnEntity in interface CommentExtensionsSupportcomment - - the newly created comment that needs properties set on itextensions - - the extension properties to setCopyright © 2003–2023 Atlassian. All rights reserved.