java.lang.Object | |
↳ | com.atlassian.jira.permission.DefaultPermissionSchemeService |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the specified permission scheme in the given project.
| |||||||||||
Creates a new permission scheme.
| |||||||||||
Deletes a permission scheme.
| |||||||||||
Returns a permission scheme with the specified id.
| |||||||||||
Returns all permission schemes sorted alphabetically by name.
| |||||||||||
Returns a permission scheme assigned to the specified project.
| |||||||||||
Updates a permission scheme identified by the given id.
|
Sets the specified permission scheme in the given project.
user | user that performs the operation. The user needs to be a JIRA administrator. |
---|---|
schemeId | scheme to assign to the project |
projectId | project to assign the scheme to |
Creates a new permission scheme. Permission scheme entities will also be created if provided.
The permission scheme is validated thoroughly, e.g. if there is a permission for a group, then the group must exist, ditto for project roles, users, custom fields etc. Custom fields must be of proper types.
Note that permission scheme names must be unique.
user | user that performs the operation. The user needs to be a JIRA administrator. |
---|---|
permissionScheme | permission scheme to create |
Deletes a permission scheme.
user | user that performs the operation. The user needs to be a JIRA administrator. |
---|---|
id | identifier of the permission scheme to be deleted |
Returns a permission scheme with the specified id.
The user needs to have access to the permission scheme. That means the user needs to be a JIRA administrator or administer a project which has the scheme assigned.
user | user that performs the operation |
---|---|
id | identifier of the permission scheme |
Returns all permission schemes sorted alphabetically by name.
Only schemes the user has access to will be returned. That means all the schemes if the user is a JIRA administrator, or the schemes assigned to projects the user administers.
user | user that performs the operation |
---|
Returns a permission scheme assigned to the specified project.
If there is no scheme explicitly assigned, the default scheme is returned.
user | user that performs the operation. The user needs a permission to administer the project. |
---|---|
projectId | identifier of the project |
Updates a permission scheme identified by the given id. Simple fields like name and description will be updated as well as permission scheme entities. After the update, the stored permission scheme will be exactly the same as the argument.
Validation is the same as in the createPermissionScheme(ApplicationUser, PermissionSchemeInput)
method.
user | user that performs the operation. The user needs to be a JIRA administrator. |
---|---|
id | id of the scheme to be updated |
permissionScheme | new data of the permission scheme |