public class PermissionSchemeApi extends Object
| Constructor and Description |
|---|
PermissionSchemeApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<PermissionGrant> |
createPermissionGrant(Long schemeId,
PermissionGrant permissionGrant,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create permission grant
Creates a permission grant in a permission scheme.
|
io.reactivex.Single<PermissionScheme> |
createPermissionScheme(PermissionScheme requestBody,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create permission scheme
Creates a new permission scheme.
|
io.reactivex.Completable |
deletePermissionScheme(Long schemeId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete permission scheme
Deletes a permission scheme.
|
io.reactivex.Completable |
deletePermissionSchemeEntity(Long schemeId,
Long permissionId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete permission scheme grant
Deletes a permission grant from a permission scheme.
|
io.reactivex.Single<PermissionSchemes> |
getAllPermissionSchemes(Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all permission schemes
Returns all permission schemes.
|
io.reactivex.Single<PermissionScheme> |
getPermissionScheme(Long schemeId,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get permission scheme
Returns a permission scheme.
|
io.reactivex.Single<PermissionGrant> |
getPermissionSchemeGrant(Long schemeId,
Long permissionId,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get permission scheme grant
Returns a permission grant.
|
io.reactivex.Single<PermissionGrants> |
getPermissionSchemeGrants(Long schemeId,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get permission scheme grants
Returns all permission grants for a permission scheme.
|
io.reactivex.Single<PermissionScheme> |
updatePermissionScheme(Long schemeId,
PermissionScheme requestBody,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update permission scheme
Updates a permission scheme.
|
public PermissionSchemeApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<PermissionGrant> createPermissionGrant(Long schemeId, PermissionGrant permissionGrant, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Creates a permission grant in a permission scheme.
Permissions required: Administer Jira global permission.
schemeId - The ID of the permission scheme in which to create a new permission grant.
(required)permissionGrant - The permission grant to create.
(required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are always included when you specify any value:
permissions Returns all permission grants for each permission scheme.user Returns information about the user who is granted the permission.group Returns information about the group that is granted the permission.projectRole Returns information about the project role granted the permission.field Returns information about the custom field granted the permission.all Returns all expandable information.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermissionScheme> createPermissionScheme(PermissionScheme requestBody, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Creates a new permission scheme. You can create a permission scheme with or without defining a set of permission grants.
Permissions required: Administer Jira global permission.
requestBody - The permission scheme to create.
(required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are always included when you specify any value:
all Returns all expandable information.field Returns information about the custom field granted the permission.group Returns information about the group that is granted the permission.permissions Returns all permission grants for each permission scheme.projectRole Returns information about the project role granted the permission.user Returns information about the user who is granted the permission.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable deletePermissionScheme(Long schemeId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a permission scheme.
Permissions required: Administer Jira global permission.
schemeId - The ID of the permission scheme being deleted.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable deletePermissionSchemeEntity(Long schemeId, Long permissionId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a permission grant from a permission scheme. See About permission schemes and grants for more details.
Permissions required: Administer Jira global permission.
schemeId - The ID of the permission scheme to delete the permission grant from.
(required)permissionId - The ID of the permission grant to delete.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermissionSchemes> getAllPermissionSchemes(Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all permission schemes.
A permission scheme is a collection of permission grants. A permission grant consists of a holder and a permission.
The holder object contains information about the user or group being granted the permission. For example, the Administer projects permission is granted to a group named Teams in space administrators. In this case, the type is "type": "group", and the parameter is the group name, "parameter": "Teams in space administrators". The holder object is defined by the following properties:
type Identifies the user or group (see the list of types below).parameter The value of this property depends on the type. For example, if the type is a group, then you need to specify the group name.The following types are available. The expected values for the parameter are given in parenthesis (some types may not have a parameter):
anyone Grant for anonymous users.applicationRole Grant for users with access to the specified application (application name). See Update product access settings for more information.assignee Grant for the user currently assigned to an issue.group Grant for the specified group (group name).groupCustomField Grant for a user in the group selected in the specified custom field (custom field ID).projectLead Grant for a project lead.projectRole Grant for the specified project role (project role ID).reporter Grant for the user who reported the issue.sd.customer.portal.only Jira Service Desk only. Grants customers permission to access the customer portal but not Jira. See Customizing Jira Service Desk permissions for more information.user Grant for the specified user (user ID - historically this was the userkey but that is deprecated and the account ID should be used).userCustomField Grant for a user selected in the specified custom field (custom field ID).The built-in Jira permissions are listed below. Apps can also define custom permissions. See the project permission and global permission module documentation for more information.
Project permissions
ADMINISTER_PROJECTSBROWSE_PROJECTSMANAGE_SPRINTS_PERMISSION (Jira Software only)SERVICEDESK_AGENT (Jira Service Desk only)VIEW_DEV_TOOLS (Jira Software only)VIEW_READONLY_WORKFLOWIssue permissions
ASSIGNABLE_USERASSIGN_ISSUESCLOSE_ISSUESCREATE_ISSUESDELETE_ISSUESEDIT_ISSUESLINK_ISSUESMODIFY_REPORTERMOVE_ISSUESRESOLVE_ISSUESSCHEDULE_ISSUESSET_ISSUE_SECURITYTRANSITION_ISSUESVoters and watchers permissions
MANAGE_WATCHERSVIEW_VOTERS_AND_WATCHERSComments permissions
ADD_COMMENTSDELETE_ALL_COMMENTSDELETE_OWN_COMMENTSEDIT_ALL_COMMENTSEDIT_OWN_COMMENTSAttachments permissions
CREATE_ATTACHMENTSDELETE_ALL_ATTACHMENTSDELETE_OWN_ATTACHMENTSTime tracking permissions
DELETE_ALL_WORKLOGSDELETE_OWN_WORKLOGSEDIT_ALL_WORKLOGSEDIT_OWN_WORKLOGSWORK_ON_ISSUESPermissions required: Permission to access Jira.
expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are included when you specify any value:
all Returns all expandable information.field Returns information about the custom field granted the permission.group Returns information about the group that is granted the permission.permissions Returns all permission grants for each permission scheme.projectRole Returns information about the project role granted the permission.user Returns information about the user who is granted the permission.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermissionScheme> getPermissionScheme(Long schemeId, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a permission scheme.
Permissions required: Permission to access Jira.
schemeId - The ID of the permission scheme to return.
(required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are included when you specify any value:
all Returns all expandable information.field Returns information about the custom field granted the permission.group Returns information about the group that is granted the permission.permissions Returns all permission grants for each permission scheme.projectRole Returns information about the project role granted the permission.user Returns information about the user who is granted the permission.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermissionGrant> getPermissionSchemeGrant(Long schemeId, Long permissionId, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a permission grant.
Permissions required: Permission to access Jira.
schemeId - The ID of the permission scheme.
(required)permissionId - The ID of the permission grant.
(required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are always included when you specify any value:
all Returns all expandable information.field Returns information about the custom field granted the permission.group Returns information about the group that is granted the permission.permissions Returns all permission grants for each permission scheme.projectRole Returns information about the project role granted the permission.user Returns information about the user who is granted the permission.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermissionGrants> getPermissionSchemeGrants(Long schemeId, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all permission grants for a permission scheme.
Permissions required: Permission to access Jira.
schemeId - The ID of the permission scheme.
(required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are always included when you specify any value:
permissions Returns all permission grants for each permission scheme.user Returns information about the user who is granted the permission.group Returns information about the group that is granted the permission.projectRole Returns information about the project role granted the permission.field Returns information about the custom field granted the permission.all Returns all expandable information.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermissionScheme> updatePermissionScheme(Long schemeId, PermissionScheme requestBody, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Updates a permission scheme. Below are some important things to note when using this resource:
If you want to add or delete a permission grant instead of updating the whole list, see Create permission grant or Delete permission scheme entity.
See About permission schemes and grants for more details.
Permissions required: Administer Jira global permission.
schemeId - The ID of the permission scheme to update.
(required)requestBody - (required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma. Note that permissions are always included when you specify any value:
all Returns all expandable information.field Returns information about the custom field granted the permission.group Returns information about the group that is granted the permission.permissions Returns all permission grants for each permission scheme.projectRole Returns information about the project role granted the permission.user Returns information about the user who is granted the permission.restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.