GSearchUtil.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:liferay-gsearch 作者:
/**
 * Get layout by friendlyurl.
 * 
 * @param resourceRequest
 * @return layout
 * @throws PortalException if layout is not found
 */
public static Layout getLayoutByFriendlyURL(
    PortletRequest portletRequest, String layoutFriendlyURL)
    throws PortalException {

    ThemeDisplay themeDisplay =
        (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY);

    if (layoutFriendlyURL != null) {
        return LayoutLocalServiceUtil.getFriendlyURLLayout(
            themeDisplay.getScopeGroupId(),
            themeDisplay.getLayout().isPrivateLayout(), layoutFriendlyURL);
    }

    throw new PortalException(
        "Couldn't find asset publisher layout for " + layoutFriendlyURL +
            ". Please check configuration.");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号