Class PostContentByIDPermissionCheckV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostContentByIDPermissionCheckV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostContentByIDPermissionCheckV1OperationSpec
extends Object
PostContentByIDPermissionCheckV1
Check if a user or a group can perform an operation to the specified content. The `operation` to check must be provided. The user’s account ID or the ID of the group can be provided in the `subject` to check permissions against a specified user or group. The following permission checks are done to make sure that the user or group has the proper access: - site permissions - space permissions - content restrictions **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site ('Can use' global permission) if checking permission for self, otherwise 'Confluence Administrator' global permission is required.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionPostContentByIDPermissionCheckV1OperationSpec(Consumer<PostContentByIDPermissionCheckV1OperationSpec> spec) Constructs a validated instance ofPostContentByIDPermissionCheckV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull Stringid()The ID of the content to check permissions against.The ID of the content to check permissions against.@NonNull ContentPermissionRequestpayload()The content permission request.payload(@NonNull ContentPermissionRequest payload) The content permission request.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
-
PostContentByIDPermissionCheckV1OperationSpec
@Internal public PostContentByIDPermissionCheckV1OperationSpec(Consumer<PostContentByIDPermissionCheckV1OperationSpec> spec) Constructs a validated instance ofPostContentByIDPermissionCheckV1OperationSpec.- 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 to check permissions against. -
payload
The content permission request. -
id
The ID of the content to check permissions against.- Returns:
this.
-
payload
public PostContentByIDPermissionCheckV1OperationSpec payload(@NonNull ContentPermissionRequest payload) The content permission request.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-