--- /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.service.impl;
+
+import java.util.Date;
+import java.util.List;
+
+import com.liferay.portal.kernel.exception.SystemException;
+import com.pentila.entSavoie.communityInfos.model.CommunityInfos;
+import com.pentila.entSavoie.communityInfos.service.CommunityInfosLocalServiceUtil;
+import com.pentila.entSavoie.communityInfos.service.base.LocalGroupesLocalServiceBaseImpl;
+
+/**
+ * The implementation of the local groupes local service.
+ *
+ * <p>
+ * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link com.pentila.entSavoie.communityInfos.service.LocalGroupesLocalService} interface.
+ *
+ * <p>
+ * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
+ * </p>
+ *
+ * @author Barma Igor
+ * @see com.pentila.entSavoie.communityInfos.service.base.LocalGroupesLocalServiceBaseImpl
+ * @see com.pentila.entSavoie.communityInfos.service.LocalGroupesLocalServiceUtil
+ */
+public class LocalGroupesLocalServiceImpl
+ extends LocalGroupesLocalServiceBaseImpl {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never reference this interface directly. Always use {@link com.pentila.entSavoie.communityInfos.service.LocalGroupesLocalServiceUtil} to access the local groupes local service.
+ */
+
+
+ /**
+ * This method return all the community of the etab
+ * @param pOrganizationId this the etab id. An id which represent the etab in database
+ * @return it return a list with all local group for this etab give in parameter. This is List<CommunityInfos> object
+ */
+ public List<CommunityInfos> getCommunityListFromEtabId(long pOrganizationId) throws SystemException{
+ // get community and verify if the user has storage
+ Date date = new Date();
+ List<CommunityInfos> communities = CommunityInfosLocalServiceUtil.getCommunityInfosByOrganizationId(pOrganizationId, date);
+ return communities;
+ }
+}
\ No newline at end of file