|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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. |
Method Summary | |
---|---|
static Content.ContentBuilder |
builder()
Returns a Content.ContentBuilder instance that can be used to create a new Content object. |
static Content.ContentBuilder |
builder(Content content)
Returns a Content.ContentBuilder instance that clones an existing Content object. |
static Content.ContentBuilder |
builder(ContentType type)
Returns a Content.ContentBuilder instance that can be used to create a new Content object. |
static Content.ContentBuilder |
builder(ContentType type,
long id)
Returns a Content.ContentBuilder instance that can be used to create a new Content object. |
static Reference<Content> |
buildReference(ContentId id)
|
boolean |
equals(java.lang.Object o)
|
java.util.List<Content> |
getAncestors()
|
java.util.Map<ContentRepresentation,ContentBody> |
getBody()
|
java.util.Map<ContentType,PageResponse<Content>> |
getChildren()
Returns a map of the immediate sub-content of this Content, split by ContentType. |
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 ContentId |
getContentId(Reference<Content> contentRef)
Get the ContentId from a Content Reference. |
java.util.Map<ContentType,PageResponse<Content>> |
getDescendants()
Returns a map of all sub-content of this Content, at any depth, split by ContentType. |
History |
getHistory()
|
Reference<History> |
getHistoryRef()
|
ContentId |
getId()
|
java.util.Map<LinkType,Link> |
getLinks()
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
|
Space |
getSpace()
|
Reference<Space> |
getSpaceRef()
|
java.lang.String |
getTitle()
|
ContentType |
getType()
|
Version |
getVersion()
|
int |
hashCode()
|
java.lang.String |
toString()
|
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 createpublic 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 ContentType getType()
public java.lang.String getTitle()
public java.util.Map<LinkType,Link> getLinks()
public Reference<History> getHistoryRef()
public History getHistory()
public Reference<Space> getSpaceRef()
public Space getSpace()
public Container getContainer()
getAncestors()
.
protected java.lang.Class getContainerType()
public java.util.List<Content> getAncestors()
public java.util.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 java.util.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 java.util.Map<ContentRepresentation,ContentBody> getBody()
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
public Version getVersion()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |