@Override public String getDescriptiveName() throws com.liferay.portal.kernel.exception.PortalException { return _group.getDescriptiveName(); }
@Override public String getDescriptiveName(java.util.Locale locale) throws com.liferay.portal.kernel.exception.PortalException { return _group.getDescriptiveName(locale); }
/** * Returns the name of the scoped or sub-scoped active group (e.g. site). * * @return the name of the scoped or sub-scoped active group */ public String getScopeGroupName() throws PortalException { if (_scopeGroup == null) { return StringPool.BLANK; } return _scopeGroup.getDescriptiveName(); }
public String getSiteGroupName() throws PortalException { if (_siteGroup == null) { return StringPool.BLANK; } return _siteGroup.getDescriptiveName(); }
String groupName = group.getDescriptiveName();
group.getDescriptiveName(themeDisplay.getLocale())); breadcrumbEntry.setURL(layoutSetFriendlyURL);
String groupName = group.getDescriptiveName();
private static String[] _getRequiredLocaleMessageArguments( List<Group> groups) throws PortalException { if (groups.isEmpty()) { return new String[0]; } else if (groups.size() == 1) { Group group = groups.get(0); return new String[] {group.getDescriptiveName()}; } else if (groups.size() == 2) { Group group1 = groups.get(0); Group group2 = groups.get(1); return new String[] { group1.getDescriptiveName(), group2.getDescriptiveName() }; } else { Group group1 = groups.get(0); Group group2 = groups.get(1); return new String[] { group1.getDescriptiveName(), group2.getDescriptiveName(), String.valueOf(groups.size() - 2) }; } }
Group group = GroupLocalServiceUtil.getGroup(groupId); setContextAttribute("[$SITE_NAME$]", group.getDescriptiveName());
public static void addPortletBreadcrumbEntries( long folderId, String displayStyle, HttpServletRequest request, LiferayPortletResponse liferayPortletResponse, PortletURL portletURL) throws Exception { addGroupSelectorBreadcrumbEntry( request, liferayPortletResponse, portletURL); portletURL.setParameter("displayStyle", displayStyle); ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute( WebKeys.THEME_DISPLAY); Group scopeGroup = themeDisplay.getScopeGroup(); addPortletBreadcrumbEntry( DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, request, scopeGroup.getDescriptiveName(request.getLocale()), portletURL); if (folderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { Folder folder = DLAppServiceUtil.getFolder(folderId); List<Folder> ancestorFolders = folder.getAncestors(); Collections.reverse(ancestorFolders); for (Folder ancestorFolder : ancestorFolders) { addPortletBreadcrumbEntry( ancestorFolder.getFolderId(), request, ancestorFolder.getName(), portletURL); } addPortletBreadcrumbEntry( folder.getFolderId(), request, folder.getName(), portletURL); } }
private String _getDescriptiveName() { ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute( WebKeys.THEME_DISPLAY); StringBundler sb = new StringBundler(5); try { String descriptiveName = HtmlUtil.escape( _group.getDescriptiveName(themeDisplay.getLocale())); sb.append(descriptiveName); if (_group.isStaged() && !_group.isStagedRemotely() && _group.isStagingGroup()) { sb.append(StringPool.SPACE); sb.append(StringPool.OPEN_PARENTHESIS); sb.append(LanguageUtil.get(request, "staging")); sb.append(StringPool.CLOSE_PARENTHESIS); } } catch (PortalException pe) { if (_log.isDebugEnabled()) { _log.debug(pe, pe); } } return sb.toString(); }