public class ApiEntityConverter extends Object
| Constructor and Description |
|---|
ApiEntityConverter() |
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.IOExceptionpublic static AttachmentUpload convertAttachmentToUpload(Attachment attachment) throws IOException
IOExceptionpublic static List<Attachment> convertApiContentPageToItAttachments(PageResponse<Content> contents)
public static Content convertItAttachmentToApiContent(Attachment attachment)
Copyright © 2003–2021 Atlassian. All rights reserved.