public class ConfluenceSession extends Object
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.confluence.api.model.pagination.PageResponse<com.atlassian.confluence.api.model.content.Content> |
addAttachment(long pageId,
VirtualFile file,
String contentType,
String comment)
Attach the file
|
boolean |
addLabels(long id,
String labels)
Add's labels to content, removing duplicates.
|
com.atlassian.confluence.api.model.content.Content |
createContent(com.atlassian.confluence.api.model.content.Content content) |
List<com.atlassian.confluence.api.model.content.Content> |
getAttachments(long pageId)
Get all attachments for a page
|
Optional<com.atlassian.confluence.api.model.content.Content> |
getContent(String contentId)
Get a PageContent by Page key
|
Optional<com.atlassian.confluence.api.model.content.Content> |
getContent(String spaceKey,
String pageTitle,
boolean expanded)
Get a Content by spaceKey and Page title
|
com.atlassian.confluence.api.model.people.Person |
getCurrentUser() |
com.atlassian.confluence.api.model.pagination.PageResponse<com.atlassian.confluence.api.model.content.Label> |
getLabels(long id) |
com.atlassian.fugue.Option<com.atlassian.confluence.api.model.content.Space> |
getSpace(String spaceKey)
Get a Space by key name
|
void |
removeAttachment(com.atlassian.confluence.api.model.content.Content attachment)
Remove attachment
|
static com.atlassian.confluence.api.model.Expansion[] |
toExpansionsArray(String... expansions) |
com.atlassian.confluence.api.model.content.Content |
updateContent(com.atlassian.confluence.api.model.content.Content content) |
public com.atlassian.fugue.Option<com.atlassian.confluence.api.model.content.Space> getSpace(String spaceKey) throws com.atlassian.confluence.api.service.exceptions.ServiceException
spaceKey - Promise instancecom.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic Optional<com.atlassian.confluence.api.model.content.Content> getContent(String contentId) throws com.atlassian.confluence.api.service.exceptions.ServiceException
contentId - Optional instancecom.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic Optional<com.atlassian.confluence.api.model.content.Content> getContent(String spaceKey, String pageTitle, boolean expanded) throws com.atlassian.confluence.api.service.exceptions.ServiceException
spaceKey - pageTitle - Optional instancecom.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic com.atlassian.confluence.api.model.content.Content createContent(com.atlassian.confluence.api.model.content.Content content)
throws com.atlassian.confluence.api.service.exceptions.ServiceException
com.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic com.atlassian.confluence.api.model.content.Content updateContent(com.atlassian.confluence.api.model.content.Content content)
throws com.atlassian.confluence.api.service.exceptions.ServiceException
com.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic List<com.atlassian.confluence.api.model.content.Content> getAttachments(long pageId) throws com.atlassian.confluence.api.service.exceptions.ServiceException
pageId - Contentcom.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic com.atlassian.confluence.api.model.pagination.PageResponse<com.atlassian.confluence.api.model.content.Content> addAttachment(long pageId,
VirtualFile file,
String contentType,
String comment)
throws com.atlassian.confluence.api.service.exceptions.ServiceException
pageId - file - contentType - comment - PageResponse instance that was created on the servercom.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic void removeAttachment(com.atlassian.confluence.api.model.content.Content attachment)
throws com.atlassian.confluence.api.service.exceptions.ServiceException
attachment - com.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic boolean addLabels(long id,
String labels)
throws com.atlassian.confluence.api.service.exceptions.ServiceException
labels - comma separated labels string.com.atlassian.confluence.api.service.exceptions.ServiceExceptionpublic com.atlassian.confluence.api.model.pagination.PageResponse<com.atlassian.confluence.api.model.content.Label> getLabels(long id)
public com.atlassian.confluence.api.model.people.Person getCurrentUser()
public static com.atlassian.confluence.api.model.Expansion[] toExpansionsArray(String... expansions)
Copyright © 2016–2021 MeetMe, Inc.. All rights reserved.