@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PermissionFinder extends Object
Permission
s.Constructor and Description |
---|
PermissionFinder() |
Modifier and Type | Method and 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.
|
@CheckForNull public static Permission findPermission(String id)
id
- String of the form "Title/Permission" (Look in the UI) for a particular permission@CheckForNull public static String findPermissionId(String id)
id
- String of the form "Title/Permission" (Look in the UI) for a particular permissionCopyright © 2016–2021. All rights reserved.