Example usage for com.liferay.portal.kernel.model Group getLogoURL

List of usage examples for com.liferay.portal.kernel.model Group getLogoURL

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model Group getLogoURL.

Prototype

public String getLogoURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, boolean useDefault);

Source Link

Usage

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 www  .  j  av  a 2 s .  c  o  m

    _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;
}