Java Code Examples for jetbrains.buildServer.web.openapi.PluginDescriptor#getPluginResourcesPath()
The following examples show how to use
jetbrains.buildServer.web.openapi.PluginDescriptor#getPluginResourcesPath() .
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: 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 3
Source File: VMWareCloudClientFactory.java From teamcity-vmware-plugin with Apache License 2.0 | 6 votes |
public VMWareCloudClientFactory(@NotNull final CloudRegistrar cloudRegistrar, @NotNull final PluginDescriptor pluginDescriptor, @NotNull final ServerPaths serverPaths, @NotNull final CloudInstancesProvider instancesProvider, @NotNull final CloudManagerBase cloudManager, @NotNull final ServerSettings serverSettings, @NotNull final VmwareUpdateTaskManager updateTaskManager, @NotNull final SSLTrustStoreProvider sslTrustStoreProvider ) { super(cloudRegistrar); myInstancesProvider = instancesProvider; myIdxStorage = new File(serverPaths.getPluginDataDirectory(), "vmwareIdx"); myCloudManager = cloudManager; myUpdateTaskManager = updateTaskManager; mySslTrustStoreProvider = sslTrustStoreProvider; if (!myIdxStorage.exists()){ myIdxStorage.mkdirs(); } myHtmlPath = pluginDescriptor.getPluginResourcesPath("vmware-settings.html"); myServerSettings = serverSettings; }
Example 4
Source File: SlackNotifierAdminPage.java From tcSlackBuildNotifier with MIT License | 6 votes |
protected SlackNotifierAdminPage(@NotNull PagePlaces pagePlaces, @NotNull PluginDescriptor descriptor, @NotNull SBuildServer sBuildServer, @NotNull SlackNotificationMainSettings slackMainSettings ) { super(pagePlaces); this.sBuildServer = sBuildServer; this.slackMainSettings = slackMainSettings; setPluginName(PLUGIN_NAME); setIncludeUrl(descriptor.getPluginResourcesPath(PAGE)); jspHome = descriptor.getPluginResourcesPath(); setTabTitle(TAB_TITLE); ArrayList<String> after = new ArrayList<String>(); after.add(AFTER_PAGE_ID); ArrayList<String> before = new ArrayList<String>(); before.add(BEFORE_PAGE_ID); setPosition(PositionConstraint.between(after, before)); register(); Loggers.SERVER.info("Slack global configuration page registered"); }
Example 5
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 6
Source File: S3StorageType.java From teamcity-s3-artifact-storage-plugin with Apache License 2.0 | 5 votes |
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); }
Example 7
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 8
Source File: SymbolServerSettingsTab.java From teamcity-symbol-server with Apache License 2.0 | 5 votes |
public SymbolServerSettingsTab(@NotNull final PagePlaces pagePlaces, @NotNull final SecurityContext context, @NotNull final PluginDescriptor descriptor) { super(pagePlaces, PlaceId.ADMIN_SERVER_CONFIGURATION_TAB, TAB_ID, descriptor.getPluginResourcesPath("symbolServerSettings.jsp"), "Symbol Server"); mySecurityContext = context; register(); }
Example 9
Source File: LoginViaOAuthLoginPageExtension.java From teamcity-oauth with Apache License 2.0 | 5 votes |
public LoginViaOAuthLoginPageExtension(@NotNull final PagePlaces pagePlaces, @NotNull final PluginDescriptor pluginDescriptor, @NotNull final AuthenticationSchemeProperties schemeProperties) { super(pagePlaces, PlaceId.LOGIN_PAGE, LoginViaOAuthLoginPageExtension.class.getName(), pluginDescriptor.getPluginResourcesPath(PluginConstants.Web.LOGIN_EXTENSION_PAGE)); this.schemeProperties = schemeProperties; register(); }
Example 10
Source File: SlackNotificationAjaxEditPageController.java From tcSlackBuildNotifier with MIT License | 5 votes |
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; }
Example 11
Source File: SlackNotificationBuildTabExtension.java From tcSlackBuildNotifier with MIT License | 5 votes |
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(); }
Example 12
Source File: SlackNotificationProjectTabExtension.java From tcSlackBuildNotifier with MIT License | 5 votes |
protected SlackNotificationProjectTabExtension( PagePlaces pagePlaces, ProjectManager projectManager, ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) { super("slackNotifications", "Slack", pagePlaces, projectManager); this.projSettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); }
Example 13
Source File: AnsibleRunResultsTab.java From tc-ansible-runner with MIT License | 4 votes |
private String getJspPage(PluginDescriptor descriptor) { return descriptor.getPluginResourcesPath("resultsTab.jsp"); }