当前位置: 首页>>代码示例>>Java>>正文


Java ProjectManager类代码示例

本文整理汇总了Java中jetbrains.buildServer.serverSide.ProjectManager的典型用法代码示例。如果您正苦于以下问题:Java ProjectManager类的具体用法?Java ProjectManager怎么用?Java ProjectManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProjectManager类属于jetbrains.buildServer.serverSide包,在下文中一共展示了ProjectManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: build

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public static EditDebRepositoryBean build(@NotNull ProjectManager projectManager, @NotNull final DebRepositoryConfiguration repoConfig, @NotNull SProject sproject) {
	EditDebRepositoryBean bean = new EditDebRepositoryBean(repoConfig, sproject);
	for (DebRepositoryBuildTypeConfig btConfig : repoConfig.getBuildTypes()) {
		SBuildType sBuildType = projectManager.findBuildTypeById(btConfig.getBuildTypeId());
		if (sBuildType != null) {
			List<FilterAndBuildType> filterAndBuildTypes = new ArrayList<>();
			for (Filter f : btConfig.getDebFilters()) {
				filterAndBuildTypes.add(new FilterAndBuildType(sBuildType.getBuildTypeId(), f));
			}
			bean.filtersAndBuildTypes.put(new BuildTypeData(sBuildType.getExternalId(), 
															sBuildType.getName(), 
															sBuildType.getProjectExternalId(), 
															sBuildType.getProjectName(), 
															sBuildType.getFullName()
															), 
											filterAndBuildTypes);
		}
	}
	bean.defaultAllArchitectures = repoConfig.getDefaultArchitecturesRepresentedByAll();
	bean.allArchitectures = repoConfig.getArchitecturesRepresentedByAll();
	return bean;
}
 
开发者ID:tcplugins,项目名称:tcDebRepository,代码行数:23,代码来源:EditDebRepositoryBean.java

示例2: Controller

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public Controller(@NotNull SBuildServer server,
                  @NotNull PluginDescriptor descriptor,
                  @NotNull ServerPaths serverPaths,
                  @NotNull WebControllerManager manager,
                  @NotNull ServerConfigurations configurations,
                  @NotNull final ProjectManager projectManager,
                  @NotNull ProjectSettingsManager projectSettingsManager) throws IOException {
  manager.registerController(CONTROLLER_PATH, this);
  Controller.configurations = configurations;
  this.myProjectManager = projectManager;
  this.projectSettingsManager = projectSettingsManager;
  this.configFilePath = (new File(serverPaths.getConfigDir(), CONFIG_FILE)).getCanonicalPath();
  this.listPagePath = descriptor.getPluginResourcesPath(LIST_PAGE);
  this.editPagePath = descriptor.getPluginResourcesPath(EDIT_PAGE);
  this.editTemplPagePath = descriptor.getPluginResourcesPath(EDIT_TEMPL_PAGE);
  this.errorPagePath = descriptor.getPluginResourcesPath(ERROR_PAGE);
}
 
开发者ID:IIIEII,项目名称:ServerConfigurations,代码行数:18,代码来源:Controller.java

示例3: ManageSQSActionController

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
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;
}
 
开发者ID:JetBrains,项目名称:TeamCity.SonarQubePlugin,代码行数:17,代码来源:ManageSQSActionController.java

示例4: findProjectById

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
/**
 * 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);
	}
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:16,代码来源:TeamCityIdResolver.java

示例5: findBuildTypeById

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
/**
 * 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);
	}
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:16,代码来源:TeamCityIdResolver.java

示例6: MsTeamsNotificationBuildTabExtension

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
protected MsTeamsNotificationBuildTabExtension(
           PagePlaces pagePlaces, ProjectManager projectManager,
           ProjectSettingsManager settings, WebControllerManager manager,
           PluginDescriptor pluginDescriptor) {
	//super(myTitle, myTitle, null, projectManager);
	super(SLACK_NOTIFICATIONS, "MsTeams", manager, projectManager);
	this.projSettings = settings;
	myPluginPath = pluginDescriptor.getPluginResourcesPath();
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:10,代码来源:MsTeamsNotificationBuildTabExtension.java

示例7: MsTeamsNotificationProjectTabExtension

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
protected MsTeamsNotificationProjectTabExtension(
           PagePlaces pagePlaces, ProjectManager projectManager,
           ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) {
	super("msteamsNotifications", "MsTeams", pagePlaces, projectManager);
	this.projSettings = settings;
	myPluginPath = pluginDescriptor.getPluginResourcesPath();
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:8,代码来源:MsTeamsNotificationProjectTabExtension.java

示例8: DebRepoBuildTypeTab

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
protected DebRepoBuildTypeTab(
		PagePlaces pagePlaces, ProjectManager projectManager, SecurityContext securityContext, 
		PluginDescriptor pluginDescriptor, WebControllerManager manager, 
		DebRepositoryConfigurationManager debRepositoryConfigurationManager) {
	super(pluginDescriptor.getPluginName(), TAB_TITLE, manager, projectManager, "debRepository/buildTypeTab.jsp");
	this.myDebRepositoryConfigurationManager = debRepositoryConfigurationManager;
}
 
开发者ID:tcplugins,项目名称:tcDebRepository,代码行数:8,代码来源:DebRepoBuildTypeTab.java

示例9: AddRepositoryAction

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public AddRepositoryAction(@NotNull ProjectManager projectManager,
						   @NotNull final DebRepositoryConfigurationManager debRepositoryConfigurationManager,
						   @NotNull final DebRepositoryConfigurationFactory debRepositoryConfigurationFactory, 
						   @NotNull final DebRepoConfigurationEditPageActionController controller) {

	myProjectManager = projectManager;
	myDebRepositoryConfigurationManager = debRepositoryConfigurationManager;
	myDebRepositoryConfigurationFactory = debRepositoryConfigurationFactory;
	controller.registerAction(this);
}
 
开发者ID:tcplugins,项目名称:tcDebRepository,代码行数:11,代码来源:AddRepositoryAction.java

示例10: MapBackedDebRepositoryDatabase

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public MapBackedDebRepositoryDatabase(DebRepositoryManager debRepositoryManager, 
								DebRepositoryConfigurationManager debRepositoryConfigurationManager,
								ProjectManager projectManager){
	this.myDebRepositoryManager = debRepositoryManager;
	this.myDebRepositoryConfigurationManager = debRepositoryConfigurationManager;
	this.myProjectManager = projectManager;
}
 
开发者ID:tcplugins,项目名称:tcDebRepository,代码行数:8,代码来源:MapBackedDebRepositoryDatabase.java

示例11: DebRepositoryManagerImpl

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public DebRepositoryManagerImpl(ProjectManager projectManager, 
								XmlPersister<DebPackageStore, DebRepositoryConfiguration> debRepositoryDatabaseXmlPersister,
								DebRepositoryConfigurationFactory debRepositoryConfigurationFactory, 
								DebRepositoryConfigurationChangePersister debRepositoryConfigurationChangePersister) {
	super(debRepositoryConfigurationFactory, debRepositoryConfigurationChangePersister);
	this.myProjectManager = projectManager;
	this.myDebRepositoryDatabaseXmlPersister = debRepositoryDatabaseXmlPersister;

}
 
开发者ID:tcplugins,项目名称:tcDebRepository,代码行数:10,代码来源:DebRepositoryManagerImpl.java

示例12: Controller

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public Controller(@NotNull SBuildServer server,
                  @NotNull PluginDescriptor descriptor,
                  @NotNull ServerPaths serverPaths,
                  @NotNull WebControllerManager manager,
                  @NotNull final ProjectManager projectManager,
                  @NotNull ProjectSettingsManager projectSettingsManager,
                  @NotNull ServerConfigurations configurations) throws IOException {
  manager.registerController(CONTROLLER_PATH, this);
  this.configurations = configurations;
  this.myProjectManager = projectManager;
  this.projectSettingsManager = projectSettingsManager;
  this.listPagePath = descriptor.getPluginResourcesPath(LIST_PAGE);
  this.editPagePath = descriptor.getPluginResourcesPath(EDIT_PAGE);
}
 
开发者ID:IIIEII,项目名称:ServerConfigurations,代码行数:15,代码来源:Controller.java

示例13: FailureCulpritOverviewTab

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public FailureCulpritOverviewTab(@NotNull WebControllerManager manager,
                                 @NotNull ProjectManager projectManager,
                                 @NotNull PluginDescriptor pluginDescriptor,
                                 @NotNull WebLinks webLinks) {
    super(getTabCode(), "Failure culprit overview", manager, projectManager);
    this.webLinks = webLinks;

    // specify path relative to the plugin; avoid TC assuming the JSP is under /plugins/[TAB CODE], which is what it
    // would do if we used this relative path in build-server-plugin-sin-city.xml's
    // bean/property[@name='includeUrl']; this is needed since getTabCode() returns a value different than the
    // plugin name; see https://devnet.jetbrains.com/message/5564684
    setIncludeUrl(pluginDescriptor.getPluginResourcesPath("failureCulpritOverview.jsp"));
}
 
开发者ID:sferencik,项目名称:SinCity,代码行数:14,代码来源:FailureCulpritOverviewTab.java

示例14: ManualTriggerTab

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public ManualTriggerTab(@NotNull WebControllerManager manager,
                        @NotNull ProjectManager projectManager,
                        @NotNull PluginDescriptor pluginDescriptor) {
    super(getTabCode(), "Trigger culprit finding", manager, projectManager);

    // specify path relative to the plugin; avoid TC assuming the JSP is under /plugins/[TAB CODE], which is what it
    // would do if we used this relative path in build-server-plugin-sin-city.xml's
    // bean/property[@name='includeUrl']; this is needed since getTabCode() returns a value different than the
    // plugin name; see https://devnet.jetbrains.com/message/5564684
    setIncludeUrl(pluginDescriptor.getPluginResourcesPath("triggerCulpritFinding.jsp"));
}
 
开发者ID:sferencik,项目名称:SinCity,代码行数:12,代码来源:ManualTriggerTab.java

示例15: WebhooksProjectTab

import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public WebhooksProjectTab(@NotNull PagePlaces pagePlaces,
                          @NotNull ProjectManager projectManager,
                          @NotNull PluginDescriptor pluginDescriptor,
                          @NotNull WebhooksSettings settings) {
  super(PLUGIN_NAME, PLUGIN_TITLE, pagePlaces, projectManager);
  this.pluginDescriptor = pluginDescriptor;
  this.settings         = settings;
}
 
开发者ID:cloudnative,项目名称:teamcity-webhooks,代码行数:9,代码来源:WebhooksProjectTab.java


注:本文中的jetbrains.buildServer.serverSide.ProjectManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。