1 package ${packagePath}.hook.events;
3 import com.liferay.portal.kernel.events.ActionException;
4 import com.liferay.portal.kernel.events.SimpleAction;
6 <#list entities as entity>
7 <#if entity.hasLocalService()>
8 import ${packagePath}.service.${entity.name}LocalServiceUtil;
11 <#if entity.hasRemoteService()>
12 import ${packagePath}.service.${entity.name}ServiceUtil;
17 * @author Barma Igor & Amblard Mathieu
18 * This file is auto-generated by service builder.
20 * Must be call in portal.properties as application.startup.events=${packagePath}.hook.events.SpringClearServiceAction
22 public class SpringClearServiceAction extends SimpleAction {
25 public void run(String[] ids) throws ActionException {
27 launchClearServiceAction();
30 throw new ActionException(e);
34 protected void launchClearServiceAction()
36 <#list entities as entity>
37 <#if entity.hasLocalService()>
38 ${entity.name}LocalServiceUtil.clearService();
41 <#if entity.hasRemoteService()>
42 ${entity.name}ServiceUtil.clearService();