Class PermissionHelper


  • public class PermissionHelper
    extends Object
    • Constructor Detail

      • PermissionHelper

        public PermissionHelper()
    • 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)
      • 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)