public class ManagedPermissionSchemeHelperImpl extends Object implements ManagedPermissionSchemeHelper
Modifier and Type | Field and Description |
---|---|
static FeatureFlag |
EXTENDEDADMIN_HIDE_FEATURE |
Constructor and Description |
---|
ManagedPermissionSchemeHelperImpl(PermissionSchemeManager permissionSchemeManager,
PermissionSchemeService permissionSchemeService,
PermissionManager permissionManager,
PermissionTypeManager permissionTypeManager,
I18nHelper i18nHelper,
SecurityTypeValuesService securityTypeValuesService,
ManagedPermissionSchemeEditingService managedPermissionSchemeEditingService,
com.atlassian.event.api.EventPublisher eventPublisher,
UserManager userManager,
FeatureManager featureManager,
PermissionSchemeAttributeManager permissionSchemeAttributeManager,
SoyTemplateRendererProvider soyTemplateRendererProvider) |
Modifier and Type | Method and Description |
---|---|
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
|
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> |
getManagedPermissionScheme(ApplicationUser user,
Long permissionSchemeId)
Gets information that allows the manage permission scheme to be displayed
|
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
|
io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> |
getManagedPermissionSchemeAddViewSecurityTypes(ApplicationUser user)
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
|
public static final FeatureFlag EXTENDEDADMIN_HIDE_FEATURE
public ManagedPermissionSchemeHelperImpl(PermissionSchemeManager permissionSchemeManager, PermissionSchemeService permissionSchemeService, PermissionManager permissionManager, PermissionTypeManager permissionTypeManager, I18nHelper i18nHelper, SecurityTypeValuesService securityTypeValuesService, ManagedPermissionSchemeEditingService managedPermissionSchemeEditingService, com.atlassian.event.api.EventPublisher eventPublisher, UserManager userManager, FeatureManager featureManager, PermissionSchemeAttributeManager permissionSchemeAttributeManager, SoyTemplateRendererProvider soyTemplateRendererProvider)
public io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> getManagedPermissionScheme(ApplicationUser user, Long permissionSchemeId)
ManagedPermissionSchemeHelper
getManagedPermissionScheme
in interface ManagedPermissionSchemeHelper
user
- the user in playpermissionSchemeId
- the permission scheme to showpublic io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> getManagedPermissionSchemeAddView(ApplicationUser user, Long permissionSchemeId, String permissionKey)
ManagedPermissionSchemeHelper
getManagedPermissionSchemeAddView
in interface ManagedPermissionSchemeHelper
user
- the user in playpermissionSchemeId
- the permission scheme to be added topermissionKey
- the key to add topublic io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionAddBean> getManagedPermissionSchemeAddViewSecurityTypes(ApplicationUser user)
ManagedPermissionSchemeHelper
getManagedPermissionSchemeAddViewSecurityTypes
in interface ManagedPermissionSchemeHelper
user
- the user in playpublic io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> removeManagedPermissionSchemeGrants(ApplicationUser user, Long permissionSchemeId, List<Long> grantsToDelete)
ManagedPermissionSchemeHelper
removeManagedPermissionSchemeGrants
in interface ManagedPermissionSchemeHelper
user
- the user in playpermissionSchemeId
- the permission scheme to be deleted fromgrantsToDelete
- the security type grants to remove from the schemepublic io.atlassian.fugue.Either<ErrorCollection,ProjectPermissionSchemeBean> addManagedPermissionSchemeGrants(ApplicationUser user, Long permissionSchemeId, PermissionsInputBean inputBean)
ManagedPermissionSchemeHelper
addManagedPermissionSchemeGrants
in interface ManagedPermissionSchemeHelper
user
- the user in playpermissionSchemeId
- the permission scheme to be deleted frominputBean
- the grants things to add and to what permissions to add them toCopyright © 2002-2024 Atlassian. All Rights Reserved.