本文整理汇总了Java中jetbrains.buildServer.serverSide.SProject.persist方法的典型用法代码示例。如果您正苦于以下问题:Java SProject.persist方法的具体用法?Java SProject.persist怎么用?Java SProject.persist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jetbrains.buildServer.serverSide.SProject
的用法示例。
在下文中一共展示了SProject.persist方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: migrate
import jetbrains.buildServer.serverSide.SProject; //导入方法依赖的package包/类
private void migrate(@NotNull final SProject project, @NotNull final SQSInfo... sqsInfos) {
for (SQSInfo sqsInfo : sqsInfos) {
mySQSManagerProjectFeatures.addServer(project, sqsInfo);
mySQSManagerImpl.removeServer(project, sqsInfo.getId());
}
if (sqsInfos.length > 0) {
if (sqsInfos.length > 1) {
project.persist(myConfigActionFactory.createAction(project, sqsInfos.length + " SonarQube Servers moved from plugin-settings to project features"));
} else {
project.persist(myConfigActionFactory.createAction(project, "SonarQube Server '" + sqsInfos[0].getName() + "' moved from plugin-settings to project features"));
}
}
}
示例2: updateConfiguration
import jetbrains.buildServer.serverSide.SProject; //导入方法依赖的package包/类
private void updateConfiguration(HttpServletRequest request, SProject project) {
try {
project.persist();
addSuccessMessage(request);
} catch (SaveConfigFailedException e) {
Loggers.SERVER.error(e);
addPiazzaMessage(request, "Save failed: " + e.getLocalizedMessage());
}
}
示例3: updateConfiguration
import jetbrains.buildServer.serverSide.SProject; //导入方法依赖的package包/类
private void updateConfiguration(HttpServletRequest request) {
try {
SProject project = this.projectManager.findProjectByExternalId(getProjectId(request));
project.persist();
addSuccessMessage(request);
} catch (PiazzaConfiguration.SaveConfigFailedException e) {
Loggers.SERVER.error(e);
addPiazzaMessage(request, "Save failed: " + e.getLocalizedMessage());
}
}