|
||||||||||
| 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.ContentBuilder
public static class Content.ContentBuilder
Builds Content objects.
| Constructor Summary | |
|---|---|
protected |
Content.ContentBuilder(ContentType type)
Create new builders with Content.builder(ContentType). |
protected |
Content.ContentBuilder(ContentType type,
long id)
Create new builders with Content.builder(ContentType) and a ContentId generated from the
ContentType and the Long id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Content.ContentBuilder(ContentType type)
Content.builder(ContentType).
protected Content.ContentBuilder(ContentType type,
long id)
Content.builder(ContentType) and a ContentId generated from the
ContentType and the Long id.
| Method Detail |
|---|
public Content.ContentBuilder type(ContentType type)
public Content build()
public Content.ContentBuilder id(ContentId id)
public Content.ContentBuilder title(java.lang.String title)
public Content.ContentBuilder addLink(Link link)
public Content.ContentBuilder addLink(LinkType type,
java.lang.String path)
public Content.ContentBuilder history(Reference<History> history)
public Content.ContentBuilder history(History history)
public Content.ContentBuilder space(java.lang.String spaceKey)
public Content.ContentBuilder space(Space space)
public Content.ContentBuilder space(Reference<Space> space)
public Content.ContentBuilder container(Container container)
public Content.ContentBuilder parent(Content parent)
parent - the parent Content
public Content.ContentBuilder ancestors(java.lang.Iterable<Content> ancestors)
public Content.ContentBuilder children(java.util.Map<ContentType,PageResponse<Content>> children)
public Content.ContentBuilder descendants(java.util.Map<ContentType,PageResponse<Content>> descendants)
public Content.ContentBuilder body(java.lang.String value,
ContentRepresentation format)
public Content.ContentBuilder body(java.util.Map<ContentRepresentation,ContentBody> body)
public Content.ContentBuilder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
public Content.ContentBuilder version(Version version)
public Content.ContentBuilder version(Reference<Version> version)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||