jetbrains.buildServer.web.openapi.PlaceId Java Examples

The following examples show how to use jetbrains.buildServer.web.openapi.PlaceId. 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: UserTelegramSettingsExtension.java    From teamcity-telegram-plugin with Apache License 2.0 6 votes vote down vote up
public UserTelegramSettingsExtension(@NotNull WebControllerManager manager,
                                     @NotNull NotificationRulesManager rulesManager,
                                     @NotNull UserModel userModel,
                                     @NotNull PluginDescriptor descriptor,
                                     @NotNull TelegramSettingsManager settingsManager) {
  super(manager);
  this.rulesManager = rulesManager;
  this.userModel = userModel;
  this.settingsManager = settingsManager;

  setPluginName(TelegramSettingsPage.PLUGIN_NAME);
  setIncludeUrl(descriptor.getPluginResourcesPath("userTelegramSettings.jsp"));
  // This extension required by two places. Don't looks clear
  // but works...
  setPlaceId(PlaceId.NOTIFIER_SETTINGS_FRAGMENT);
  register();
  setPlaceId(PlaceId.MY_SETTINGS_NOTIFIER_SECTION);
  register();
}
 
Example #2
Source File: SymbolServerSettingsTab.java    From teamcity-symbol-server with Apache License 2.0 5 votes vote down vote up
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 #3
Source File: LoginViaOAuthLoginPageExtension.java    From teamcity-oauth with Apache License 2.0 5 votes vote down vote up
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 #4
Source File: BuildSummaryLinkExtension.java    From TeamCity.SonarQubePlugin with Apache License 2.0 5 votes vote down vote up
public BuildSummaryLinkExtension(@NotNull final WebControllerManager manager,
                                 @NotNull final PluginDescriptor pluginDescriptor,
                                 @NotNull final SBuildServer server) {
    super(manager, PlaceId.BUILD_SUMMARY, pluginDescriptor.getPluginName(), "buildSummary.jsp");
    myServer = server;
    register();
}
 
Example #5
Source File: AllureReportBuildSummaryExtension.java    From allure-teamcity with Apache License 2.0 5 votes vote down vote up
public AllureReportBuildSummaryExtension(@NotNull final SBuildServer server,
                                         @NotNull final WebControllerManager manager,
                                         @NotNull final PluginDescriptor pluginDescriptor) {
    super(manager, PlaceId.BUILD_SUMMARY, pluginDescriptor.getPluginName(), "buildSummary.jsp");
    this.server = server;
    register();
}