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(); }
private void addPluginData(final Map<String, String> runParameters) { if (!runParameters.containsKey(HubConstantValues.PLUGIN_VERSION)) { runParameters.put(HubConstantValues.PLUGIN_VERSION, pluginDescriptor.getPluginVersion()); } if (!runParameters.containsKey(HubConstantValues.PLUGIN_NAME)) { runParameters.put(HubConstantValues.PLUGIN_NAME, pluginDescriptor.getPluginName()); } }
params.put("jspHome",this.myPluginDescriptor.getPluginResourcesPath()); params.put("includeJquery", Boolean.toString(this.myServer.getServerMajorVersion() < 7)); params.put("rootContext", myServer.getServerRootPath()); params.put("pluginVersion", myPluginDescriptor.getPluginVersion()); return new ModelAndView(myPluginDescriptor.getPluginResourcesPath() + "WebHook/webhookEdit.jsp", params);
public BaseRunTypeExtension(@NotNull final WebControllerManager webControllerManager, @NotNull final PluginDescriptor pluginDescriptor, @NotNull final DeployableArtifactoryServers deployableArtifactoryServers) { this.webControllerManager = webControllerManager; this.pluginDescriptor = pluginDescriptor; // Gets the plugin version from the pluginDescriptor and sets it to the pluginVersion String in ConstantValues. ConstantValues.setPluginVersion(pluginDescriptor.getPluginVersion()); this.deployableArtifactoryServers = deployableArtifactoryServers; }
public WebHookProjectSettingsTab(@NotNull PagePlaces pagePlaces, @NotNull ProjectSettingsManager settings, @NotNull PluginDescriptor pluginDescriptor, @NotNull WebHookPayloadManager payloadManager, @NotNull WebHookTemplateResolver templateResolver) { super(pagePlaces, pluginDescriptor.getPluginName(), "WebHook/webHookProjectSettingsTab.jsp", TAB_TITLE); this.projSettings = settings; this.myManager = payloadManager; this.myTemplateResolver = templateResolver; }
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; }
protected SlackNotificationProjectTabExtension( PagePlaces pagePlaces, ProjectManager projectManager, ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) { super("slackNotifications", "Slack", pagePlaces, projectManager); this.projSettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); }
public WebHookPreviewAndExecuteController(SBuildServer server, WebHookUserRequestedExecutor webHookUserRequestedExecutor, PluginDescriptor pluginDescriptor, WebControllerManager webManager) { super(server); myWebManager = webManager; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myWebHookUserRequestedExecutor = webHookUserRequestedExecutor; }
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; }
@Override public String getEditRunnerParamsJspFilePath() { return pluginDescriptor.getPluginResourcesPath("editAnsibleRun.jsp"); }
@Override public String getViewRunnerParamsJspFilePath() { return pluginDescriptor.getPluginResourcesPath("viewAnsibleRun.jsp"); }
private String getJspPage(PluginDescriptor descriptor) { return descriptor.getPluginResourcesPath("resultsTab.jsp"); }
@Override @Nullable public String getEditParametersUrl() { return pluginDescriptor.getPluginResourcesPath("hubBuildFeatureEdit.html"); }
@Nullable @Override public String getEditParametersUrl() { return pluginDescriptor.getPluginResourcesPath(EDIT_URL); }
@Nullable @Override public String getEditParametersUrl() { return pluginDescriptor.getPluginResourcesPath(EDIT_URL); }
@Nullable @Override public String getEditParametersUrl() { return pluginDescriptor.getPluginResourcesPath(EDIT_URL); }
@Nullable @Override protected ModelAndView doHandle(@NotNull final HttpServletRequest request, @NotNull final HttpServletResponse response) { final ModelAndView mw = new ModelAndView( myDescriptor.getPluginResourcesPath("failure/hubBuildFeatureEdit.jsp")); return mw; }
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; } }); }
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; } }); }
protected WebHookProjectTabExtension( @NotNull PagePlaces pagePlaces, @NotNull ProjectManager projectManager, @NotNull ProjectSettingsManager projectSettingsManager, @NotNull PluginDescriptor pluginDescriptor, @NotNull WebHookHistoryRepository webHookHistoryRepository, @NotNull WebAddressTransformer webAddressTransformer) { super("webHooks", "WebHooks", pagePlaces, projectManager); this.myProjectSettingsManager = projectSettingsManager; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myWebHookHistoryRepository = webHookHistoryRepository; myWebAddressTransformer = webAddressTransformer; }