|
||||||||||
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 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 parent(Content parent)
parent
- the parent Content
public Content.ContentBuilder ancestors(Iterable<Content> ancestors)
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 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |