Class PermissionFinder


  • @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class PermissionFinder
    extends Object
    Implements lookup for Permissions.
    • Constructor Detail

      • PermissionFinder

        public PermissionFinder()
    • Method Detail

      • findPermission

        @CheckForNull
        public static Permission findPermission​(String id)
        Attempt to match a given permission to what is defined in the UI.
        Parameters:
        id - String of the form "Title/Permission" (Look in the UI) for a particular permission
        Returns:
        a matched permission
      • findPermissionId

        @CheckForNull
        public static String findPermissionId​(String id)
        Attempt to match a given permission to what is defined in the UI.
        Parameters:
        id - String of the form "Title/Permission" (Look in the UI) for a particular permission
        Returns:
        a matched permission ID