public class PermissionHelper extends Object
Constructor and Description |
---|
PermissionHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addPermissionsToList(List<String> permissions,
Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier,
com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties permissionProperties,
boolean viewConfigurationPermissionEnabled) |
static com.atlassian.bamboo.specs.api.builders.permission.Permissions |
createFromAcl(org.acegisecurity.acls.Acl acl,
boolean viewConfigurationSupported) |
static List<String> |
createPermissionsForAnonymousUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier,
com.atlassian.bamboo.specs.api.model.permission.AnonymousUserPermissionsProperties anonymousUserPermissionProperties) |
static List<String> |
createPermissionsForGroups(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier,
List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionsList,
boolean viewConfigurationSupported) |
static List<String> |
createPermissionsForLoggedInUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier,
com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionProperties,
boolean viewConfigurationSupported) |
static List<String> |
createPermissionsForUsers(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier,
List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionsList,
boolean viewConfigurationSupported) |
static com.atlassian.bamboo.specs.api.builders.permission.PermissionType |
fromBambooPermission(BambooPermission bambooPermission) |
static BambooPermission |
toBambooPermission(com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType) |
protected static Collection<BambooPermission> |
toEffectiveBambooPermissions(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier,
Collection<com.atlassian.bamboo.specs.api.builders.permission.PermissionType> permissionTypes,
boolean viewConfigurationSupported) |
public static void addPermissionsToList(@NotNull List<String> permissions, @NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties permissionProperties, boolean viewConfigurationPermissionEnabled)
public static List<String> createPermissionsForUsers(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionsList, boolean viewConfigurationSupported)
public static List<String> createPermissionsForGroups(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionsList, boolean viewConfigurationSupported)
public static List<String> createPermissionsForLoggedInUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionProperties, boolean viewConfigurationSupported)
public static List<String> createPermissionsForAnonymousUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.AnonymousUserPermissionsProperties anonymousUserPermissionProperties)
protected static Collection<BambooPermission> toEffectiveBambooPermissions(@NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull Collection<com.atlassian.bamboo.specs.api.builders.permission.PermissionType> permissionTypes, boolean viewConfigurationSupported)
public static BambooPermission toBambooPermission(com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType)
public static com.atlassian.bamboo.specs.api.builders.permission.PermissionType fromBambooPermission(BambooPermission bambooPermission)
public static com.atlassian.bamboo.specs.api.builders.permission.Permissions createFromAcl(org.acegisecurity.acls.Acl acl, boolean viewConfigurationSupported)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.