Class PermissionHelper
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.helpers.PermissionHelper
-
public class PermissionHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description PermissionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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, boolean isProjectLevelBuildResourcesEnabled)
static void
addPermissionsToList(@NotNull List<String> permissions, @NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionProperties, @NotNull List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionProperties, @NotNull com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionsProperties, @NotNull com.atlassian.bamboo.specs.api.model.permission.AnonymousUserPermissionsProperties anonymousUserPermissionsProperties, boolean viewConfigurationPermissionEnabled, boolean isProjectLevelBuildResourcesEnabled)
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, boolean isProjectLevelBuildResourcesEnabled)
static List<String>
createPermissionsForLoggedInUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionProperties, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
static List<String>
createPermissionsForUsers(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionsList, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
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(@NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull Collection<com.atlassian.bamboo.specs.api.builders.permission.PermissionType> permissionTypes, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
-
-
-
Method Detail
-
addPermissionsToList
public static void addPermissionsToList(@NotNull @NotNull List<String> permissions, @NotNull @NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties permissionProperties, boolean viewConfigurationPermissionEnabled, boolean isProjectLevelBuildResourcesEnabled)
-
addPermissionsToList
public static void addPermissionsToList(@NotNull @NotNull List<String> permissions, @NotNull @NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull @NotNull List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionProperties, @NotNull @NotNull List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionProperties, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionsProperties, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.permission.AnonymousUserPermissionsProperties anonymousUserPermissionsProperties, boolean viewConfigurationPermissionEnabled, boolean isProjectLevelBuildResourcesEnabled)
-
createPermissionsForUsers
public static List<String> createPermissionsForUsers(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionsList, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
-
createPermissionsForGroups
public static List<String> createPermissionsForGroups(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionsList, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
-
createPermissionsForLoggedInUser
public static List<String> createPermissionsForLoggedInUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionProperties, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
-
createPermissionsForAnonymousUser
public static List<String> createPermissionsForAnonymousUser(Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.AnonymousUserPermissionsProperties anonymousUserPermissionProperties)
-
toEffectiveBambooPermissions
protected static Collection<BambooPermission> toEffectiveBambooPermissions(@NotNull @NotNull Function<BambooPermission,Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull @NotNull Collection<com.atlassian.bamboo.specs.api.builders.permission.PermissionType> permissionTypes, boolean viewConfigurationSupported, boolean isProjectLevelBuildResourcesEnabled)
-
toBambooPermission
public static BambooPermission toBambooPermission(com.atlassian.bamboo.specs.api.builders.permission.PermissionType permissionType)
-
fromBambooPermission
public static com.atlassian.bamboo.specs.api.builders.permission.PermissionType fromBambooPermission(BambooPermission bambooPermission)
-
createFromAcl
public static com.atlassian.bamboo.specs.api.builders.permission.Permissions createFromAcl(org.acegisecurity.acls.Acl acl, boolean viewConfigurationSupported)
-
-