Class PermissionFinder
- java.lang.Object
-
- com.microsoft.jenkins.azuread.integrations.casc.PermissionFinder
-
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PermissionFinder extends Object
Implements lookup forPermission
s.
-
-
Constructor Summary
Constructors Constructor Description PermissionFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Permission
findPermission(String id)
Attempt to match a given permission to what is defined in the UI.static String
findPermissionId(String id)
Attempt to match a given permission to what is defined in the UI.
-
-
-
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
-
-