--- /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.userProperties.hook.events;
+
+import com.liferay.portal.kernel.events.ActionException;
+import com.liferay.portal.kernel.events.SimpleAction;
+
+import com.pentila.entSavoie.userProperties.service.DashboardConfigLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.DashboardDefaultConfigLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.InternalOauthLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.NotifyConfigLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserContactLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserInternalSSOLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserMailSynchronisationLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserMatchingLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserMobileNotificationLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserPropertiesLocalServiceUtil;
+import com.pentila.entSavoie.userProperties.service.UserRelationshipLocalServiceUtil;
+
+/**
+ * @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.userProperties.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 {
+ DashboardConfigLocalServiceUtil.clearService();
+
+ DashboardDefaultConfigLocalServiceUtil.clearService();
+
+ InternalOauthLocalServiceUtil.clearService();
+
+ NotifyConfigLocalServiceUtil.clearService();
+
+ UserContactLocalServiceUtil.clearService();
+
+ UserInternalSSOLocalServiceUtil.clearService();
+
+ UserMailSynchronisationLocalServiceUtil.clearService();
+
+ UserMatchingLocalServiceUtil.clearService();
+
+ UserMobileNotificationLocalServiceUtil.clearService();
+
+ UserPropertiesLocalServiceUtil.clearService();
+
+ UserRelationshipLocalServiceUtil.clearService();
+ }
+}
\ No newline at end of file