@ExperimentalApi public class Content extends Object implements Container, NavigationAware, Relatable
Modifier and Type | Class and Description |
---|---|
static class |
Content.ContentBuilder
Builds
Content objects. |
static class |
Content.Expansions
Provides property names that can be used to expand
Content objects. |
public static ContentId getContentId(Reference<Content> contentRef)
contentRef
- the Reference to return the id frompublic 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(ContentType type, ContentId 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 History getHistory()
public Space getSpace()
public Container getContainer()
For the parent of this Content, use getAncestors()
.
public ContentId getParentId()
public com.atlassian.fugue.Option<Content> getParent()
public List<OperationCheckResult> getOperations()
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 Version getVersion()
public Navigation.Builder resolveNavigation(NavigationService navigationService)
resolveNavigation
in interface NavigationAware
Copyright © 2003–2016 Atlassian. All rights reserved.