List of usage examples for com.liferay.portal.kernel.model Company isSiteLogo
public boolean isSiteLogo();
From source file:com.liferay.layout.admin.web.internal.servlet.taglib.ui.LayoutSetLogoFormNavigatorEntry.java
License:Open Source License
@Override public boolean isVisible(User user, LayoutSet layoutSet) { long companyId = layoutSet.getCompanyId(); try {//from ww w.j a v a 2 s. com Company company = _companyLocalService.getCompany(companyId); if (!company.isSiteLogo()) { return false; } } catch (PortalException pe) { _log.error(pe, pe); } return true; }
From source file:com.liferay.product.navigation.site.administration.internal.display.context.SiteAdministrationPanelCategoryDisplayContext.java
License:Open Source License
public String getLogoURL() { if (Validator.isNotNull(_logoURL)) { return _logoURL; }//from w w w . jav a 2s.c om _logoURL = StringPool.BLANK; Company company = _themeDisplay.getCompany(); if (company.isSiteLogo()) { Group group = getGroup(); if (group == null) { return _logoURL; } _logoURL = group.getLogoURL(_themeDisplay, false); } else { _logoURL = _themeDisplay.getCompanyLogo(); } return _logoURL; }