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 Expandable07C2Edprotected Stringprotected Stringprotected BodyShows whether a piece of content has attachments, comments, or child pages/whiteboards.Container for content.protected 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()Protected no-args constructor for use by serialization frameworks.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 additionalExpandable, Map<String, Object> additionalLinks, String ari, String base64EncodedAri) Constructs a validated instance ofContent.Constructs a validated instance ofContent. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for additionalExpandable.additionalExpandable(Expandable07C2Ed additionalExpandable) Fluent setter for additionalExpandable.Fluent getter for additionalLinks.additionalLinks(Map<String, Object> additionalLinks) Fluent setter for additionalLinks.Fluent getter for ancestors.Fluent setter for ancestors.ari()Fluent getter for ari.Fluent setter for ari.Fluent getter for base64EncodedAri.base64EncodedAri(String base64EncodedAri) Fluent setter for base64EncodedAri.body()Fluent getter for body.Fluent setter for body.children()Fluent getter for children.Fluent setter for children.Fluent getter for childTypes.childTypes(Map<String, Object> childTypes) Fluent setter for childTypes.Fluent getter for container.Fluent setter for container.Fluent getter for descendants.descendants(Map<String, Object> descendants) Fluent setter for descendants.booleanFluent getter for extensions.extensions(Object extensions) Fluent setter for extensions.Gets the value of additionalExpandable.Gets the value of additionalLinks.Gets the value of ancestors.getAri()Gets the value of ari.Gets the value of base64EncodedAri.getBody()Gets the value of body.Gets the value of children.Gets the value of childTypes.Gets the value of container.Gets the value of descendants.Gets the value of extensions.Gets the value of history.getId()Gets the value of id.Gets the value of macroRenderedOutput.Gets the value of metadata.Gets the value of operations.Gets the value of restrictions.getSpace()Gets the value of space.Gets the value of status.getTitle()Gets the value of title.getType()Gets the value of type.Gets the value of version.inthashCode()history()Fluent getter for history.history(ContentHistory history) Fluent setter for history.id()Fluent getter for id.Fluent setter for id.Fluent getter for macroRenderedOutput.macroRenderedOutput(Map<String, Object> macroRenderedOutput) Fluent setter for macroRenderedOutput.metadata()Fluent getter for metadata.metadata(ContentMetadata metadata) Fluent setter for metadata.Fluent getter for operations.operations(List<OperationCheckResult> operations) Fluent setter for operations.Fluent getter for restrictions.restrictions(Restrictions restrictions) Fluent setter for restrictions.voidsetAdditionalExpandable(Expandable07C2Ed additionalExpandable) Sets the value of additionalExpandable.voidsetAdditionalLinks(Map<String, Object> additionalLinks) Sets the value of additionalLinks.voidsetAncestors(List<Content> ancestors) Sets the value of ancestors.voidSets the value of ari.voidsetBase64EncodedAri(String base64EncodedAri) Sets the value of base64EncodedAri.voidSets the value of body.voidsetChildren(Map<String, Object> children) Sets the value of children.voidsetChildTypes(Map<String, Object> childTypes) Sets the value of childTypes.voidsetContainer(Map<String, Object> container) Sets the value of container.voidsetDescendants(Map<String, Object> descendants) Sets the value of descendants.voidsetExtensions(Object extensions) Sets the value of extensions.voidsetHistory(ContentHistory history) Sets the value of history.voidSets the value of id.voidsetMacroRenderedOutput(Map<String, Object> macroRenderedOutput) Sets the value of macroRenderedOutput.voidsetMetadata(ContentMetadata metadata) Sets the value of metadata.voidsetOperations(List<OperationCheckResult> operations) Sets the value of operations.voidsetRestrictions(Restrictions restrictions) Sets the value of restrictions.voidSets the value of space.voidSets the value of status.voidSets the value of title.voidSets the value of type.voidsetVersion(Version version) Sets the value of version.space()Fluent getter for space.Fluent setter for space.status()Fluent getter for status.Fluent setter for status.title()Fluent getter for title.Fluent setter for title.toString()type()Fluent getter for type.Fluent setter for type.version()Fluent getter for version.Fluent setter for version.
-
Field Details
-
id
-
type
Can be "page", "blogpost", "attachment" or "content" -
status
-
title
-
space
-
history
-
version
-
ancestors
-
operations
-
children
-
childTypes
-
descendants
-
container
-
body
-
restrictions
-
metadata
Metadata object for page, blogpost, comment content -
macroRenderedOutput
-
extensions
-
additionalExpandable
-
additionalLinks
-
ari
-
base64EncodedAri
-
-
Constructor Details
-
Content
-
Content
@Internal protected Content()Protected no-args constructor for use by serialization frameworks. -
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 additionalExpandable, Map<String, Object> additionalLinks, 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- extensionsadditionalExpandable- additionalExpandableadditionalLinks- additionalLinksari- aribase64EncodedAri- base64EncodedAri
-
-
Method Details
-
id
-
id
-
getId
-
setId
-
type
Fluent getter for type.Can be "page", "blogpost", "attachment" or "content"
- Returns:
- type
-
type
-
getType
Gets the value of type.Can be "page", "blogpost", "attachment" or "content"
- Returns:
- type
-
setType
Sets the value of type.Can be "page", "blogpost", "attachment" or "content"
- Parameters:
type- type
-
status
-
status
-
getStatus
-
setStatus
-
title
-
title
-
getTitle
-
setTitle
-
space
-
space
-
getSpace
-
setSpace
-
history
-
history
Fluent setter for history.- Parameters:
history- history- Returns:
- this
-
getHistory
-
setHistory
Sets the value of history.- Parameters:
history- history
-
version
-
version
-
getVersion
-
setVersion
-
ancestors
-
ancestors
-
getAncestors
-
setAncestors
-
operations
-
operations
Fluent setter for operations.- Parameters:
operations- operations- Returns:
- this
-
getOperations
-
setOperations
Sets the value of operations.- Parameters:
operations- operations
-
children
-
children
-
getChildren
-
setChildren
-
childTypes
-
childTypes
-
getChildTypes
-
setChildTypes
-
descendants
-
descendants
-
getDescendants
-
setDescendants
-
container
-
container
-
getContainer
-
setContainer
-
body
-
body
-
getBody
-
setBody
-
restrictions
-
restrictions
Fluent setter for restrictions.- Parameters:
restrictions- restrictions- Returns:
- this
-
getRestrictions
-
setRestrictions
Sets the value of restrictions.- Parameters:
restrictions- restrictions
-
metadata
Fluent getter for metadata.Metadata object for page, blogpost, comment content
- Returns:
- metadata
-
metadata
Fluent setter for metadata.Metadata object for page, blogpost, comment content
- Parameters:
metadata- metadata- Returns:
- this
-
getMetadata
Gets the value of metadata.Metadata object for page, blogpost, comment content
- Returns:
- metadata
-
setMetadata
Sets the value of metadata.Metadata object for page, blogpost, comment content
- Parameters:
metadata- metadata
-
macroRenderedOutput
-
macroRenderedOutput
-
getMacroRenderedOutput
-
setMacroRenderedOutput
-
extensions
-
extensions
-
getExtensions
-
setExtensions
Sets the value of extensions.- Parameters:
extensions- extensions
-
additionalExpandable
Fluent getter for additionalExpandable.- Returns:
- additionalExpandable
-
additionalExpandable
Fluent setter for additionalExpandable.- Parameters:
additionalExpandable- additionalExpandable- Returns:
- this
-
getAdditionalExpandable
Gets the value of additionalExpandable.- Returns:
- additionalExpandable
-
setAdditionalExpandable
Sets the value of additionalExpandable.- Parameters:
additionalExpandable- additionalExpandable
-
additionalLinks
-
additionalLinks
-
getAdditionalLinks
-
setAdditionalLinks
-
ari
-
ari
-
getAri
-
setAri
-
base64EncodedAri
-
base64EncodedAri
-
getBase64EncodedAri
-
setBase64EncodedAri
Sets the value of base64EncodedAri.- Parameters:
base64EncodedAri- base64EncodedAri
-
equals
-
hashCode
-
toString
-