Java Code Examples for jetbrains.buildServer.web.openapi.WebControllerManager#registerController()
The following examples show how to use
jetbrains.buildServer.web.openapi.WebControllerManager#registerController() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KubeProfileEditController.java From teamcity-kubernetes-plugin with Apache License 2.0 | 6 votes |
public KubeProfileEditController(@NotNull final SBuildServer server, @NotNull final WebControllerManager web, @NotNull final PluginDescriptor pluginDescriptor, @NotNull final AgentPoolManager agentPoolManager, @NotNull final KubeAuthStrategyProvider authStrategyProvider, @NotNull final BuildAgentPodTemplateProviders podTemplateProviders, @NotNull final ChooserController.Namespaces namespacesChooser, @NotNull final ChooserController.Deployments deploymentsChooser, @NotNull final KubeDeleteImageDialogController kubeDeleteImageDialogController) { super(server); myPluginDescriptor = pluginDescriptor; myPath = pluginDescriptor.getPluginResourcesPath(EDIT_KUBE_HTML); myAgentPoolManager = agentPoolManager; myAuthStrategyProvider = authStrategyProvider; myPodTemplateProviders = podTemplateProviders; myNamespacesChooser = namespacesChooser; myDeploymentsChooser = deploymentsChooser; myKubeDeleteImageDialogController = kubeDeleteImageDialogController; web.registerController(myPath, this); }
Example 2
Source File: DownloadSymbolsController.java From teamcity-symbol-server with Apache License 2.0 | 6 votes |
public DownloadSymbolsController(@NotNull SBuildServer server, @NotNull WebControllerManager controllerManager, @NotNull AuthorizationInterceptor authInterceptor, @NotNull SecurityContextEx securityContext, @NotNull MetadataStorage buildMetadataStorage, @NotNull AuthHelper authHelper, @NotNull SymbolsCache symbolsCache) { super(server); mySecurityContext = securityContext; myBuildMetadataStorage = buildMetadataStorage; myAuthHelper = authHelper; mySymbolsCache = symbolsCache; final String path = SymbolsConstants.APP_SYMBOLS + "/**"; controllerManager.registerController(path, this); authInterceptor.addPathNotRequiringAuth(path); }
Example 3
Source File: PhabricatorPlugin.java From TeamCity-Phabricator-Plugin with MIT License | 6 votes |
public PhabricatorPlugin( @NotNull final PluginDescriptor pluginDescriptor, @NotNull final WebControllerManager webControllerManager ){ final String jsp = pluginDescriptor.getPluginResourcesPath("tcPhabSettings.jsp"); final String html = pluginDescriptor.getPluginResourcesPath("tcPhabSettings.html"); webControllerManager.registerController(html, new BaseController() { @Override protected ModelAndView doHandle(@NotNull HttpServletRequest httpServletRequest, @NotNull HttpServletResponse httpServletResponse) throws Exception { ModelAndView mv = new ModelAndView(jsp); mv.getModel().put("requestUrl", html); mv.getModel().put("buildTypeId", getBuildTypeIdParameter(httpServletRequest)); return mv; } }); this.myEditUrl = html; }
Example 4
Source File: ManageSQSActionController.java From TeamCity.SonarQubePlugin with Apache License 2.0 | 6 votes |
public ManageSQSActionController(@NotNull final WebControllerManager controllerManager, @NotNull final SQSManager sqsManager, @NotNull final ProjectManager projectManager, @NotNull final SecurityContext securityContext, @NotNull final SQSInfoFactory sqsInfoFactory, @NotNull final ConfigActionFactory configActionFactory) { super(controllerManager); mySQSInfoFactory = sqsInfoFactory; myConfigActionFactory = configActionFactory; controllerManager.registerController("/admin/manageSonarServers.html", this); registerAction(this); mySqsManager = sqsManager; myProjectManager = projectManager; this.securityContext = securityContext; }
Example 5
Source File: SlackNotifierSettingsController.java From tcSlackBuildNotifier with MIT License | 6 votes |
public SlackNotifierSettingsController(@NotNull SBuildServer server, @NotNull ServerPaths serverPaths, @NotNull WebControllerManager manager, @NotNull SlackNotificationMainConfig config, SlackNotificationPayloadManager payloadManager, PluginDescriptor descriptor){ this.server = server; this.serverPaths = serverPaths; this.manager = manager; this.config = config; this.payloadManager = payloadManager; this.descriptor = descriptor; manager.registerController(CONTROLLER_PATH, this); }
Example 6
Source File: ChooserController.java From teamcity-kubernetes-plugin with Apache License 2.0 | 5 votes |
public ChooserController(WebControllerManager web, PluginDescriptor pluginDescriptor, KubeAuthStrategyProvider authStrategyProvider) { myPluginDescriptor = pluginDescriptor; myAuthStrategyProvider = authStrategyProvider; web.registerController(getUrl(), this); }
Example 7
Source File: KubeDeleteImageDialogController.java From teamcity-kubernetes-plugin with Apache License 2.0 | 5 votes |
public KubeDeleteImageDialogController(WebControllerManager web, PluginDescriptor pluginDescriptor, CloudManagerBase cloudManager) { myPluginDescriptor = pluginDescriptor; myCloudManager = cloudManager; web.registerController(getUrl(), this); }
Example 8
Source File: TelegramSettingsController.java From teamcity-telegram-plugin with Apache License 2.0 | 5 votes |
public TelegramSettingsController(@NotNull WebControllerManager webManager, @NotNull TelegramSettingsManager settingsManager, @NotNull TelegramBotManager botManager) { webManager.registerController("/telegram/notifierSettings.html", this); this.settingsManager = settingsManager; this.botManager = botManager; }
Example 9
Source File: S3SettingsController.java From teamcity-s3-artifact-storage-plugin with Apache License 2.0 | 5 votes |
public S3SettingsController(@NotNull final WebControllerManager manager, @NotNull final PluginDescriptor descriptor, @NotNull final ServerPaths serverPaths) { myServerPaths = serverPaths; final String path = descriptor.getPluginResourcesPath(S3Constants.S3_SETTINGS_PATH + ".html"); manager.registerController(path, this); myHandlers.put("buckets", new BucketsResourceHandler()); myHandlers.put("bucketLocation", new BucketLocationHandler()); }
Example 10
Source File: S3PreSignedUrlController.java From teamcity-s3-artifact-storage-plugin with Apache License 2.0 | 5 votes |
public S3PreSignedUrlController(@NotNull WebControllerManager web, @NotNull RunningBuildsManagerEx runningBuildsManager, @NotNull S3PreSignedUrlProvider preSignedUrlProvider, @NotNull ServerArtifactStorageSettingsProvider storageSettingsProvider) { myRunningBuildsManager = runningBuildsManager; myPreSignedUrlProvider = preSignedUrlProvider; myStorageSettingsProvider = storageSettingsProvider; web.registerController(ARTEFACTS_S3_UPLOAD_PRESIGN_URLS_HTML, this); }
Example 11
Source File: IndexSymbolsBuildFeature.java From teamcity-symbol-server with Apache License 2.0 | 5 votes |
public IndexSymbolsBuildFeature(final PluginDescriptor pluginDescriptor, final WebControllerManager web) { final String jsp = pluginDescriptor.getPluginResourcesPath("editSymbolsBuildFeatureParams.jsp"); final String html = pluginDescriptor.getPluginResourcesPath("symbolIndexerSettings.html"); web.registerController(html, new BaseController() { @Override protected ModelAndView doHandle(final HttpServletRequest request, final HttpServletResponse response) throws Exception { return new ModelAndView(jsp); } }); myEditParametersUrl = html; }
Example 12
Source File: DownloadSourcesController.java From teamcity-symbol-server with Apache License 2.0 | 5 votes |
public DownloadSourcesController(@NotNull SBuildServer server, @NotNull WebControllerManager webManager, @NotNull AuthorizationInterceptor authInterceptor, @NotNull AuthHelper authHelper) { super(server); myAuthHelper = authHelper; final String path = SymbolsConstants.APP_SOURCES + "/**"; webManager.registerController(path, this); authInterceptor.addPathNotRequiringAuth(path); }
Example 13
Source File: LoginViaOAuthController.java From teamcity-oauth with Apache License 2.0 | 5 votes |
public LoginViaOAuthController(@NotNull final WebControllerManager webManager, @NotNull final AuthorizationInterceptor authInterceptor, @NotNull final AuthenticationSchemeProperties schemeProperties, @NotNull final OAuthClient authClient) { this.schemeProperties = schemeProperties; this.authClient = authClient; webManager.registerController(PluginConstants.Web.LOGIN_PATH, this); authInterceptor.addPathNotRequiringAuth(PluginConstants.Web.LOGIN_PATH); }
Example 14
Source File: ReportsController.java From appengine-tck with Apache License 2.0 | 4 votes |
public ReportsController(@NotNull final ReportsDescriptor descriptor, @NotNull final WebControllerManager web) { web.registerController(descriptor.getFeaturePath(), this); this.viewPath = descriptor.getViewPath(); }