@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. |
static class |
Content.IdProperties |
@Deprecated public static ContentId getContentId(Reference<Content> contentRef)
getSelector()
.contentRef
- the Reference to return the id frompublic static ContentSelector getSelector(Reference<Content> contentRef)
contentRef
- the Reference to return the selector 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 clone@Deprecated public static Reference<Content> buildReference(ContentId id)
buildReference(ContentSelector)
public static Reference<Content> buildReference(ContentSelector selector)
public ContentSelector getSelector()
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()
@Deprecated public com.atlassian.fugue.Option<Content> getParent()
getOptionalParent()
}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<OperationKey,ContentRestriction> getRestrictions()
Is empty by default. Can be collapsed, if not asked to expand while retrieving.
public Map<ContentRepresentation,ContentBody> getBody()
public Version getVersion()
public Navigation.Builder resolveNavigation(NavigationService navigationService)
resolveNavigation
in interface NavigationAware
Copyright © 2003–2020 Atlassian. All rights reserved.