Class BatchControlRoleBasedAuthorizationStrategy.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<AuthorizationStrategy>
io.jenkins.plugins.batchcontrol.security.BatchControlRoleBasedAuthorizationStrategy.DescriptorImpl
- Enclosing class:
BatchControlRoleBasedAuthorizationStrategy
@Extension(optional=true)
@Symbol("batchControlRoleBased")
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static final class BatchControlRoleBasedAuthorizationStrategy.DescriptorImpl
extends Descriptor<AuthorizationStrategy>
Listed on the security page. The parent's descriptor is final, so this one is separate.
Selecting it builds the strategy the way role-strategy does (keeping the installed roles, or
an admin role for the current user when coming from another strategy) and copies the
result into this class.
e2e-03 DEF-20, D-35g: role-strategy's Manage Roles and Assign Roles pages address the
installed strategy's descriptor (/descriptor/<class>/checkPattern and
/checkSidName). Those endpoints and the parent descriptor's role-page members are
forwarded to role-strategy's own descriptor, so behaviour is identical to the plain
strategy. The parent restricts most of them; access-modifier-suppressions allows
the forwarding calls. The web methods keep @RequirePOST and an inline permission
check; the parent performs its own checks as well.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckPattern(String value) Manage Roles (role-strategy 927manage-roles.jelly): validates a role pattern.doCheckSidName(String value, String type) Assign Roles (role-strategy 927index.jelly): resolves the sid typed in the add dialog as a user or group (typeUSERorGROUP).The permission groups shown for a role type.The space-separated ids of the permissions implyingp.newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) booleanshowPermission(String type, Permission p) Whether a permission is shown for a role type.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<AuthorizationStrategy>
-
newInstance
public AuthorizationStrategy newInstance(org.kohsuke.stapler.StaplerRequest2 req, @NonNull net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
newInstancein classDescriptor<AuthorizationStrategy>- Throws:
Descriptor.FormException
-
doCheckSidName
@SuppressRestrictedWarnings(com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.DescriptorImpl.class) public FormValidation doCheckSidName(@QueryParameter String value, @QueryParameter String type) Assign Roles (role-strategy 927index.jelly): resolves the sid typed in the add dialog as a user or group (typeUSERorGROUP). -
doCheckPattern
@SuppressRestrictedWarnings(com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.DescriptorImpl.class) public FormValidation doCheckPattern(@QueryParameter String value) Manage Roles (role-strategy 927manage-roles.jelly): validates a role pattern. -
getGroups
The permission groups shown for a role type. -
showPermission
@SuppressRestrictedWarnings(com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.DescriptorImpl.class) public boolean showPermission(String type, Permission p) Whether a permission is shown for a role type. -
impliedByList
@SuppressRestrictedWarnings(com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.DescriptorImpl.class) public String impliedByList(Permission p) The space-separated ids of the permissions implyingp.
-