com.michelin.cio.hudson.plugins.rolestrategy
Class RoleBasedAuthorizationStrategy.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<hudson.security.AuthorizationStrategy>
hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl
com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.DescriptorImpl
- All Implemented Interfaces:
- hudson.model.Saveable
- Enclosing class:
- RoleBasedAuthorizationStrategy
public static final class RoleBasedAuthorizationStrategy.DescriptorImpl
- extends hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl
Descriptor used to bind the strategy to the Web forms.
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Fields inherited from class hudson.model.Descriptor |
clazz |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
|
Method Summary |
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. |
java.lang.String |
getDisplayName()
|
java.util.List<hudson.security.PermissionGroup> |
getGroups(java.lang.String type)
Get the needed permissions groups. |
hudson.security.AuthorizationStrategy |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Method called on Hudson Manage panel submission, and plugin specific forms
to create the AuthorizationStrategy object. |
boolean |
showPermission(java.lang.String type,
hudson.security.Permission p)
Check if the permission should be shown. |
| Methods inherited from class hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl |
create, doCheckName, getAllGroups, showPermission |
| Methods inherited from class hudson.model.Descriptor |
calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleBasedAuthorizationStrategy.DescriptorImpl
public RoleBasedAuthorizationStrategy.DescriptorImpl()
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayName in class hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl
doRolesSubmit
public void doRolesSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.UnsupportedEncodingException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException,
java.io.IOException
- Called on role management form's submission.
- Throws:
java.io.UnsupportedEncodingException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
java.io.IOException
doAssignSubmit
public void doAssignSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.UnsupportedEncodingException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException,
java.io.IOException
- Called on role assignment form's submission.
- Throws:
java.io.UnsupportedEncodingException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
java.io.IOException
newInstance
public hudson.security.AuthorizationStrategy newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
- Method called on Hudson Manage panel submission, and plugin specific forms
to create the
AuthorizationStrategy object.
- Overrides:
newInstance in class hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl
- Throws:
hudson.model.Descriptor.FormException
getGroups
public java.util.List<hudson.security.PermissionGroup> getGroups(java.lang.String type)
- Get the needed permissions groups.
showPermission
public boolean showPermission(java.lang.String type,
hudson.security.Permission p)
- Check if the permission should be shown.
Copyright © 2010. All Rights Reserved.