Class PermissionHelper
java.lang.Object
com.atlassian.bamboo.configuration.external.helpers.PermissionHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPermissionsToList
(@NotNull List<String> permissions, @NotNull Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, @NotNull com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties permissionProperties, 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 isProjectLevelBuildResourcesEnabled) static com.atlassian.bamboo.specs.api.builders.permission.Permissions
createFromAcl
(org.acegisecurity.acls.Acl acl) createPermissionsForAnonymousUser
(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.AnonymousUserPermissionsProperties anonymousUserPermissionProperties) createPermissionsForGroups
(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionsList, boolean isProjectLevelBuildResourcesEnabled) createPermissionsForLoggedInUser
(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionProperties, boolean isProjectLevelBuildResourcesEnabled) createPermissionsForUsers
(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionsList, 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)
-
Constructor Details
-
PermissionHelper
public PermissionHelper()
-
-
Method Details
-
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 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 isProjectLevelBuildResourcesEnabled) -
createPermissionsForUsers
public static List<String> createPermissionsForUsers(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.UserPermissionProperties> userPermissionsList, boolean isProjectLevelBuildResourcesEnabled) -
createPermissionsForGroups
public static List<String> createPermissionsForGroups(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, List<com.atlassian.bamboo.specs.api.model.permission.GroupPermissionProperties> groupPermissionsList, boolean isProjectLevelBuildResourcesEnabled) -
createPermissionsForLoggedInUser
public static List<String> createPermissionsForLoggedInUser(Function<BambooPermission, Collection<BambooPermission>> permissionDependenciesSupplier, com.atlassian.bamboo.specs.api.model.permission.LoggedInUserPermissionsProperties loggedInUserPermissionProperties, 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)
-