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
FieldsModifier and TypeFieldDescriptionprotected Operationprotected PermissionSubjectThe user or group that the permission applies to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.SpacePermissionRequest(PermissionSubject subject, Operation operation, Map<String, Object> additionalLinks) Constructs a validated instance ofSpacePermissionRequest.Constructs a validated instance ofSpacePermissionRequest. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for additionalLinks.additionalLinks(Map<String, Object> additionalLinks) Fluent setter for additionalLinks.booleanGets the value of additionalLinks.Gets the value of operation.Gets the value of subject.inthashCode()Fluent getter for operation.Fluent setter for operation.voidsetAdditionalLinks(Map<String, Object> additionalLinks) Sets the value of additionalLinks.voidsetOperation(Operation operation) Sets the value of operation.voidsetSubject(PermissionSubject subject) Sets the value of subject.subject()Fluent getter for subject.subject(PermissionSubject subject) Fluent setter for subject.toString()
-
Field Details
-
subject
The user or group that the permission applies to. -
operation
-
additionalLinks
-
-
Constructor Details
-
SpacePermissionRequest
Constructs a validated instance ofSpacePermissionRequest.- Parameters:
spec- the specification to process
-
SpacePermissionRequest
@Internal protected SpacePermissionRequest()Protected no-args constructor for use by serialization frameworks. -
SpacePermissionRequest
@Internal public SpacePermissionRequest(PermissionSubject subject, Operation operation, Map<String, Object> additionalLinks) 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- operationadditionalLinks- additionalLinks
-
-
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
-
operation
Fluent setter for operation.- Parameters:
operation- operation- Returns:
- this
-
getOperation
-
setOperation
Sets the value of operation.- Parameters:
operation- operation
-
additionalLinks
-
additionalLinks
Fluent setter for additionalLinks.- Parameters:
additionalLinks- additionalLinks- Returns:
- this
-
getAdditionalLinks
-
setAdditionalLinks
-
equals
-
hashCode
-
toString
-