Example usage for com.liferay.portal.kernel.service LayoutServiceUtil getLayouts

List of usage examples for com.liferay.portal.kernel.service LayoutServiceUtil getLayouts

Introduction

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

Prototype

public static java.util.List<com.liferay.portal.kernel.model.Layout> getLayouts(long groupId,
            boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end)
            throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

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

License:Open Source License

@Test
public void testLayoutPropagationWhenLoadingLayoutsTreeWithLinkEnabled() throws Exception {

    setLinkEnabled(true);/*from  w w w .j a v a 2  s.com*/

    LayoutTestUtil.addLayout(_layoutSetPrototypeGroup, true);

    Assert.assertEquals(_initialPrototypeLayoutCount, getGroupLayoutCount());

    LayoutServiceUtil.getLayouts(group.getGroupId(), false, LayoutConstants.DEFAULT_PARENT_LAYOUT_ID, false,
            QueryUtil.ALL_POS, QueryUtil.ALL_POS);

    Thread.sleep(2000);

    Assert.assertEquals(_initialPrototypeLayoutCount + 1, getGroupLayoutCount());
}