jetbrains.buildServer.serverSide.ProjectManager Java Examples

The following examples show how to use jetbrains.buildServer.serverSide.ProjectManager. 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: ManageSQSActionController.java    From TeamCity.SonarQubePlugin with Apache License 2.0 6 votes vote down vote up
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 #2
Source File: WebParameterProvider.java    From teamcity-web-parameters with MIT License 5 votes vote down vote up
public WebParameterProvider(
        @NotNull PluginDescriptor pluginDescriptor,
        @NotNull WebOptionsManager webOptionsManager,
        @NotNull ProjectManager projectManager) {
    this.pluginDescriptor = pluginDescriptor;
    this.webOptionsManager = webOptionsManager;
    this.projectManager = projectManager;
    this.errors = new HashMap<>();
}
 
Example #3
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 #4
Source File: TeamCityIdResolver.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
/**
 * Finds a TeamCity project in the ProjectManager by ProjectId.
 * Uses findProjectByExternalId() if available, otherwise uses findProjectById()
 * @param TeamCity projectManager instance
 * @param projectId string
 * @return TeamCity Project Config object
 */
public static SProject findProjectById(ProjectManager projectManager, String projectId) {
	try {
		return projectManager.findProjectByExternalId(projectId);
	} catch (NoSuchMethodError ex){
		LOGGER.log(Level.INFO,ex.getMessage(),ex);
		return projectManager.findProjectById(projectId);
	}
}
 
Example #5
Source File: TeamCityIdResolver.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
/**
 * Finds a TeamCity BuiltType in the ProjectManager by buildTypeId.
 * Uses findBuildTypeByExternalId() if available, otherwise uses findBuildTypeById()
 * @param ProjectManager instance
 * @param buildTypeId string
 * @return TeamCity BuildType config object
 */
public static SBuildType findBuildTypeById(ProjectManager projectManager, String buildTypeId) {
	try {
		return projectManager.findBuildTypeByExternalId(buildTypeId);
	} catch (NoSuchMethodError ex){
		LOGGER.log(Level.INFO,ex.getMessage(),ex);
		return projectManager.findBuildTypeById(buildTypeId);
	}
}
 
Example #6
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 #7
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();
}