jetbrains.buildServer.web.openapi.PagePlaces Java Examples

The following examples show how to use jetbrains.buildServer.web.openapi.PagePlaces. 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: SlackNotifierAdminPage.java    From tcSlackBuildNotifier with MIT License 6 votes vote down vote up
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 #2
Source File: TelegramSettingsPage.java    From teamcity-telegram-plugin with Apache License 2.0 5 votes vote down vote up
public TelegramSettingsPage(@NotNull PagePlaces places,
                            @NotNull PluginDescriptor descriptor,
                            @NotNull TelegramSettingsManager settingsManager) {
  super(places);
  setPluginName(PLUGIN_NAME);
  setTabTitle("Telegram Notifier");
  setIncludeUrl(descriptor.getPluginResourcesPath("telegramSettings.jsp"));
  setPosition(PositionConstraint.after("email", "jabber"));
  register();
  this.settingsManager = settingsManager;
}
 
Example #3
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 #4
Source File: AnsibleRunResultsTab.java    From tc-ansible-runner with MIT License 5 votes vote down vote up
public AnsibleRunResultsTab(@NotNull PagePlaces pagePlaces, @NotNull SBuildServer server, @NotNull PluginDescriptor descriptor) {
    super("", "", pagePlaces, server);
    setTabTitle(getTitle());
    setPluginName(getClass().getSimpleName());
    setIncludeUrl(getJspPage(descriptor));
    addCssFile(descriptor.getPluginResourcesPath("css/style.css"));
    addJsFile(descriptor.getPluginResourcesPath("js/angular.min.js"));
    addJsFile(descriptor.getPluginResourcesPath("js/angular-app.js"));
}
 
Example #5
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 #6
Source File: ServerManagementProjectTab.java    From TeamCity.SonarQubePlugin with Apache License 2.0 5 votes vote down vote up
public ServerManagementProjectTab(@NotNull final PagePlaces pagePlaces,
                                  @NotNull final PluginDescriptor pluginDescriptor,
                                  @NotNull final SQSManager sqsManager,
                                  @NotNull final SecurityContext securityContext) {
    super(pagePlaces, pluginDescriptor.getPluginName(), "manageSonarServers.jsp", TAB_TITLE);
    mySqsManager = sqsManager;
    this.securityContext = securityContext;
    addCssFile(pluginDescriptor.getPluginResourcesPath("manageSonarServers.css"));
    addJsFile(pluginDescriptor.getPluginResourcesPath("manageSonarServers.js"));
}
 
Example #7
Source File: SlackProjectTab.java    From TCSlackNotifierPlugin with MIT License 5 votes vote down vote up
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 ;
}
 
Example #8
Source File: SlackAdminPage.java    From TCSlackNotifierPlugin with MIT License 5 votes vote down vote up
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 ;
}
 
Example #9
Source File: SlackNotificationBuildTabExtension.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
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 #10
Source File: SlackNotificationProjectTabExtension.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
protected SlackNotificationProjectTabExtension(
           PagePlaces pagePlaces, ProjectManager projectManager,
           ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) {
	super("slackNotifications", "Slack", pagePlaces, projectManager);
	this.projSettings = settings;
	myPluginPath = pluginDescriptor.getPluginResourcesPath();
}
 
Example #11
Source File: PluginConfiguration.java    From teamcity-oauth with Apache License 2.0 4 votes vote down vote up
@Bean
public LoginViaOAuthLoginPageExtension loginPageExtension(PagePlaces pagePlaces,
                                                   PluginDescriptor pluginDescriptor,
                                                   AuthenticationSchemeProperties schemeProperties) {
    return new LoginViaOAuthLoginPageExtension(pagePlaces, pluginDescriptor, schemeProperties);
}