Modifier | Constructor and Description |
---|---|
protected |
ContentBuilder(ContentType type)
Create new builders with
Content.builder(ContentType) . |
protected |
ContentBuilder(ContentType type,
ContentId id)
Create new builders with
Content.builder(ContentType) and a ContentId . |
protected |
ContentBuilder(ContentType type,
long id)
Create new builders with
Content.builder(ContentType) and a ContentId generated from the
ContentType and the Long id. |
protected ContentBuilder(ContentType type)
Content.builder(ContentType)
.protected ContentBuilder(ContentType type, ContentId id)
Content.builder(ContentType)
and a ContentId
.protected ContentBuilder(ContentType type, long id)
Content.builder(ContentType)
and a ContentId
generated from the
ContentType and the Long id.public Content.ContentBuilder collapsed()
This is useful as a starting point when building Content for a REST response,
but the Collapsed instances won't have properties or navigation builders set,
so you should still set navigable values into collapsible properties where possible:
e.g. see Space.buildReference(String)
.
public Content.ContentBuilder type(ContentType type)
public Content build()
public Content.ContentBuilder id(ContentId id)
public Content.ContentBuilder status(ContentStatus status)
public Content.ContentBuilder title(String title)
public Content.ContentBuilder addLink(Link link)
public Content.ContentBuilder addLink(LinkType type, String path)
public Content.ContentBuilder history(Reference<History> history)
public Content.ContentBuilder history(History history)
public Content.ContentBuilder space(String spaceKey)
public Content.ContentBuilder space(Space space)
public Content.ContentBuilder space(Reference<Space> space)
public Content.ContentBuilder container(Container container)
public Content.ContentBuilder container(Reference<? extends Container> container)
public Content.ContentBuilder parent(Content parent)
parent
- the parent Contentpublic Content.ContentBuilder ancestors(Iterable<Content> ancestors)
public Content.ContentBuilder operations(Iterable<OperationCheckResult> operations)
public Content.ContentBuilder children(Map<ContentType,PageResponse<Content>> children)
public Content.ContentBuilder descendants(Map<ContentType,PageResponse<Content>> descendants)
public Content.ContentBuilder body(String value, ContentRepresentation format)
public Content.ContentBuilder body(Map<ContentRepresentation,ContentBody> body)
public Content.ContentBuilder body(ContentBody body)
public Content.ContentBuilder metadata(Map<String,Object> metadata)
public Content.ContentBuilder extensions(Map<String,Object> extensions)
public Content.ContentBuilder extension(String key, Object value)
public Content.ContentBuilder version(Version version)
public Content.ContentBuilder version(Reference<Version> version)
public Content.ContentBuilder restrictions(Map<OperationKey,ContentRestriction> restrictionsByOperationMap)
Copyright © 2003–2017 Atlassian. All rights reserved.