Class SampleAppStartupAction

Object
com.liferay.portal.kernel.events.SimpleAction
com.liferay.portal.events.SampleAppStartupAction
All Implemented Interfaces:
com.liferay.portal.kernel.events.LifecycleAction

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

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 Details

    • SampleAppStartupAction

      public SampleAppStartupAction()
  • Method Details

    • run

      public void run(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 Exception
      Throws:
      Exception