org.exoplatform.frameworks.portletcontainer.portalframework
Class Template
java.lang.Object
org.exoplatform.frameworks.portletcontainer.portalframework.Template
public class Template
- extends Object
Created by The eXo Platform SAS .
- Version:
- $Id: $
- Author:
- Roman Pedchenko
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Template
public Template()
getPortletList
public static List<LayoutPlt> getPortletList(List<LayoutItem> layout)
throws Exception
- Parameters:
tmpl - input stream with template
- Returns:
- list of required portlets
- Throws:
Exception - exception
getPortletLayout
public static List<LayoutItem> getPortletLayout(InputStream tmpl)
throws Exception
- Parameters:
tmpl - input stream with template
- Returns:
- layout columns
- Throws:
Exception - exception
saveLayoutAs
public static void saveLayoutAs(List<LayoutItem> layout,
OutputStream tmpl)
throws IOException
- Throws:
IOException
delLayoutPltById
public static void delLayoutPltById(List<LayoutItem> layout,
String id)
addPortletToLayout
public static void addPortletToLayout(List<LayoutItem> layout,
LayoutPlt newPlt)
findLayoutColumnById
public static LayoutColumn findLayoutColumnById(List<LayoutItem> layout,
String id)
iterateByLayoutColumns
protected static boolean iterateByLayoutColumns(List<LayoutItem> layout,
Template.ColumnIterator ci)
changeLayoutWith
public static void changeLayoutWith(List<LayoutItem> layout,
String newLayout)
Copyright © 2009 eXo Platform SAS. All Rights Reserved.