Class PluginPermissionsUtil
java.lang.Object
com.google.gerrit.server.permissions.PluginPermissionsUtil
Utilities for plugin permissions.
-
Method Summary
Modifier and TypeMethodDescriptionCollects all the plugin declared capabilities.Collects all the plugin declared project permissions.static boolean
Checks if a given name matches the plugin declared permission name pattern for configs.
-
Method Details
-
collectPluginCapabilities
Collects all the plugin declared capabilities.- Returns:
- a map of plugin declared capabilities with "pluginName" as its keys and "pluginName-{permissionName}" as its values.
-
collectPluginProjectPermissions
Collects all the plugin declared project permissions.- Returns:
- a map of plugin declared project permissions with "{pluginName}" as its keys and "plugin-{pluginName}-{permissionName}" as its values.
-
isValidPluginPermission
Checks if a given name matches the plugin declared permission name pattern for configs.- Parameters:
name
- a config name which may stand for a plugin permission.- Returns:
- whether the name matches the plugin permission name pattern for configs.
-