public class ApiEntityConverter extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<Content,? extends AbstractContentEntity> |
convertApiContentToIt |
Constructor and Description |
---|
ApiEntityConverter() |
public static com.google.common.base.Function<Content,? extends AbstractContentEntity> convertApiContentToIt
public static Page convertApiContentToItPage(com.atlassian.fugue.Option<Content> contentOption)
public static Attachment convertApiContentToItAttachment(Content attachmentContent)
public static Content convertItPageToApiContent(Page page)
ContentRepresentation.STORAGE
format.public static Content convertItPageToApiContent(Page page, ContentRepresentation format)
ContentRepresentation
format.public static Content convertItBlogPostToApiContent(BlogPost blogPost, ContentRepresentation format)
public static Content convertItContentToApiContent(ContentEntity entity)
public static Content convertItCommentToApiContent(Comment comment, ContentRepresentation format)
public static List<AttachmentUpload> convertAttachmentsToUploads(Attachment... attachments) throws IOException
Attachment
objects into AttachmentUpload
versions suitable for sending to the
ContentService
.IOException
public static AttachmentUpload convertAttachmentToUpload(Attachment attachment) throws IOException
IOException
public static List<Attachment> convertApiContentPageToItAttachments(PageResponse<Content> contents)
public static Content convertItAttachmentToApiContent(Attachment attachment)
Copyright © 2003–2018 Atlassian. All rights reserved.