@Internal
public interface CommentExtensionsSupport
Modifier and Type | Field and Description |
---|---|
static CommentExtensionsSupport |
NULL_OBJECT |
Modifier and Type | Method and Description |
---|---|
default Map<String,Optional<String>> |
expansions()
Get the map of expandable extension properties provided by this CommentExtensionSupport
|
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
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.
|
static final CommentExtensionsSupport NULL_OBJECT
Iterable<ContentType> getCommentContainerType()
This is needed so that we can provide different handling for inline comments when they are on Files compared to Pages and Blogs
Map<ContentId,Map<String,Object>> getExtensions(Iterable<Comment> comments, Expansions expansions)
comments
- the comments to get the additional extension properties forexpansions
- the expansions that have been requested@Deprecated Map<String,com.atlassian.fugue.Option<String>> getExpansions()
expansions()
default Map<String,Optional<String>> expansions()
ValidationResult validateExtensionsForCreate(Map<String,Object> extensions, SimpleValidationResult.Builder validationResultBuilder)
extensions
- validationResultBuilder
- ValidationResult validateExtensionsForUpdate(Comment comment, Map<String,Object> extensions, SimpleValidationResult.Builder validationResultBuilder)
extensions
- validationResultBuilder
- void updateExtensionsOnEntity(Comment comment, Map<String,Object> extensions)
comment
- - the newly created comment that needs properties set on itextensions
- - the extension properties to setCopyright © 2003–2020 Atlassian. All rights reserved.