|
||||||||||
| 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.ContentBuilder
Builds Content objects. |
static class |
Content.Expansions
Provides property names that can be used to expand Content objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ContentId getContentId(Reference<Content> contentRef)
contentRef - the Reference to return the id from
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 create
public static Content.ContentBuilder builder(ContentType type,
long id)
Content.ContentBuilder instance that can be used to create a new Content object.
type - the type of Content to createid - the id of the 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(ContentId id)
public ContentId getId()
public ContentStatus getStatus()
public ContentType getType()
public String getTitle()
public Map<LinkType,Link> getLinks()
public Reference<History> getHistoryRef()
public History getHistory()
public Reference<Space> getSpaceRef()
public Space getSpace()
public Container getContainer()
getAncestors().
protected Class getContainerType()
public ContentId getParentId()
public com.atlassian.fugue.Option<Content> getParent()
public List<Content> getAncestors()
public Map<ContentType,PageResponse<Content>> getChildren()
Children includes Content of the same type, and Content of other types that is contained within this Content but has no other parent reference.
public Map<ContentType,PageResponse<Content>> getDescendants()
Descendants includes Content of the same type, and Content of other types that is contained within this Content at any depth.
public Map<ContentRepresentation,ContentBody> getBody()
public Map<String,Object> getMetadata()
public Map<String,Object> getExtensions()
public Object getExtension(String extensionKey)
public Reference<Version> getVersionRef()
public Version getVersion()
public Navigation.Builder resolveNavigation(NavigationService navigationService)
resolveNavigation in interface NavigationAwarepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||