Class RoleStrategyConfig
java.lang.Object
hudson.model.ManagementLink
com.michelin.cio.hudson.plugins.rolestrategy.RoleStrategyConfig
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject
Add the role management link to the Manage Hudson page.
- Author:
- Thomas Maurel
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.CategoryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.ManagementLink
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAssignSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Called on role's assignment form submission.voiddoRolesSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Called on roles management form submission.voiddoTemplatesSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Called on roles generator form submission.static RoleStrategyConfigget()Get the singleton instance of RoleStrategyConfig.Text displayed for the roles assignment panel.The description of the link.Text displayed in the Manage Hudson panel.final RoleTypeProvides the icon for the Manage Hudson page link.Text displayed for the roles management panel.static intfinal RoleTypefinal RoleTypeRetrieve theRoleBasedAuthorizationStrategyobject from the Hudson instance.URL name for the strategy management.Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategory, getRequiresConfirmation, getRequiresPOST
-
Constructor Details
-
RoleStrategyConfig
public RoleStrategyConfig()
-
-
Method Details
-
get
Get the singleton instance of RoleStrategyConfig.- Returns:
- The RoleStrategyConfig instance
-
getMaxRows
public static int getMaxRows() -
getIconFileName
Provides the icon for the Manage Hudson page link.- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink- Returns:
- Path to the icon, or
nullif not enabled
-
getRequiredPermission
- Overrides:
getRequiredPermissionin classManagementLink
-
getUrlName
URL name for the strategy management.- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink- Returns:
- Path to the strategy admin panel
-
getCategoryName
- Overrides:
getCategoryNamein classManagementLink
-
getDisplayName
Text displayed in the Manage Hudson panel.- Returns:
- Link text in the Admin panel
-
getAssignRolesName
Text displayed for the roles assignment panel.- Returns:
- Title of the Role assignment panel
-
getManageRolesName
Text displayed for the roles management panel.- Returns:
- Title of the Role management panel
-
getDescription
The description of the link.- Overrides:
getDescriptionin classManagementLink- Returns:
- The description of the link
-
getStrategy
Retrieve theRoleBasedAuthorizationStrategyobject from the Hudson instance.Used by the views to build matrix.
- Returns:
- The
RoleBasedAuthorizationStrategyobject.nullif the strategy is not used.
-
doRolesSubmit
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void doRolesSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Called on roles management form submission.- Throws:
IOExceptionjakarta.servlet.ServletException
-
doTemplatesSubmit
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void doTemplatesSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Called on roles generator form submission.- Throws:
IOExceptionjakarta.servlet.ServletException
-
doAssignSubmit
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void doAssignSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Called on role's assignment form submission.- Throws:
IOExceptionjakarta.servlet.ServletException
-
getRoleMacroExtensions
-
getGlobalRoleType
-
getProjectRoleType
-
getSlaveRoleType
-