Class SpacePermissionV2
This object represents a single space permission. Permissions consist of at least 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
ConstructorsModifierConstructorDescriptionprotectedSpacePermissionV2(Long id, PermissionSubject subject, Operation operation, Map<String, Object> Links) Constructs a validated instance ofSpacePermissionV2.Constructs a validated instance ofSpacePermissionV2. -
Method Summary
-
Field Details
-
id
-
subject
The user or group that the permission applies to. -
operation
-
Links
-
-
Constructor Details
-
SpacePermissionV2
Constructs a validated instance ofSpacePermissionV2.- Parameters:
spec- the specification to process
-
SpacePermissionV2
@Internal public SpacePermissionV2(Long id, PermissionSubject subject, Operation operation, Map<String, Object> Links) Constructs a validated instance ofSpacePermissionV2.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
SpacePermissionV2(Consumer)instead.- Parameters:
id- idsubject- The user or group that the permission applies to.operation- operationLinks- Links
-
SpacePermissionV2
protected SpacePermissionV2()
-
-
Method Details
-
id
-
subject
The user or group that the permission applies to. -
operation
-
Links
-
id
- Returns:
this.
-
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
-