/** * */ @Override public String retrieveLabel(GrouperSession grouperSession, Group t) { return t.getDisplayName(); }
/** * */ @Override public String retrieveLabel(GrouperSession grouperSession, Group t) { return t.getDisplayName(); }
/** * */ @Override public String retrieveLabel(GrouperSession grouperSession, Group t) { return t.getDisplayName(); }
/** * */ @Override public String retrieveHtmlLabel(GrouperSession grouperSession, Group t) { //description could be null? String label = GrouperUiUtils.escapeHtml(t.getDisplayName(), true); String htmlLabel = "<img src=\"../../grouperExternal/public/assets/images/group.gif\" /> " + label; return htmlLabel; }
/** * */ @Override public String retrieveHtmlLabel(GrouperSession grouperSession, Group t) { //description could be null? String label = GrouperUiUtils.escapeHtml(t.getDisplayName(), true); String htmlLabel = "<img src=\"../../grouperExternal/public/assets/images/group.gif\" /> " + label; return htmlLabel; }
/** * if there is a group passed in via URL, set it on the screen * @return the group text */ public String getFirstComboDefaultText() { Group theDefaultGroup = this.getDefaultGroup(); return theDefaultGroup == null ? null : theDefaultGroup.getDisplayName(); }
/** * */ @Override public String retrieveHtmlLabel(GrouperSession grouperSession, Group t) { //description could be null? String label = GrouperUiUtils.escapeHtml(t.getDisplayName(), true); String htmlLabel = "<img src=\"../../grouperExternal/public/assets/images/group.gif\" /> " + label; return htmlLabel; }
/** * @return display name for wrapped group or stem */ public String getDisplayName() { if(group!=null) return group.getDisplayName(); if(stem!=null) return stem.getDisplayName(); throw new IllegalStateException("GroupOrStem is not initialised"); }
val=group.getName(); }else if(attrName.equals("displayName")) { val=group.getDisplayName(); }else { try {
/** * init screen labels for a membership * @param group * @param subject */ private void initScreenLabelsMembership(Group group, Subject subject) { GuiSubject guiSubject = new GuiSubject(subject); String screenLabel = guiSubject.getScreenLabel(); this.screenLabelLong = group.getDisplayName() + " - " + screenLabel; int maxWidth = GrouperUiConfig.retrieveConfig().propertyValueInt("simpleAttributeUpdate.maxOwnerSubjectChars", 50); String abbreviatedSubject = null; if (maxWidth == -1) { abbreviatedSubject = screenLabel; } else { abbreviatedSubject = StringUtils.abbreviate(screenLabel, maxWidth); } this.screenLabelShort = group.getDisplayExtension() + " - " + abbreviatedSubject; }
if (!canEdit) { String errorMessage = TagUtils.navResourceString("inviteExternalSubjects.invalidGroupPrivileges"); errorMessage = StringUtils.replace(errorMessage, "{0}", GrouperUiUtils.escapeHtml(group.getDisplayName(), true)); guiResponseJs.addAction(GuiScreenAction.newAlert(errorMessage)); return null;
this.screenLabelLong = group.getDisplayName(); this.screenLabelShort = group.getDisplayExtension();
if (group != null) { this.setDescription(StringUtils.trimToNull(group.getDescription())); this.setDisplayName(group.getDisplayName()); this.setName(group.getName()); this.setUuid(group.getUuid());