|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object test.plugin.apiavailable.DummyCommentExtensionSupport
public class DummyCommentExtensionSupport
Used by the ContentConvertibleRestAcceptanceTest
Field Summary | |
---|---|
static String |
EXTENSION_KEY_1
|
Fields inherited from interface com.atlassian.confluence.content.apisupport.CommentExtensionsSupport |
---|
NULL_OBJECT |
Constructor Summary | |
---|---|
DummyCommentExtensionSupport()
|
Method Summary | |
---|---|
Iterable<ContentType> |
getCommentContainerType()
Get the comment container ContentType that we provide support for. |
Map<String,com.atlassian.fugue.Option<String>> |
getExpansions()
Get the map of expandable extension properties provided by this CommentExtensionSupport |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXTENSION_KEY_1
Constructor Detail |
---|
public DummyCommentExtensionSupport()
Method Detail |
---|
public Iterable<ContentType> getCommentContainerType()
CommentExtensionsSupport
getCommentContainerType
in interface CommentExtensionsSupport
public Map<ContentId,Map<String,Object>> getExtensions(Iterable<Comment> comments, Expansions expansions)
CommentExtensionsSupport
getExtensions
in interface CommentExtensionsSupport
comments
- the comments to get the additional extension properties forexpansions
- the expansions that have been requested
public Map<String,com.atlassian.fugue.Option<String>> getExpansions()
CommentExtensionsSupport
getExpansions
in interface CommentExtensionsSupport
public ValidationResult validateExtensionsForCreate(Map<String,Object> extensions, SimpleValidationResult.Builder validationResultBuilder)
CommentExtensionsSupport
validateExtensionsForCreate
in interface CommentExtensionsSupport
public ValidationResult validateExtensionsForUpdate(Comment comment, Map<String,Object> extensions, SimpleValidationResult.Builder validationResultBuilder)
CommentExtensionsSupport
validateExtensionsForUpdate
in interface CommentExtensionsSupport
public void updateExtensionsOnEntity(Comment comment, Map<String,Object> extensions)
CommentExtensionsSupport
updateExtensionsOnEntity
in interface CommentExtensionsSupport
comment
- - the newly created comment that needs properties set on itextensions
- - the extension properties to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |