Example usage for com.liferay.portal.kernel.service LayoutFriendlyURLLocalServiceUtil getLayoutFriendlyURL

List of usage examples for com.liferay.portal.kernel.service LayoutFriendlyURLLocalServiceUtil getLayoutFriendlyURL

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service LayoutFriendlyURLLocalServiceUtil getLayoutFriendlyURL.

Prototype

public static com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long plid,
            String languageId) throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

From source file:com.liferay.exportimport.test.LayoutPrototypePropagationTest.java

License:Open Source License

@Test
public void testAddLayoutFromLayoutPrototypeWithLinkDisabled() throws Exception {

    layout = LayoutTestUtil.addLayout(group, false, layoutPrototype, false);

    Locale locale = LocaleUtil.getDefault();

    LayoutFriendlyURL layoutFriendlyURL = LayoutFriendlyURLLocalServiceUtil
            .getLayoutFriendlyURL(layout.getPlid(), LanguageUtil.getLanguageId(locale));

    Assert.assertEquals(layoutFriendlyURL.getFriendlyURL(), layout.getFriendlyURL());
}