Class SpacePermission
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.SpacePermission
SpacePermission
This object represents a permission for given space. Permissions consist of at least one operation object with an accompanying subjects object. The following combinations of `operation` and `targetType` values are valid for the `operation` object: - 'create': 'page', 'blogpost', 'comment', 'attachment' - 'read': 'space' - 'delete': 'page', 'blogpost', 'comment', 'attachment' - 'export': 'space' - 'administer': 'space'
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanGrant anonymous users permission to use the operation.protected Longprotected OperationCheckResultAn operation and the target entity that it applies to, e.g.protected SubjectsThe users and/or groups that the permission applies to.protected BooleanGrants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpacePermission(Long id, Subjects subjects, OperationCheckResult operation, Boolean anonymousAccess, Boolean unlicensedAccess) Constructs a validated instance ofSpacePermission.Constructs a validated instance ofSpacePermission. -
Method Summary
Modifier and TypeMethodDescriptionGrant anonymous users permission to use the operation.anonymousAccess(Boolean anonymousAccess) Grant anonymous users permission to use the operation.protected booleanbooleaninthashCode()id()An operation and the target entity that it applies to, e.g.operation(OperationCheckResult operation) An operation and the target entity that it applies to, e.g.subjects()The users and/or groups that the permission applies to.The users and/or groups that the permission applies to.toString()Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.unlicensedAccess(Boolean unlicensedAccess) Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
-
Field Details
-
id
-
subjects
The users and/or groups that the permission applies to. -
operation
An operation and the target entity that it applies to, e.g. create page. -
anonymousAccess
Grant anonymous users permission to use the operation. -
unlicensedAccess
Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
-
-
Constructor Details
-
SpacePermission
Constructs a validated instance ofSpacePermission.- Parameters:
spec- the specification to process
-
SpacePermission
@Internal public SpacePermission(Long id, Subjects subjects, OperationCheckResult operation, Boolean anonymousAccess, Boolean unlicensedAccess) Constructs a validated instance ofSpacePermission.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
SpacePermission(Consumer)instead.- Parameters:
id- idsubjects- The users and/or groups that the permission applies to.operation- An operation and the target entity that it applies to, e.g. create page.anonymousAccess- Grant anonymous users permission to use the operation.unlicensedAccess- Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
-
SpacePermission
protected SpacePermission()
-
-
Method Details
-
id
-
subjects
The users and/or groups that the permission applies to. -
operation
An operation and the target entity that it applies to, e.g. create page. -
anonymousAccess
Grant anonymous users permission to use the operation. -
unlicensedAccess
Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation. -
id
- Returns:
this.
-
subjects
The users and/or groups that the permission applies to.- Returns:
this.
-
operation
An operation and the target entity that it applies to, e.g. create page.- Returns:
this.
-
anonymousAccess
Grant anonymous users permission to use the operation.- Returns:
this.
-
unlicensedAccess
Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-