SpacePermissionRequest class
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:
'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"
}
Constructors
- SpacePermissionRequest({required PermissionSubject subject, required SpacePermissionRequestOperation operation, GenericLinks? links})
-
SpacePermissionRequest.fromJson(Map<
String, Object?> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- links → GenericLinks?
-
final
- operation → SpacePermissionRequestOperation
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject → PermissionSubject
-
final
Methods
-
copyWith(
{PermissionSubject? subject, SpacePermissionRequestOperation? operation, GenericLinks? links}) → SpacePermissionRequest -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited