--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.communityInfos.hook.events;
+
+import com.liferay.portal.kernel.events.ActionException;
+import com.liferay.portal.kernel.events.SimpleAction;
+
+import com.pentila.entSavoie.communityInfos.service.CommunityInfosLocalServiceUtil;
+import com.pentila.entSavoie.communityInfos.service.GroupInfosLocalServiceUtil;
+import com.pentila.entSavoie.communityInfos.service.GroupUtilsLocalServiceUtil;
+import com.pentila.entSavoie.communityInfos.service.LocalGroupesLocalServiceUtil;
+import com.pentila.entSavoie.communityInfos.service.OrganizationCiteScolaireLocalServiceUtil;
+import com.pentila.entSavoie.communityInfos.service.OrganizationMappingLocalServiceUtil;
+
+/**
+ * @author Barma Igor & Amblard Mathieu
+ * This file is auto-generated by service builder.
+ * DO NOT MODIFY
+ * Must be call in portal.properties as application.startup.events=com.pentila.entSavoie.communityInfos.hook.events.SpringClearServiceAction
+ */
+public class SpringClearServiceAction extends SimpleAction {
+ @Override
+ public void run(String[] ids) throws ActionException {
+ try {
+ launchClearServiceAction();
+ }
+ catch (Exception e) {
+ throw new ActionException(e);
+ }
+ }
+
+ protected void launchClearServiceAction() throws Exception {
+ CommunityInfosLocalServiceUtil.clearService();
+
+ GroupInfosLocalServiceUtil.clearService();
+
+ GroupUtilsLocalServiceUtil.clearService();
+
+ LocalGroupesLocalServiceUtil.clearService();
+
+ OrganizationCiteScolaireLocalServiceUtil.clearService();
+
+ OrganizationMappingLocalServiceUtil.clearService();
+ }
+}
\ No newline at end of file