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
FieldsModifier and TypeFieldDescriptionprotected Longprotected Operationprotected PermissionSubjectThe user or group that the permission applies to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.SpacePermissionV2(Long id, PermissionSubject subject, Operation operation, Map<String, Object> additionalLinks) Constructs a validated instance ofSpacePermissionV2.Constructs a validated instance ofSpacePermissionV2. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for additionalLinks.additionalLinks(Map<String, Object> additionalLinks) Fluent setter for additionalLinks.booleanGets the value of additionalLinks.getId()Gets the value of id.Gets the value of operation.Gets the value of subject.inthashCode()id()Fluent getter for id.Fluent setter for id.Fluent getter for operation.Fluent setter for operation.voidsetAdditionalLinks(Map<String, Object> additionalLinks) Sets the value of additionalLinks.voidSets the value of id.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
-
id
-
subject
The user or group that the permission applies to. -
operation
-
additionalLinks
-
-
Constructor Details
-
SpacePermissionV2
Constructs a validated instance ofSpacePermissionV2.- Parameters:
spec- the specification to process
-
SpacePermissionV2
@Internal protected SpacePermissionV2()Protected no-args constructor for use by serialization frameworks. -
SpacePermissionV2
@Internal public SpacePermissionV2(Long id, PermissionSubject subject, Operation operation, Map<String, Object> additionalLinks) 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- operationadditionalLinks- additionalLinks
-
-
Method Details
-
id
-
id
-
getId
-
setId
-
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
-