public class Page extends ConfluenceResource
Page class
Represents a Confluence Page
Modifier and Type | Class and Description |
---|---|
static class |
Page.PageBuilder
PageBuilder internal class
|
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
protected String |
content |
protected Date |
createdDate |
protected String |
creator |
protected String |
creatorUsername |
protected String |
id |
protected static String |
KEY_BASE |
protected static String |
KEY_BODY |
protected static String |
KEY_BY |
protected static String |
KEY_CONTEXT |
protected static String |
KEY_CREATED_BY |
protected static String |
KEY_CREATED_DATE |
protected static String |
KEY_DISPLAY_NAME |
protected static String |
KEY_HISTORY |
protected static String |
KEY_ID |
protected static String |
KEY_KEY |
protected static String |
KEY_LINKS |
protected static String |
KEY_MEDIATYPE |
protected static String |
KEY_SELF |
protected static String |
KEY_SPACE |
protected static String |
KEY_TITLE |
protected static String |
KEY_TYPE |
protected static String |
KEY_USER_NAME |
protected static String |
KEY_VALUE |
protected static String |
KEY_VERSION |
protected static String |
KEY_VIEW |
protected static String |
KEY_WEBUI |
protected static String |
KEY_WHEN |
protected List<Label> |
labels |
protected Date |
lastModified |
protected String |
lastModifier |
protected String |
lastModifierUsername |
protected long |
length |
protected String |
mediaType |
protected String |
space |
protected String |
title |
protected PageType |
type |
protected String |
url |
protected String |
urlContext |
protected int |
version |
protected String |
webUrl |
Constructor and Description |
---|
Page() |
Modifier and Type | Method and Description |
---|---|
static ConfluenceResourceBuilder<? extends Page> |
builder() |
String |
getBaseUrl() |
String |
getContent() |
InputStream |
getContentStream() |
Date |
getCreatedDate() |
String |
getCreator() |
String |
getCreatorUsername() |
String |
getId() |
List<Label> |
getLabels() |
Date |
getLastModifiedDate() |
String |
getLastModifier() |
String |
getLastModifierUsername() |
long |
getLength() |
String |
getMediaType() |
Map<String,Object> |
getMetadataAsMap() |
String |
getSpace() |
String |
getTitle() |
PageType |
getType() |
String |
getUrl() |
String |
getUrlContext() |
int |
getVersion() |
String |
getWebUrl() |
boolean |
hasContent() |
protected void |
refineMetadata(Map<String,Object> metadata)
Used to be overwritten by child classes to add more metadata to the map
|
protected static final String KEY_LINKS
protected static final String KEY_ID
protected static final String KEY_SELF
protected static final String KEY_WEBUI
protected static final String KEY_BASE
protected static final String KEY_CONTEXT
protected static final String KEY_KEY
protected static final String KEY_TITLE
protected static final String KEY_BODY
protected static final String KEY_VIEW
protected static final String KEY_VALUE
protected static final String KEY_SPACE
protected static final String KEY_HISTORY
protected static final String KEY_CREATED_DATE
protected static final String KEY_CREATED_BY
protected static final String KEY_BY
protected static final String KEY_TYPE
protected static final String KEY_DISPLAY_NAME
protected static final String KEY_USER_NAME
protected static final String KEY_VERSION
protected static final String KEY_WHEN
protected static final String KEY_MEDIATYPE
protected String id
protected String space
protected String baseUrl
protected String urlContext
protected String url
protected String webUrl
protected Date createdDate
protected Date lastModified
protected PageType type
protected String title
protected int version
protected String creator
protected String creatorUsername
protected String lastModifier
protected String lastModifierUsername
protected String mediaType
protected long length
protected String content
public String getContent()
public String getId()
public PageType getType()
public String getMediaType()
public int getVersion()
public String getTitle()
public String getBaseUrl()
public String getUrlContext()
public String getWebUrl()
public String getUrl()
public String getSpace()
public String getCreator()
public String getCreatorUsername()
public String getLastModifier()
public String getLastModifierUsername()
public Date getCreatedDate()
public Date getLastModifiedDate()
public long getLength()
public boolean hasContent()
public InputStream getContentStream()
protected void refineMetadata(Map<String,Object> metadata)
Used to be overwritten by child classes to add more metadata to the map
metadata
- public static ConfluenceResourceBuilder<? extends Page> builder()