Class PermissionHelper

java.lang.Object
com.atlassian.bamboo.configuration.external.helpers.PermissionHelper

public class PermissionHelper extends Object
  • 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)