| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.api.model.content.Content
@ExperimentalApi public class Content
Represents all the different kinds of content that can be housed in Confluence: pages, blog posts, comments and so on.
| Nested Class Summary | |
|---|---|
| static class | Content.ContentBuilderBuilds Contentobjects. | 
| Method Summary | |
|---|---|
| static Content.ContentBuilder | builder()Returns a Content.ContentBuilderinstance that can be used to create a newContentobject. | 
| static Content.ContentBuilder | builder(Content content)Returns a Content.ContentBuilderinstance that clones an existingContentobject. | 
| static Content.ContentBuilder | builder(ContentType type)Returns a Content.ContentBuilderinstance that can be used to create a newContentobject. | 
| static Reference<Content> | buildReference(java.lang.String id) | 
|  java.util.List<ContentLink> | getAncestors() | 
|  java.util.Map<ContentRepresentation,ContentBody> | getBody() | 
|  Container | getContainer()Returns the container for this Content, which for Pages and Blog Posts will be the Space, and for Comments the Page or BlogPost. | 
| protected  java.lang.Class | getContainerType() | 
| static java.lang.String | getContentId(Reference<Content> contentRef)get the content id from the Reference to a piece of content | 
|  History | getHistory() | 
|  Reference<History> | getHistoryRef() | 
|  java.lang.String | getId() | 
|  java.util.Map<java.lang.String,java.lang.Object> | getMetadata() | 
|  java.util.Map<Permission,java.lang.Boolean> | getPermissions() | 
|  Reference<Space> | getSpaceRef() | 
|  com.atlassian.fugue.Option<java.lang.String> | getTinyUrlPath() | 
|  java.lang.String | getTitle() | 
|  ContentType | getType() | 
|  Version | getVersion() | 
|  java.lang.String | getWebUrlPath() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static java.lang.String getContentId(Reference<Content> contentRef)
contentRef - 
public static Content.ContentBuilder builder()
Content.ContentBuilder instance that can be used to create a new Content object.
public static Content.ContentBuilder builder(ContentType type)
Content.ContentBuilder instance that can be used to create a new Content object.
type - the type of Content to createpublic static Content.ContentBuilder builder(Content content)
Content.ContentBuilder instance that clones an existing Content object.
content - the Content to clonepublic static Reference<Content> buildReference(java.lang.String id)
id - 
public java.lang.String getId()
public ContentType getType()
public java.lang.String getTitle()
public java.lang.String getWebUrlPath()
public com.atlassian.fugue.Option<java.lang.String> getTinyUrlPath()
public Reference<History> getHistoryRef()
public History getHistory()
public Reference<Space> getSpaceRef()
public Container getContainer()
getAncestors().
protected java.lang.Class getContainerType()
public java.util.List<ContentLink> getAncestors()
public java.util.Map<ContentRepresentation,ContentBody> getBody()
public java.util.Map<Permission,java.lang.Boolean> getPermissions()
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
public Version getVersion()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||