本文整理了Java中com.cloud.user.User.getUuid()
方法的一些代码示例,展示了User.getUuid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。User.getUuid()
方法的具体详情如下:
包路径:com.cloud.user.User
类名称:User
方法名:getUuid
暂无
代码示例来源:origin: apache/cloudstack
public String getCallingUserUuid() {
return getCallingUser().getUuid();
}
代码示例来源:origin: apache/cloudstack
public String getCallingUserUuid() {
return getCallingUser().getUuid();
}
代码示例来源:origin: apache/cloudstack
callingUser.getUuid(), callingUser.getUsername(), callingAccount.getUuid(), callingAccount.getAccountName()));
return;
代码示例来源:origin: apache/cloudstack
if (project != null)
eventDescription.put("project", project.getUuid());
eventDescription.put("user", user.getUuid());
eventDescription.put("account", account.getUuid());
eventDescription.put("event", eventType);
代码示例来源:origin: apache/cloudstack
eventDescription.put("user", userJobOwner.getUuid());
eventDescription.put("account", jobOwner.getUuid());
eventDescription.put("processStatus", "" + job.getProcessStatus());
代码示例来源:origin: apache/cloudstack
@Override
public void execute() {
List<UserVO> users = new ArrayList<UserVO>();
if (getUserId() != null) {
UserVO user = _userDao.getUser(getUserId());
if (user != null) {
Account account = _accountService.getAccount(user.getAccountId());
_accountService.checkAccess(CallContext.current().getCallingAccount(), SecurityChecker.AccessType.ListEntry, true, account);
users.add(user);
}
} else if (CallContext.current().getCallingAccount().getType() == Account.ACCOUNT_TYPE_ADMIN) {
users = _userDao.listAll();
}
ListResponse<SamlAuthorizationResponse> response = new ListResponse<SamlAuthorizationResponse>();
List<SamlAuthorizationResponse> authorizationResponses = new ArrayList<SamlAuthorizationResponse>();
for (User user: users) {
SamlAuthorizationResponse authorizationResponse = new SamlAuthorizationResponse(user.getUuid(), user.getSource().equals(User.Source.SAML2), user.getExternalEntity());
authorizationResponse.setObjectName("samlauthorization");
authorizationResponses.add(authorizationResponse);
}
response.setResponses(authorizationResponses);
response.setResponseName(getCommandName());
setResponseObject(response);
}
}
代码示例来源:origin: apache/cloudstack
Domain domain = _domainService.getDomain(userAccount.getDomainId());
SamlUserAccountResponse accountResponse = new SamlUserAccountResponse();
accountResponse.setUserId(user.getUuid());
accountResponse.setUserName(user.getUsername());
accountResponse.setDomainId(domain.getUuid());
代码示例来源:origin: apache/cloudstack
if (success) {
CallContext.current().putContextParameter(User.class, user.getUuid());
代码示例来源:origin: apache/cloudstack
userVmResponse.setUserId(user.getUuid());
userVmResponse.setUserName(user.getUsername());
代码示例来源:origin: apache/cloudstack
CallContext.current().putContextParameter(User.class, user.getUuid());
代码示例来源:origin: apache/cloudstack
CallContext.current().putContextParameter(User.class, user.getUuid());
代码示例来源:origin: apache/cloudstack
User user = ApiDBUtils.findUserById(profile.getAutoScaleUserId());
if (user != null) {
response.setAutoscaleUserId(user.getUuid());
代码示例来源:origin: apache/cloudstack
User usr = ApiDBUtils.findUserById(job.getInstanceId());
if (usr != null) {
jobInstanceId = usr.getUuid();
内容来源于网络,如有侵权,请联系作者删除!