Example usage for com.liferay.portal.kernel.theme ThemeDisplay getRefererPlid

List of usage examples for com.liferay.portal.kernel.theme ThemeDisplay getRefererPlid

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.theme ThemeDisplay getRefererPlid.

Prototype

public long getRefererPlid() 

Source Link

Usage

From source file:com.liferay.site.admin.web.internal.portlet.SiteAdminPortlet.java

License:Open Source License

protected long getRefererGroupId(ThemeDisplay themeDisplay) throws Exception {

    long refererGroupId = 0;

    try {//  w  ww.  j av  a 2s. com
        Layout refererLayout = layoutLocalService.getLayout(themeDisplay.getRefererPlid());

        refererGroupId = refererLayout.getGroupId();
    } catch (NoSuchLayoutException nsle) {

        // LPS-52675

        if (_log.isDebugEnabled()) {
            _log.debug(nsle, nsle);
        }
    }

    return refererGroupId;
}