Class RoleStrategyRootAction

java.lang.Object
com.michelin.cio.hudson.plugins.rolestrategy.RoleStrategyRootAction
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction, org.kohsuke.stapler.StaplerProxy

@Extension public class RoleStrategyRootAction extends Object implements RootAction, org.kohsuke.stapler.StaplerProxy
Provides a root-level link for users with ITEM_ROLES_ADMIN or AGENT_ROLES_ADMIN permissions who do not have SYSTEM_READ permission (and thus cannot access Manage Jenkins).

This action delegates to the RoleStrategyConfig for actual page handling.

  • Constructor Details

    • RoleStrategyRootAction

      public RoleStrategyRootAction()
  • Method Details

    • getIconFileName

      @CheckForNull public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      @CheckForNull public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      @CheckForNull public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getTarget

      public Object getTarget()
      Delegate all page handling to RoleStrategyConfig. This allows the RootAction to serve at /role-strategy while reusing all the logic.
      Specified by:
      getTarget in interface org.kohsuke.stapler.StaplerProxy