public String getCurrentUserId() { if (currentUserRef != null) { return EntityReference.getIdFromRef(currentUserRef); } return null; }
@Override public String getLocalizedStatusMessage(String messageCode, String userRef) { String userId = EntityReference.getIdFromRef(userRef); ResourceLoader resourceLoader = new ResourceLoader(userId, "urkund"); return resourceLoader.getString(messageCode); }
public String getLocalizedStatusMessage(String messageCode, String userRef) { String userId = EntityReference.getIdFromRef(userRef); ResourceLoader resourceLoader = new ResourceLoader(userId, "turnitin"); return resourceLoader.getString(messageCode); }
@Override public String getLocalizedStatusMessage(String messageCode, String userRef) { String userId = EntityReference.getIdFromRef(userRef); ResourceLoader resourceLoader = new ResourceLoader(userId, "compilatio"); return resourceLoader.getString(messageCode); }
UserEdit olduser = null; try { String oldUserId = EntityReference.getIdFromRef(oldUserReference); String newuserId = EntityReference.getIdFromRef(newUserReference); Set<String> groups = authzGroupService.getAuthzGroupsIsAllowed(EntityReference.getIdFromRef(oldUserReference), "site.visit", null); Iterator<String> it = groups.iterator(); while (it.hasNext()) {
private ValidationAccount saveValidationAccount(ValidationAccount account){ account.setValidationSent(new Date()); account.setStatus(ValidationAccount.STATUS_SENT); String userId = EntityReference.getIdFromRef(account.getUserId()); try{ User u = userDirectoryService.getUser(userId); if (StringUtils.isNotBlank(u.getFirstName())) { account.setFirstName(u.getFirstName()); } if (StringUtils.isNotBlank(u.getLastName())) { account.setSurname(u.getLastName()); } } catch(UserNotDefinedException e){ LOG.error("No User found for the id " + e.getMessage()); } dao.save(account); return account; }
String userId = EntityReference.getIdFromRef(account.getUserId()); userIds.add(userId); String userDisplayName;
Set<String> groups = authzGroupService.getAuthzGroupsIsAllowed(EntityReference.getIdFromRef(id), "site.visit", null); Iterator<String> it = groups.iterator(); while (it.hasNext()) {