Class ContentPermissionRequest
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentPermissionRequest
ContentPermissionRequest
This object represents the request for the content permission check API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe content permission operation to check.protected PermissionSubjectWithGroupIdThe user or group that the permission applies to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentPermissionRequest(PermissionSubjectWithGroupId subject, String operation) Constructs a validated instance ofContentPermissionRequest.Constructs a validated instance ofContentPermissionRequest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value of operation.Gets the value of subject.inthashCode()Fluent getter for operation.Fluent setter for operation.voidsetOperation(String operation) Sets the value of operation.voidsetSubject(PermissionSubjectWithGroupId subject) Sets the value of subject.subject()Fluent getter for subject.subject(PermissionSubjectWithGroupId subject) Fluent setter for subject.toString()
-
Field Details
-
subject
The user or group that the permission applies to. -
operation
The content permission operation to check.
-
-
Constructor Details
-
ContentPermissionRequest
Constructs a validated instance ofContentPermissionRequest.- Parameters:
spec- the specification to process
-
ContentPermissionRequest
@Internal protected ContentPermissionRequest()Protected no-args constructor for use by serialization frameworks. -
ContentPermissionRequest
Constructs a validated instance ofContentPermissionRequest.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentPermissionRequest(Consumer)instead.- Parameters:
subject- The user or group that the permission applies to.operation- The content permission operation to check.
-
-
Method Details
-
subject
Fluent getter for subject.The user or group that the permission applies to.
- Returns:
- subject
-
subject
Fluent setter for subject.The user or group that the permission applies to.
- Parameters:
subject- subject- Returns:
- this
-
getSubject
Gets the value of subject.The user or group that the permission applies to.
- Returns:
- subject
-
setSubject
Sets the value of subject.The user or group that the permission applies to.
- Parameters:
subject- subject
-
operation
Fluent getter for operation.The content permission operation to check.
- Returns:
- operation
-
operation
Fluent setter for operation.The content permission operation to check.
- Parameters:
operation- operation- Returns:
- this
-
getOperation
Gets the value of operation.The content permission operation to check.
- Returns:
- operation
-
setOperation
Sets the value of operation.The content permission operation to check.
- Parameters:
operation- operation
-
equals
-
hashCode
-
toString
-