public interface

ManagedPermissionSchemeEditingService

com.atlassian.jira.permission.management.ManagedPermissionSchemeEditingService
Known Indirect Subclasses

Summary

Public Methods
boolean addNewSecurityTypes(Scheme schemeObject, PermissionsInputBean inputBean)
Adds a set of security types values to a set of permissions.
ErrorCollection validateAddPermissions(ApplicationUser loggedInUser, PermissionsInputBean inputBean)
Validates whether the security types can be added to the permissions.

Public Methods

public boolean addNewSecurityTypes (Scheme schemeObject, PermissionsInputBean inputBean)

Adds a set of security types values to a set of permissions.

This method does not perform any validation see validateAddPermissions(ApplicationUser, PermissionsInputBean)

Parameters
schemeObject the scheme to add to
inputBean the input bean of changes
Returns
  • true when new entry has been added else false
Throws
DataAccessException unexpected error that occurred while adding entry to data store

public ErrorCollection validateAddPermissions (ApplicationUser loggedInUser, PermissionsInputBean inputBean)

Validates whether the security types can be added to the permissions.

Parameters
loggedInUser current logged-in user
inputBean the permission instructions under validation
Returns
  • an error collection filled with errors messages when validation fails else empty