public static final class RoleBasedAuthorizationStrategy.DescriptorImpl
extends hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl
| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAssignSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Called on role assignment form's submission.
|
void |
doRolesSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Called on role management form's submission.
|
String |
getDisplayName() |
List<hudson.security.PermissionGroup> |
getGroups(String type)
Get the needed permissions groups.
|
boolean |
hasDangerousPermissions() |
hudson.security.AuthorizationStrategy |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Method called on Jenkins Manage panel submission, and plugin specific forms
to create the
AuthorizationStrategy object. |
boolean |
showPermission(String type,
hudson.security.Permission p) |
boolean |
showPermission(String type,
hudson.security.Permission p,
boolean showDangerous)
Check if the permission should be displayed.
|
create, doCheckName_, doCheckName, getAllGroups, showPermissionaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic String getDisplayName()
getDisplayName in class hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doRolesSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws UnsupportedEncodingException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException,
IOException
UnsupportedEncodingExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionIOException@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAssignSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws UnsupportedEncodingException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException,
IOException
UnsupportedEncodingExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionIOExceptionpublic hudson.security.AuthorizationStrategy newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
AuthorizationStrategy object.newInstance in class hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImplhudson.model.Descriptor.FormException@Nullable public List<hudson.security.PermissionGroup> getGroups(@Nonnull String type)
type - Role typenull if an unsupported type is defined.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean hasDangerousPermissions()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean showPermission(String type, hudson.security.Permission p)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean showPermission(String type, hudson.security.Permission p, boolean showDangerous)
Copyright © 2016–2018. All rights reserved.