Interface ManagedPermissionSchemeHelper
- All Known Implementing Classes:
ManagedPermissionSchemeHelperImpl
public interface ManagedPermissionSchemeHelper
A helper that can give out REST ready beans for permission scheme editing. Allows is to make rest requests AND
pre-prime via data providers on the web page.
This is different to the official permission scheme REST API in that its shaped to help support the internal JIRA
management screens, as opposed to the generic API. It has UI related data items that the public REST API has no use for
-
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> addManagedPermissionSchemeGrants(ApplicationUser user, Long permissionSchemeId, PermissionsInputBean inputBean) This allows a list of security types to be add to a list of permissions inside a permission schemeio.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> getManagedPermissionScheme(ApplicationUser user, Long permissionSchemeId) Gets information that allows the manage permission scheme to be displayedio.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> getManagedPermissionSchemeAddView(ApplicationUser user, Long permissionSchemeId, String permissionKey) Gets information that allows the add to permission scheme to be displayedio.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> Returns the security types split into primary and secondary types for display.io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> removeManagedPermissionSchemeGrants(ApplicationUser user, Long permissionSchemeId, List<Long> grantsToDelete) This allows a list of security types to be removed from a permission scheme
-
Method Details
-
getManagedPermissionScheme
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> getManagedPermissionScheme(ApplicationUser user, Long permissionSchemeId) Gets information that allows the manage permission scheme to be displayed- Parameters:
user- the user in playpermissionSchemeId- the permission scheme to show- Returns:
- either errors or the permission scheme in bean format
-
getManagedPermissionSchemeAddView
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> getManagedPermissionSchemeAddView(ApplicationUser user, Long permissionSchemeId, String permissionKey) Gets information that allows the add to permission scheme to be displayed- Parameters:
user- the user in playpermissionSchemeId- the permission scheme to be added topermissionKey- the key to add to- Returns:
- either errors or the permission scheme in bean format
-
getManagedPermissionSchemeAddViewSecurityTypes
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> getManagedPermissionSchemeAddViewSecurityTypes(ApplicationUser user) Returns the security types split into primary and secondary types for display.- Parameters:
user- the user in play- Returns:
- either errors or the security types in bean format
-
addManagedPermissionSchemeGrants
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> addManagedPermissionSchemeGrants(ApplicationUser user, Long permissionSchemeId, PermissionsInputBean inputBean) This allows a list of security types to be add to a list of permissions inside a permission scheme- Parameters:
user- the user in playpermissionSchemeId- the permission scheme to be deleted frominputBean- the grants things to add and to what permissions to add them to- Returns:
- either errors or the permission scheme in bean format
-
removeManagedPermissionSchemeGrants
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> removeManagedPermissionSchemeGrants(ApplicationUser user, Long permissionSchemeId, List<Long> grantsToDelete) This allows a list of security types to be removed from a permission scheme- Parameters:
user- the user in playpermissionSchemeId- the permission scheme to be deleted fromgrantsToDelete- the security type grants to remove from the scheme- Returns:
- either errors or the permission scheme in bean format
-