Class 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
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.SpacePermission(Long id, Subjects subjects, OperationCheckResult operation, Boolean anonymousAccess, Boolean unlicensedAccess) Constructs a validated instance ofSpacePermission.Constructs a validated instance ofSpacePermission. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for anonymousAccess.anonymousAccess(Boolean anonymousAccess) Fluent setter for anonymousAccess.booleanGets the value of anonymousAccess.getId()Gets the value of id.Gets the value of operation.Gets the value of subjects.Gets the value of unlicensedAccess.inthashCode()id()Fluent getter for id.Fluent setter for id.Fluent getter for operation.operation(OperationCheckResult operation) Fluent setter for operation.voidsetAnonymousAccess(Boolean anonymousAccess) Sets the value of anonymousAccess.voidSets the value of id.voidsetOperation(OperationCheckResult operation) Sets the value of operation.voidsetSubjects(Subjects subjects) Sets the value of subjects.voidsetUnlicensedAccess(Boolean unlicensedAccess) Sets the value of unlicensedAccess.subjects()Fluent getter for subjects.Fluent setter for subjects.toString()Fluent getter for unlicensedAccess.unlicensedAccess(Boolean unlicensedAccess) Fluent setter for unlicensedAccess.
-
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 protected SpacePermission()Protected no-args constructor for use by serialization frameworks. -
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.
-
-
Method Details
-
id
-
id
-
getId
-
setId
-
subjects
Fluent getter for subjects.The users and/or groups that the permission applies to.
- Returns:
- subjects
-
subjects
Fluent setter for subjects.The users and/or groups that the permission applies to.
- Parameters:
subjects- subjects- Returns:
- this
-
getSubjects
Gets the value of subjects.The users and/or groups that the permission applies to.
- Returns:
- subjects
-
setSubjects
Sets the value of subjects.The users and/or groups that the permission applies to.
- Parameters:
subjects- subjects
-
operation
Fluent getter for operation.An operation and the target entity that it applies to, e.g. create page.
- Returns:
- operation
-
operation
Fluent setter for operation.An operation and the target entity that it applies to, e.g. create page.
- Parameters:
operation- operation- Returns:
- this
-
getOperation
Gets the value of operation.An operation and the target entity that it applies to, e.g. create page.
- Returns:
- operation
-
setOperation
Sets the value of operation.An operation and the target entity that it applies to, e.g. create page.
- Parameters:
operation- operation
-
anonymousAccess
Fluent getter for anonymousAccess.Grant anonymous users permission to use the operation.
- Returns:
- anonymousAccess
-
anonymousAccess
Fluent setter for anonymousAccess.Grant anonymous users permission to use the operation.
- Parameters:
anonymousAccess- anonymousAccess- Returns:
- this
-
getAnonymousAccess
Gets the value of anonymousAccess.Grant anonymous users permission to use the operation.
- Returns:
- anonymousAccess
-
setAnonymousAccess
Sets the value of anonymousAccess.Grant anonymous users permission to use the operation.
- Parameters:
anonymousAccess- anonymousAccess
-
unlicensedAccess
Fluent getter for unlicensedAccess.Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
- Returns:
- unlicensedAccess
-
unlicensedAccess
Fluent setter for unlicensedAccess.Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
- Parameters:
unlicensedAccess- unlicensedAccess- Returns:
- this
-
getUnlicensedAccess
Gets the value of unlicensedAccess.Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
- Returns:
- unlicensedAccess
-
setUnlicensedAccess
Sets the value of unlicensedAccess.Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
- Parameters:
unlicensedAccess- unlicensedAccess
-
equals
-
hashCode
-
toString
-