本文整理汇总了Java中jetbrains.buildServer.users.User.getId方法的典型用法代码示例。如果您正苦于以下问题:Java User.getId方法的具体用法?Java User.getId怎么用?Java User.getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jetbrains.buildServer.users.User
的用法示例。
在下文中一共展示了User.getId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doHandle
import jetbrains.buildServer.users.User; //导入方法依赖的package包/类
@Override
@Nullable
protected ModelAndView doHandle(@NotNull final HttpServletRequest request, @NotNull final HttpServletResponse response) throws Exception {
final ModelAndView result = new ModelAndView(myJspPath);
final User user = SessionUser.getUser(request);
result.getModel().put("pluginName", NotifierConstants.NOTIFIER_TYPE);
result.getModel().put("buildTypes", myServer.getStatusProvider().getWatchedBuildTypes(user, NotifierConstants.NOTIFIER_TYPE));
result.getModel().put("runningBuilds", myServer.getRunningStatus(user, null));
final long userId = user.getId();
result.getModel().put("hasRules", !myRulesManager.getUserNotificationRules(userId, NotifierConstants.NOTIFIER_TYPE).isEmpty());
result.getModel().put("userId", userId);
return result;
}
示例2: notifyInvestigationDelegated
import jetbrains.buildServer.users.User; //导入方法依赖的package包/类
private boolean notifyInvestigationDelegated(@NotNull ResponsibilityEntry entry) {
User responsible = entry.getResponsibleUser();
User reporter = entry.getReporterUser();
if (reporter != null && reporter.getId() != responsible.getId()) {
registerUserEvent(reporter, AchievementEvents.investigationDelegated.name());
return true;
}
return false;
}
示例3: notifyInvestigationTaken
import jetbrains.buildServer.users.User; //导入方法依赖的package包/类
private boolean notifyInvestigationTaken(@NotNull ResponsibilityEntry entry) {
User responsible = entry.getResponsibleUser();
User reporter = entry.getReporterUser();
if (reporter != null && reporter.getId() == responsible.getId()) {
registerUserEvent(reporter, AchievementEvents.investigationTaken.name());
return true;
}
return false;
}