Class ContentUpdate
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentUpdate
ContentUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe new parent for the content.protected Body632549The updated body of the content.protected StringThe updated status of the content.protected StringThe updated title of the content.protected StringThe type of content.The new version for the updated content. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContentUpdate(Consumer<ContentUpdate> spec) Constructs a validated instance ofContentUpdate.ContentUpdate(Map<String, Object> version, String title, String type, String status, List<Map<String, Object>> ancestors, Body632549 body) Constructs a validated instance ofContentUpdate. -
Method Summary
Modifier and TypeMethodDescriptionThe new parent for the content.The new parent for the content.body()The updated body of the content.body(Body632549 body) The updated body of the content.protected booleanbooleaninthashCode()status()The updated status of the content.The updated status of the content.title()The updated title of the content.The updated title of the content.toString()type()The type of content.The type of content.version()The new version for the updated content.The new version for the updated content.
-
Field Details
-
version
The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`. -
title
The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title. -
type
The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment -
status
The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page. -
ancestors
The new parent for the content. Only one parent content 'id' can be specified. -
body
The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
-
-
Constructor Details
-
ContentUpdate
Constructs a validated instance ofContentUpdate.- Parameters:
spec- the specification to process
-
ContentUpdate
@Internal public ContentUpdate(Map<String, Object> version, String title, String type, String status, List<Map<String, Object>> ancestors, Body632549 body) Constructs a validated instance ofContentUpdate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentUpdate(Consumer)instead.- Parameters:
version- The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.title- The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.type- The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachmentstatus- The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.ancestors- The new parent for the content. Only one parent content 'id' can be specified.body- The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
-
ContentUpdate
protected ContentUpdate()
-
-
Method Details
-
version
The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`. -
title
The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title. -
type
The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment -
status
The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page. -
ancestors
The new parent for the content. Only one parent content 'id' can be specified. -
body
The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`. -
version
The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.- Returns:
this.
-
title
The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.- Returns:
this.
-
type
The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment- Returns:
this.
-
status
The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.- Returns:
this.
-
ancestors
The new parent for the content. Only one parent content 'id' can be specified.- Returns:
this.
-
body
The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-