List of usage examples for com.liferay.portal.kernel.service LayoutSetPrototypeLocalServiceUtil getLayoutSetPrototypes
public static java.util.List<com.liferay.portal.kernel.model.LayoutSetPrototype> getLayoutSetPrototypes( int start, int end)
From source file:com.liferay.tool.datamanipulator.handler.portal.SiteHandler.java
License:Open Source License
private List<KeyValuePair> _getSiteTemplates() throws SystemException { List<KeyValuePair> siteTemplates = new ArrayList<KeyValuePair>(); siteTemplates.add(new KeyValuePair("", "")); List<LayoutSetPrototype> layoutSetPrototypes = LayoutSetPrototypeLocalServiceUtil .getLayoutSetPrototypes(QueryUtil.ALL_POS, QueryUtil.ALL_POS); for (LayoutSetPrototype layoutSetPrototype : layoutSetPrototypes) { siteTemplates.add(new KeyValuePair(layoutSetPrototype.getNameCurrentValue(), String.valueOf(layoutSetPrototype.getLayoutSetPrototypeId()))); }//from w w w . j a v a 2s . c o m return siteTemplates; }