@Override public String toString() { return "UserData [login=" + login + ", getRealName()=" + getRealName() + "]"; } }
@Override public Component generateCell(Table source, Object itemId, Object columnId) { BeanItem<ProcessComment> item = (BeanItem<ProcessComment>) source.getItem(itemId); return new Label(item.getBean().getAuthor().getRealName()); } });
private ProcessLogInfo getProcessLogInfo(ProcessInstanceLog pl) { ProcessLogInfo plInfo = new ProcessLogInfo(); String userDescription = pl.getUser() != null ? nvl(pl.getUser().getRealName(), pl.getUser().getLogin()) : ""; if (pl.getUserSubstitute() != null) { String substituteDescription = nvl(pl.getUserSubstitute().getRealName(), pl.getUserSubstitute().getLogin()); plInfo.userDescription = substituteDescription + "(" + getMessage("awf.basewidgets.process-history.substituting") + " " + userDescription + ")"; } else { plInfo.userDescription = userDescription; } plInfo.entryDescription = nvl(pl.getAdditionalInfo(), pl.getLogValue()); plInfo.actionDescription = i18NSource.getMessage(pl.getEventI18NKey()); if (hasText(plInfo.getEntryDescription())) { plInfo.actionDescription = plInfo.actionDescription + " - " + getMessage(plInfo.entryDescription); } plInfo.performDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(pl.getEntryDate().getTime()); plInfo.stateDescription = pl.getState() != null ? nvl(pl.getState().getDescription(), pl.getState().getName()) : ""; return plInfo; }
String authorFullName = actionPerformer.getRealName(); processComment.setAuthorFullName(owner.getRealName()); processComment.setSubstituteLogin(authorLogin); processComment.setSubstituteFullName(authorFullName);
searchData.addSearchAttribute(new ProcessInstanceSearchAttribute("creator_login", creator.getLogin())); searchData.addSearchAttribute(new ProcessInstanceSearchAttribute("creator_email", creator.getEmail())); searchData.addSearchAttribute(new ProcessInstanceSearchAttribute("creator_realname", creator.getRealName()));
/** * @param user * @param roleNames */ public ActivitiBpmSession(UserData user, Collection<String> roleNames) { super(user, roleNames, ProcessToolContext.Util.getThreadProcessToolContext().getRegistry()); IdentityService is = getProcessEngine().getIdentityService(); User bpmUser = is.createUserQuery().userId(user.getLogin()).singleResult(); if (bpmUser == null) { bpmUser = is.newUser(user.getLogin()); bpmUser.setEmail(user.getEmail()); bpmUser.setFirstName(user.getRealName()); is.saveUser(bpmUser); } }
hl = new HorizontalLayout(); hl.setSpacing(true); String authorLabel = pc.getAuthor() != null ? pc.getAuthor().getRealName() : "System"; if (pc.getAuthorSubstitute() != null) { authorLabel = (pc.getAuthorSubstitute() != null ? pc.getAuthorSubstitute().getRealName() : "System") + " ( " + getMessage("processdata.comments.substituting") + " " + authorLabel
hl.setSpacing(true); hl.setWidth("100%"); String authorLabel = pc.getAuthor() != null ? pc.getAuthor().getRealName() : "System"; if (pc.getAuthorSubstitute() != null) { authorLabel = (pc.getAuthorSubstitute() != null ? pc.getAuthorSubstitute().getRealName() : "System") + " ( " + getMessage("processdata.comments.substituting") + " " + authorLabel
field.setValue(bi.getBean().getAuthor().getRealName()); field.setCaption(getMessage("processdata.comments.comment.form.author")); field.setReadOnly(true);