Class ContentCreate
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentCreate
ContentCreate
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe parent content of the new content.protected Body5304AdThe body of the new content.The container of the content.protected StringThe ID of the draft content.protected Spacecc1E40The space that the content is being created in.protected StringThe status of the new content.protected Stringprotected StringThe type of the new content. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContentCreate(String id, String title, String type, Spacecc1E40 space, String status, Map<String, Object> container, List<Map<String, Object>> ancestors, Body5304Ad body) Constructs a validated instance ofContentCreate.ContentCreate(Consumer<ContentCreate> spec) Constructs a validated instance ofContentCreate. -
Method Summary
Modifier and TypeMethodDescriptionThe parent content of the new content.The parent content of the new content.body()The body of the new content.body(Body5304Ad body) The body of the new content.protected booleanThe container of the content.The container of the content.booleaninthashCode()id()The ID of the draft content.The ID of the draft content.space()The space that the content is being created in.space(Spacecc1E40 space) The space that the content is being created in.status()The status of the new content.The status of the new content.title()toString()type()The type of the new content.The type of the new content.
-
Field Details
-
id
The ID of the draft content. Required when publishing a draft. -
title
-
type
The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc. -
space
The space that the content is being created in. -
status
The status of the new content. -
container
The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field. -
ancestors
The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified. -
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
-
-
Constructor Details
-
ContentCreate
Constructs a validated instance ofContentCreate.- Parameters:
spec- the specification to process
-
ContentCreate
@Internal public ContentCreate(String id, String title, String type, Spacecc1E40 space, String status, Map<String, Object> container, List<Map<String, Object>> ancestors, Body5304Ad body) Constructs a validated instance ofContentCreate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentCreate(Consumer)instead.- Parameters:
id- The ID of the draft content. Required when publishing a draft.title- titletype- The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.space- The space that the content is being created in.status- The status of the new content.container- The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.ancestors- The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.body- The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
-
ContentCreate
protected ContentCreate()
-
-
Method Details
-
id
The ID of the draft content. Required when publishing a draft. -
title
-
type
The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc. -
space
The space that the content is being created in. -
status
The status of the new content. -
container
The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field. -
ancestors
The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified. -
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included. -
id
The ID of the draft content. Required when publishing a draft.- Returns:
this.
-
title
- Returns:
this.
-
type
The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.- Returns:
this.
-
space
The space that the content is being created in.- Returns:
this.
-
status
The status of the new content.- Returns:
this.
-
container
The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.- Returns:
this.
-
ancestors
The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.- Returns:
this.
-
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-