--- /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.groupAdmin.service;
+
+import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
+import com.liferay.portal.kernel.util.ReferenceRegistry;
+import com.liferay.portal.service.InvokableLocalService;
+
+/**
+ * The utility for the group admin local service. This utility wraps {@link com.pentila.entSavoie.groupAdmin.service.impl.GroupAdminLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
+ *
+ * <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 Marc Salvat
+ * @see GroupAdminLocalService
+ * @see com.pentila.entSavoie.groupAdmin.service.base.GroupAdminLocalServiceBaseImpl
+ * @see com.pentila.entSavoie.groupAdmin.service.impl.GroupAdminLocalServiceImpl
+ * @generated
+ */
+public class GroupAdminLocalServiceUtil {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify this class directly. Add custom service methods to {@link com.pentila.entSavoie.groupAdmin.service.impl.GroupAdminLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
+ */
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public static java.lang.String getBeanIdentifier() {
+ return getService().getBeanIdentifier();
+ }
+
+ /**
+ * Sets the Spring bean ID for this bean.
+ *
+ * @param beanIdentifier the Spring bean ID for this bean
+ */
+ public static void setBeanIdentifier(java.lang.String beanIdentifier) {
+ getService().setBeanIdentifier(beanIdentifier);
+ }
+
+ public static java.lang.Object invokeMethod(java.lang.String name,
+ java.lang.String[] parameterTypes, java.lang.Object[] arguments)
+ throws java.lang.Throwable {
+ return getService().invokeMethod(name, parameterTypes, arguments);
+ }
+
+ /**
+ * This method get the users who have the group_admin role in the school list in parameter
+ *
+ * @param orgs organization list that contains the schools to search in
+ * @param companyId which needed to get the roleId
+ * @return result the user list found
+ */
+ public static java.util.List<com.liferay.portal.model.User> getGroupAdminsFromEtab(
+ java.util.List<com.liferay.portal.model.Organization> orgs,
+ long companyId) {
+ return getService().getGroupAdminsFromEtab(orgs, companyId);
+ }
+
+ /**
+ * Return all etabs if roleAdmin, schoolar complex if schoolheader (national 4) or user's schools if only group_admin
+ *
+ * @param user from which we want to generate the list
+ * @return the organizations list
+ */
+ public static java.util.List<com.liferay.portal.model.Organization> getEtabsForGroupAdmin(
+ com.liferay.portal.model.User user) {
+ return getService().getEtabsForGroupAdmin(user);
+ }
+
+ public static void clearService() {
+ _service = null;
+ }
+
+ public static GroupAdminLocalService getService() {
+ if (_service == null) {
+ InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
+ GroupAdminLocalService.class.getName());
+
+ if (invokableLocalService instanceof GroupAdminLocalService) {
+ _service = (GroupAdminLocalService)invokableLocalService;
+ }
+ else {
+ _service = new GroupAdminLocalServiceClp(invokableLocalService);
+ }
+
+ ReferenceRegistry.registerReference(GroupAdminLocalServiceUtil.class,
+ "_service");
+ }
+
+ return _service;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setService(GroupAdminLocalService service) {
+ }
+
+ private static GroupAdminLocalService _service;
+}
\ No newline at end of file