com.endeca.portal.util
Class PageCreator

java.lang.Object
  extended by com.endeca.portal.util.PageCreator

public class PageCreator
extends java.lang.Object

Encapsulates logic to populate a newly-created application with appropriate pages: one page per data set.


Constructor Summary
PageCreator()
           
 
Method Summary
 com.liferay.portal.model.Layout addApplicationPage(com.liferay.portal.model.Group group, java.lang.String dataSourceId, java.lang.String dataSetKey, java.lang.String displayName)
           
 void populateApplicationPages(javax.portlet.ResourceRequest request, com.liferay.portal.model.Group group)
          Creates pages and/or updates existing pages within an application to reflect the data sets contained in the application's data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageCreator

public PageCreator()
Method Detail

populateApplicationPages

public void populateApplicationPages(javax.portlet.ResourceRequest request,
                                     com.liferay.portal.model.Group group)
                              throws DataSourceException,
                                     com.liferay.portal.SystemException,
                                     com.liferay.portal.PortalException,
                                     javax.portlet.ReadOnlyException,
                                     javax.portlet.ValidatorException,
                                     java.io.IOException
Creates pages and/or updates existing pages within an application to reflect the data sets contained in the application's data source.

Parameters:
request - the current request object
group - the application to populate
Throws:
DataSourceException - on error working with the application's data source or data sets
com.liferay.portal.SystemException - on error retrieving the pages for the application
com.liferay.portal.PortalException - on error creating/updating pages
java.io.IOException - on error updating component bindings
javax.portlet.ValidatorException - on error updating component bindings or creating pages
javax.portlet.ReadOnlyException - on error updating component bindings

addApplicationPage

public com.liferay.portal.model.Layout addApplicationPage(com.liferay.portal.model.Group group,
                                                          java.lang.String dataSourceId,
                                                          java.lang.String dataSetKey,
                                                          java.lang.String displayName)
                                                   throws com.liferay.portal.PortalException,
                                                          com.liferay.portal.SystemException,
                                                          javax.portlet.ReadOnlyException,
                                                          javax.portlet.ValidatorException,
                                                          java.io.IOException
Parameters:
group - the application to populate
dataSourceId - the data source id that components on the page should be bound to
dataSetKey - the data set key that components on the page should be bound to
displayName - the name of the page to be created; this name is also normalized and used as the url
Throws:
com.liferay.portal.SystemException - on error retrieving the pages for the application
com.liferay.portal.PortalException - on error creating/updating pages
java.io.IOException - on error updating component bindings
javax.portlet.ValidatorException - on error updating component bindings or creating pages
javax.portlet.ReadOnlyException - on error updating component bindings