Example usage for com.liferay.portal.kernel.model LayoutFriendlyURLComposite LayoutFriendlyURLComposite

List of usage examples for com.liferay.portal.kernel.model LayoutFriendlyURLComposite LayoutFriendlyURLComposite

Introduction

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

Prototype

public LayoutFriendlyURLComposite(Layout layout, String friendlyURL) 

Source Link

Usage

From source file:com.liferay.asset.publisher.web.portlet.DisplayPageFriendlyURLResolver.java

License:Open Source License

@Override
public LayoutFriendlyURLComposite getLayoutFriendlyURLComposite(long companyId, long groupId,
        boolean privateLayout, String friendlyURL, Map<String, String[]> params,
        Map<String, Object> requestContext) throws PortalException {

    Layout layout = getJournalArticleLayout(groupId, privateLayout, friendlyURL);

    return new LayoutFriendlyURLComposite(layout, friendlyURL);
}