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
Permission
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Permission
findPermission
(String id) Attempt to match a given permission to what is defined in the UI.static String
Attempt to match a given permission to what is defined in the UI.
-
Constructor Details
-
PermissionFinder
public PermissionFinder()
-
-
Method Details
-
findPermission
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
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
-