Class PermissionFinder

java.lang.Object
org.jenkinsci.plugins.matrixauth.integrations.PermissionFinder

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

    • PermissionFinder

      public PermissionFinder()
  • Method Details

    • 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