--- /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;
+
+import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
+import com.liferay.portal.kernel.util.ReferenceRegistry;
+import com.liferay.portal.service.InvokableLocalService;
+
+/**
+ * The utility for the organization cite scolaire local service. This utility wraps {@link com.pentila.entSavoie.communityInfos.service.impl.OrganizationCiteScolaireLocalServiceImpl} 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 Barma Igor
+ * @see OrganizationCiteScolaireLocalService
+ * @see com.pentila.entSavoie.communityInfos.service.base.OrganizationCiteScolaireLocalServiceBaseImpl
+ * @see com.pentila.entSavoie.communityInfos.service.impl.OrganizationCiteScolaireLocalServiceImpl
+ * @generated
+ */
+public class OrganizationCiteScolaireLocalServiceUtil {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify this class directly. Add custom service methods to {@link com.pentila.entSavoie.communityInfos.service.impl.OrganizationCiteScolaireLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
+ */
+
+ /**
+ * Adds the organization cite scolaire to the database. Also notifies the appropriate model listeners.
+ *
+ * @param organizationCiteScolaire the organization cite scolaire
+ * @return the organization cite scolaire that was added
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire addOrganizationCiteScolaire(
+ com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire organizationCiteScolaire)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().addOrganizationCiteScolaire(organizationCiteScolaire);
+ }
+
+ /**
+ * Creates a new organization cite scolaire with the primary key. Does not add the organization cite scolaire to the database.
+ *
+ * @param childENTStructureUAI the primary key for the new organization cite scolaire
+ * @return the new organization cite scolaire
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire createOrganizationCiteScolaire(
+ java.lang.String childENTStructureUAI) {
+ return getService().createOrganizationCiteScolaire(childENTStructureUAI);
+ }
+
+ /**
+ * Deletes the organization cite scolaire with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param childENTStructureUAI the primary key of the organization cite scolaire
+ * @return the organization cite scolaire that was removed
+ * @throws PortalException if a organization cite scolaire with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire deleteOrganizationCiteScolaire(
+ java.lang.String childENTStructureUAI)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return getService().deleteOrganizationCiteScolaire(childENTStructureUAI);
+ }
+
+ /**
+ * Deletes the organization cite scolaire from the database. Also notifies the appropriate model listeners.
+ *
+ * @param organizationCiteScolaire the organization cite scolaire
+ * @return the organization cite scolaire that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire deleteOrganizationCiteScolaire(
+ com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire organizationCiteScolaire)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService()
+ .deleteOrganizationCiteScolaire(organizationCiteScolaire);
+ }
+
+ public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
+ return getService().dynamicQuery();
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns the matching rows.
+ *
+ * @param dynamicQuery the dynamic query
+ * @return the matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public static java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().dynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns a range of the matching rows.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param dynamicQuery the dynamic query
+ * @param start the lower bound of the range of model instances
+ * @param end the upper bound of the range of model instances (not inclusive)
+ * @return the range of matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public static java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end) throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().dynamicQuery(dynamicQuery, start, end);
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns an ordered range of the matching rows.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param dynamicQuery the dynamic query
+ * @param start the lower bound of the range of model instances
+ * @param end the upper bound of the range of model instances (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public static java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService()
+ .dynamicQuery(dynamicQuery, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the number of rows that match the dynamic query.
+ *
+ * @param dynamicQuery the dynamic query
+ * @return the number of rows that match the dynamic query
+ * @throws SystemException if a system exception occurred
+ */
+ public static long dynamicQueryCount(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().dynamicQueryCount(dynamicQuery);
+ }
+
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire fetchOrganizationCiteScolaire(
+ java.lang.String childENTStructureUAI)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().fetchOrganizationCiteScolaire(childENTStructureUAI);
+ }
+
+ /**
+ * Returns the organization cite scolaire with the primary key.
+ *
+ * @param childENTStructureUAI the primary key of the organization cite scolaire
+ * @return the organization cite scolaire
+ * @throws PortalException if a organization cite scolaire with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire getOrganizationCiteScolaire(
+ java.lang.String childENTStructureUAI)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return getService().getOrganizationCiteScolaire(childENTStructureUAI);
+ }
+
+ public static com.liferay.portal.model.PersistedModel getPersistedModel(
+ java.io.Serializable primaryKeyObj)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return getService().getPersistedModel(primaryKeyObj);
+ }
+
+ /**
+ * Returns a range of all the organization cite scolaires.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param start the lower bound of the range of organization cite scolaires
+ * @param end the upper bound of the range of organization cite scolaires (not inclusive)
+ * @return the range of organization cite scolaires
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire> getOrganizationCiteScolaires(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().getOrganizationCiteScolaires(start, end);
+ }
+
+ /**
+ * Returns the number of organization cite scolaires.
+ *
+ * @return the number of organization cite scolaires
+ * @throws SystemException if a system exception occurred
+ */
+ public static int getOrganizationCiteScolairesCount()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService().getOrganizationCiteScolairesCount();
+ }
+
+ /**
+ * Updates the organization cite scolaire in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param organizationCiteScolaire the organization cite scolaire
+ * @return the organization cite scolaire that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire updateOrganizationCiteScolaire(
+ com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire organizationCiteScolaire)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService()
+ .updateOrganizationCiteScolaire(organizationCiteScolaire);
+ }
+
+ /**
+ * Updates the organization cite scolaire in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param organizationCiteScolaire the organization cite scolaire
+ * @param merge whether to merge the organization cite scolaire with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
+ * @return the organization cite scolaire that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire updateOrganizationCiteScolaire(
+ com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire organizationCiteScolaire,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService()
+ .updateOrganizationCiteScolaire(organizationCiteScolaire,
+ merge);
+ }
+
+ /**
+ * 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);
+ }
+
+ public static com.pentila.entSavoie.communityInfos.model.OrganizationCiteScolaire addOrganizationCiteScolaire(
+ java.lang.String parentEntStructureUAI,
+ java.lang.String childEntStructureUAI)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService()
+ .addOrganizationCiteScolaire(parentEntStructureUAI,
+ childEntStructureUAI);
+ }
+
+ /**
+ * Return the structure UAI of school in school complex
+ *
+ * @param pParentStructureUAI String the parent structure UAI
+ * @return List<String> which represent the StructureUAI of children if exist otherwise null
+ */
+ public static java.util.List<java.lang.String> getChildrenUAIFromParentUAI(
+ java.lang.String pParentStructureUAI) {
+ return getService().getChildrenUAIFromParentUAI(pParentStructureUAI);
+ }
+
+ /**
+ * Return the list of structure UAI of etab link to the same schoolar complex than the structure in parameter
+ *
+ * @param pStructureUAI Object String, which represent the UAI of an existing
+ * @return List<String> representing the list of structure UAI in same schoolar complex. It doesn't constain the structure UAI in parameter.
+ Null if the structure UAI is not link to schoolar complex
+ */
+ public static java.util.List<java.lang.String> getEtabsUAIInSchoolComplexFromAnEtabStructureUAI(
+ java.lang.String pStructureUAI) {
+ return getService()
+ .getEtabsUAIInSchoolComplexFromAnEtabStructureUAI(pStructureUAI);
+ }
+
+ public static void clearService() {
+ _service = null;
+ }
+
+ public static OrganizationCiteScolaireLocalService getService() {
+ if (_service == null) {
+ InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
+ OrganizationCiteScolaireLocalService.class.getName());
+
+ if (invokableLocalService instanceof OrganizationCiteScolaireLocalService) {
+ _service = (OrganizationCiteScolaireLocalService)invokableLocalService;
+ }
+ else {
+ _service = new OrganizationCiteScolaireLocalServiceClp(invokableLocalService);
+ }
+
+ ReferenceRegistry.registerReference(OrganizationCiteScolaireLocalServiceUtil.class,
+ "_service");
+ }
+
+ return _service;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setService(OrganizationCiteScolaireLocalService service) {
+ }
+
+ private static OrganizationCiteScolaireLocalService _service;
+}
\ No newline at end of file