Class SpacePermissionRequest
This object represents the request for the single space permission. Permissions consist of one operation object with an accompanying subjects object. The following combinations of `operation.key` and `operation.target` values are valid for the `operation` object: ``` bash 'create': 'page', 'blogpost', 'comment', 'attachment' 'read': 'space' 'delete': 'page', 'blogpost', 'comment', 'attachment', 'space' 'export': 'space' 'administer': 'space' 'archive': 'page' 'restrict_content': 'space' ``` For example, to enable Delete Own permission, set the `operation` object to the following: ``` "operation": { "key": "delete", "target": "space" } ``` To enable Add/Delete Restrictions permissions, set the `operation` object to the following: ``` "operation": { "key": "restrict_content", "target": "space" } ```
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpacePermissionRequest(PermissionSubject subject, Operation operation, Map<String, Object> Links) Constructs a validated instance ofSpacePermissionRequest.Constructs a validated instance ofSpacePermissionRequest. -
Method Summary
-
Field Details
-
subject
The user or group that the permission applies to. -
operation
-
Links
-
-
Constructor Details
-
SpacePermissionRequest
Constructs a validated instance ofSpacePermissionRequest.- Parameters:
spec- the specification to process
-
SpacePermissionRequest
@Internal public SpacePermissionRequest(PermissionSubject subject, Operation operation, Map<String, Object> Links) Constructs a validated instance ofSpacePermissionRequest.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
SpacePermissionRequest(Consumer)instead.- Parameters:
subject- The user or group that the permission applies to.operation- operationLinks- Links
-
SpacePermissionRequest
protected SpacePermissionRequest()
-
-
Method Details
-
subject
The user or group that the permission applies to. -
operation
-
Links
-
subject
The user or group that the permission applies to.- Returns:
this.
-
operation
- Returns:
this.
-
Links
- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-