protected SlackNotificationBuildTabExtension( PagePlaces pagePlaces, ProjectManager projectManager, ProjectSettingsManager settings, WebControllerManager manager, PluginDescriptor pluginDescriptor) { //super(myTitle, myTitle, null, projectManager); super(SLACK_NOTIFICATIONS, "Slack", manager, projectManager); this.projSettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); }
public void register(){ myWebManager.registerController("/slacknotifications/index.html", this); }
protected void registerView(@NotNull final String url, @NotNull final String jsp) { viewUrl = pluginDescriptor.getPluginResourcesPath(url); final String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(viewUrl, new BaseController() { @Override protected ModelAndView doHandle(final HttpServletRequest request, final HttpServletResponse response) { final ModelAndView modelAndView = new ModelAndView(actualJsp); modelAndView.getModel().put("controllerUrl", viewUrl); return modelAndView; } }); }
public SlackAdminPage(PagePlaces pagePlaces, PluginDescriptor descriptor , SlackConfigProcessor configProcessor) { super(pagePlaces); setPluginName("slackNotifier"); setIncludeUrl(descriptor.getPluginResourcesPath("/admin/slackAdminPage.jsp")); setTabTitle("Slack Notifier"); setPosition(PositionConstraint.after("clouds", "email", "jabber")); register(); this.configProcesser = configProcessor ; }
protected void registerView(@NotNull final String url, @NotNull final String jsp) { viewUrl = pluginDescriptor.getPluginResourcesPath(url); final String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(viewUrl, new BaseController() { @Override protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception { ModelAndView modelAndView = new ModelAndView(actualJsp); modelAndView.getModel().put("controllerUrl", viewUrl); modelAndView.getModel().put("deployableArtifactoryServers", deployableArtifactoryServers); return modelAndView; } }); }
public SlackNotificationAjaxEditPageController(SBuildServer server, WebControllerManager webManager, ProjectSettingsManager settings, SlackNotificationProjectSettings whSettings, SlackNotificationPayloadManager manager, PluginDescriptor pluginDescriptor, SlackNotificationMainSettings mainSettings) { super(server); myWebManager = webManager; myServer = server; mySettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myManager = manager; myMainSettings = mainSettings; }
public void register(){ myWebManager.registerController("/slacknotifications/ajaxEdit.html", this); }
public HubBuildFeatureController(@NotNull final PluginDescriptor descriptor, @NotNull final WebControllerManager web) { myDescriptor = descriptor; web.registerController(myDescriptor.getPluginResourcesPath("hubBuildFeatureEdit.html"), this); }
protected SlackNotificationProjectTabExtension( PagePlaces pagePlaces, ProjectManager projectManager, ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) { super("slackNotifications", "Slack", pagePlaces, projectManager); this.projSettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); }
public void register(){ myWebManager.registerController("/slacknotifications/settingsList.html", this); }
public WebHookEndPointViewerController( SBuildServer server, WebHookEndPointContentStore endPointContentStore, PluginDescriptor pluginDescriptor, WebControllerManager webControllerManager) { super(server); this.endPointContentStore = endPointContentStore; this.myPluginPath = pluginDescriptor.getPluginResourcesPath(); this.myWebManager = webControllerManager; this.myWebManager.registerController(MY_URL, this); Loggers.SERVER.info("EndPointController:: Registering"); }
public WebHookPreviewAndExecuteController(SBuildServer server, WebHookUserRequestedExecutor webHookUserRequestedExecutor, PluginDescriptor pluginDescriptor, WebControllerManager webManager) { super(server); myWebManager = webManager; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myWebHookUserRequestedExecutor = webHookUserRequestedExecutor; }
public void register(){ myWebManager.registerController("/webhooks/ajaxEdit.html", this); }
public WebHookHistoryController( @NotNull SBuildServer server, @NotNull PluginDescriptor pluginDescriptor, @NotNull WebControllerManager webControllerManager, @NotNull WebHookHistoryRepository webHookHistoryRepository ) { super(server); this.myPluginPath = pluginDescriptor.getPluginResourcesPath(); this.myWebHookHistoryRepository = webHookHistoryRepository; webControllerManager.registerController(MY_URL, this); }
public WebHookAjaxEditPageController(SBuildServer server, WebControllerManager webManager, ProjectSettingsManager settings, WebHookPayloadManager manager, WebHookTemplateResolver templateResolver, PluginDescriptor pluginDescriptor, WebHookAuthenticatorProvider authenticatorProvider) { super(server); myWebManager = webManager; mySettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myManager = manager; myTemplateResolver = templateResolver; myAuthenticatorProvider = authenticatorProvider; }
public void register(){ myWebManager.registerController("/webhooks/index.html", this); }
@Override public String getViewRunnerParamsJspFilePath() { return pluginDescriptor.getPluginResourcesPath("viewAnsibleRun.jsp"); }
public void register(){ myWebManager.registerController("/webhooks/settingsList.html", this); }
@Override public String getEditRunnerParamsJspFilePath() { return pluginDescriptor.getPluginResourcesPath("editAnsibleRun.jsp"); }
public void register(){ myWebManager.registerController("/webhooks/testWebHook.html", this); }