com.liferay.portal.events
Class SampleAppStartupAction

java.lang.Object
  extended by com.liferay.portal.kernel.events.SimpleAction
      extended by com.liferay.portal.events.SampleAppStartupAction

public class SampleAppStartupAction
extends com.liferay.portal.kernel.events.SimpleAction

View Source

This class can be used to populate an empty database programmatically. This allows a developer to create sample data without relying on native SQL.

Author:
Brian Wing Shun Chan

Constructor Summary
SampleAppStartupAction()
           
 
Method Summary
protected  void doRun(long companyId)
           
 void run(java.lang.String[] ids)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleAppStartupAction

public SampleAppStartupAction()
Method Detail

run

public void run(java.lang.String[] ids)
         throws com.liferay.portal.kernel.events.ActionException
Specified by:
run in class com.liferay.portal.kernel.events.SimpleAction
Throws:
com.liferay.portal.kernel.events.ActionException

doRun

protected void doRun(long companyId)
              throws java.lang.Exception
Throws:
java.lang.Exception