Class Content
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.Content
Content
Base object for all content types. Representation of a blogpost (content)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected BodyShows whether a piece of content has attachments, comments, or child pages/whiteboards.Container for content.protected Expandable07C2Edprotected Objectprotected ContentHistoryprotected Stringprotected ContentMetadataMetadata object for page, blogpost, comment contentprotected List<OperationCheckResult>protected Restrictionsprotected Spaceprotected Stringprotected Stringprotected StringCan be "page", "blogpost", "attachment" or "content"protected Version -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContent()Content(String id, String type, String status, String title, Space space, ContentHistory history, Version version, List<Content> ancestors, List<OperationCheckResult> operations, Map<String, Object> children, Map<String, Object> childTypes, Map<String, Object> descendants, Map<String, Object> container, Body body, Restrictions restrictions, ContentMetadata metadata, Map<String, Object> macroRenderedOutput, Object extensions, Expandable07C2Ed Expandable, Map<String, Object> Links, String ari, String base64EncodedAri) Constructs a validated instance ofContent.Constructs a validated instance ofContent. -
Method Summary
Modifier and TypeMethodDescriptionari()base64EncodedAri(String base64EncodedAri) body()protected booleanchildren()Shows whether a piece of content has attachments, comments, or child pages/whiteboards.childTypes(Map<String, Object> childTypes) Shows whether a piece of content has attachments, comments, or child pages/whiteboards.Container for content.Container for content.descendants(Map<String, Object> descendants) booleanExpandable(Expandable07C2Ed Expandable) extensions(Object extensions) inthashCode()history()history(ContentHistory history) id()Links()macroRenderedOutput(Map<String, Object> macroRenderedOutput) metadata()Metadata object for page, blogpost, comment contentmetadata(ContentMetadata metadata) Metadata object for page, blogpost, comment contentoperations(List<OperationCheckResult> operations) restrictions(Restrictions restrictions) space()status()title()toString()type()Can be "page", "blogpost", "attachment" or "content"Can be "page", "blogpost", "attachment" or "content"version()
-
Field Details
-
id
-
type
Can be "page", "blogpost", "attachment" or "content" -
status
-
title
-
space
-
history
-
version
-
ancestors
-
operations
-
children
-
childTypes
Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects. -
descendants
-
container
Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment) -
body
-
restrictions
-
metadata
Metadata object for page, blogpost, comment content -
macroRenderedOutput
-
extensions
-
Expandable
-
Links
-
ari
-
base64EncodedAri
-
-
Constructor Details
-
Content
Constructs a validated instance ofContent.- Parameters:
spec- the specification to process
-
Content
@Internal public Content(String id, String type, String status, String title, Space space, ContentHistory history, Version version, List<Content> ancestors, List<OperationCheckResult> operations, Map<String, Object> children, Map<String, Object> childTypes, Map<String, Object> descendants, Map<String, Object> container, Body body, Restrictions restrictions, ContentMetadata metadata, Map<String, Object> macroRenderedOutput, Object extensions, Expandable07C2Ed Expandable, Map<String, Object> Links, String ari, String base64EncodedAri) Constructs a validated instance ofContent.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
Content(Consumer)instead.- Parameters:
id- idtype- Can be "page", "blogpost", "attachment" or "content"status- statustitle- titlespace- spacehistory- historyversion- versionancestors- ancestorsoperations- operationschildren- childrenchildTypes- Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.descendants- descendantscontainer- Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)body- bodyrestrictions- restrictionsmetadata- Metadata object for page, blogpost, comment contentmacroRenderedOutput- macroRenderedOutputextensions- extensionsExpandable- ExpandableLinks- Linksari- aribase64EncodedAri- base64EncodedAri
-
Content
protected Content()
-
-
Method Details
-
id
-
type
Can be "page", "blogpost", "attachment" or "content" -
status
-
title
-
space
-
history
-
version
-
ancestors
-
operations
-
children
-
childTypes
Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects. -
descendants
-
container
Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment) -
body
-
restrictions
-
metadata
Metadata object for page, blogpost, comment content -
macroRenderedOutput
-
extensions
-
Expandable
-
Links
-
ari
-
base64EncodedAri
-
id
- Returns:
this.
-
type
Can be "page", "blogpost", "attachment" or "content"- Returns:
this.
-
status
- Returns:
this.
-
title
- Returns:
this.
-
space
- Returns:
this.
-
history
- Returns:
this.
-
version
- Returns:
this.
-
ancestors
- Returns:
this.
-
operations
- Returns:
this.
-
children
- Returns:
this.
-
childTypes
Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.- Returns:
this.
-
descendants
- Returns:
this.
-
container
Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)- Returns:
this.
-
body
- Returns:
this.
-
restrictions
- Returns:
this.
-
metadata
Metadata object for page, blogpost, comment content- Returns:
this.
-
macroRenderedOutput
- Returns:
this.
-
extensions
- Returns:
this.
-
Expandable
- Returns:
this.
-
Links
- Returns:
this.
-
ari
- Returns:
this.
-
base64EncodedAri
- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-