Class DeleteContentByIDPageTreeV1OperationSpec
Moves a pagetree rooted at a page to the space's trash: - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants. - For every other combination of content type and status, this API is not supported. This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously. Response example: <pre><code> { "id" : "1180606", "links" : { "status" : "/rest/api/longtask/1180606" } } </code></pre> Use the `/longtask/<taskId>` REST API to get the copy task status. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the content is in.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a validated instance ofDeleteContentByIDPageTreeV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull Stringid()The ID of the content which forms root of the page tree, to be deleted.The ID of the content which forms root of the page tree, to be deleted.toString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missing
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
DeleteContentByIDPageTreeV1OperationSpec
@Internal public DeleteContentByIDPageTreeV1OperationSpec(Consumer<DeleteContentByIDPageTreeV1OperationSpec> spec) Constructs a validated instance ofDeleteContentByIDPageTreeV1OperationSpec.- Parameters:
spec- the specification to process
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
id
The ID of the content which forms root of the page tree, to be deleted. -
id
The ID of the content which forms root of the page tree, to be deleted.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-