Java源码示例:jetbrains.buildServer.serverSide.ProjectManager
示例1
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;
}
示例2
public WebParameterProvider(
@NotNull PluginDescriptor pluginDescriptor,
@NotNull WebOptionsManager webOptionsManager,
@NotNull ProjectManager projectManager) {
this.pluginDescriptor = pluginDescriptor;
this.webOptionsManager = webOptionsManager;
this.projectManager = projectManager;
this.errors = new HashMap<>();
}
示例3
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 ;
}
示例4
/**
* 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);
}
}
示例5
/**
* 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);
}
}
示例6
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();
}
示例7
protected SlackNotificationProjectTabExtension(
PagePlaces pagePlaces, ProjectManager projectManager,
ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) {
super("slackNotifications", "Slack", pagePlaces, projectManager);
this.projSettings = settings;
myPluginPath = pluginDescriptor.getPluginResourcesPath();
}