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 WebHookPreviewAndExecuteController(SBuildServer server, WebHookUserRequestedExecutor webHookUserRequestedExecutor, PluginDescriptor pluginDescriptor, WebControllerManager webManager) { super(server); myWebManager = webManager; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myWebHookUserRequestedExecutor = webHookUserRequestedExecutor; }
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 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 @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 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; } }); }
public HubBuildFeatureController(@NotNull final PluginDescriptor descriptor, @NotNull final WebControllerManager web) { myDescriptor = descriptor; web.registerController(myDescriptor.getPluginResourcesPath("hubBuildFeatureEdit.html"), this); }
protected void registerEdit(@NotNull final String url, @NotNull final String jsp) { editUrl = pluginDescriptor.getPluginResourcesPath(url); final String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(editUrl, new HubRunTypeConfigController(editUrl, actualJsp, serverPeristanceManager)); }
public S3StorageType(@NotNull ArtifactStorageTypeRegistry registry, @NotNull PluginDescriptor descriptor, @NotNull ServerSettings serverSettings, @NotNull ServerPaths serverPaths) { mySettingsJSP = descriptor.getPluginResourcesPath(S3Constants.S3_SETTINGS_PATH + ".jsp"); myServerSettings = serverSettings; myServerPaths = serverPaths; registry.registerStorageType(this); }
protected void registerEdit(@NotNull final String url, @NotNull final String jsp) { editUrl = pluginDescriptor.getPluginResourcesPath(url); String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(editUrl, new ArtifactoryRunTypeConfigController(editUrl, actualJsp, deployableArtifactoryServers)); }
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 SlackProjectTab(PagePlaces pagePlaces , ProjectManager projectManager , PluginDescriptor pluginDescriptor , ProjectSettingsManager projectSettingsManager , SlackConfigProcessor slackConfigProcessor) { super("slackNotifierProjectTab","Slack" , pagePlaces , projectManager); setIncludeUrl(pluginDescriptor.getPluginResourcesPath("/admin/slackProjectPage.jsp")); this.slackConfigProcessor = slackConfigProcessor; this.projectSettingsManager = projectSettingsManager ; }
public ArtifactoryBuildTriggerService(@NotNull final PluginDescriptor descriptor, @NotNull final WebControllerManager wcm, @NotNull final DeployableArtifactoryServers deployableServers) { this.deployableServers = deployableServers; this.watchedItems = HashMultimap.create(); this.watchedItems = Multimaps.synchronizedMultimap(watchedItems); actualUrl = descriptor.getPluginResourcesPath("editArtifactoryTrigger.html"); final String actualJsp = descriptor.getPluginResourcesPath("editArtifactoryTrigger.jsp"); wcm.registerController(actualUrl, new EditArtifactoryTriggerController(actualUrl, actualJsp, deployableServers)); }
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 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 ; }