--- /dev/null
+/*******************************************************************************
+ * Copyright © Igor Barma, Alexandre Desoubeaux, Christian Martel, Eric Brun, Mathieu Amblard, Gwenael Gevet, Pierre Guillot, 2012
+ *
+ * This file is part of the work and learning management system Pentila Nero.
+ *
+ * Pentila Nero is free software. You can redistribute it and/or modify since
+ * you respect the terms of either (at least one of the both license) :
+ * - under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ * - the CeCILL-C as published by CeCILL-C; either version 1 of the
+ * License, or any later version
+ * - the GNU Lesser General Public License as published by the
+ * Free Software Foundation, either version 3 of the license,
+ * or (at your option) any later version.
+ *
+ * There are special exceptions to the terms and conditions of the
+ * licenses as they are applied to this software. View the full text of
+ * the exception in file LICENSE-PROJECT.txt in the directory of this software
+ * distribution.
+ *
+ * Pentila Nero 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
+ * Licenses for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * and the CeCILL-C and the GNU Lesser General Public License along with
+ * Pentila Nero. If not, see :
+ * <http://www.gnu.org/licenses/> and
+ * <http://www.cecill.info/licences.fr.html>.
+ ******************************************************************************/
+package com.pentila.entSavoie.cahierDeTexte.service.base;
+
+import com.liferay.portal.PortalException;
+import com.liferay.portal.SystemException;
+import com.liferay.portal.kernel.annotation.BeanReference;
+import com.liferay.portal.kernel.dao.orm.DynamicQuery;
+import com.liferay.portal.util.PortalUtil;
+
+import com.pentila.entSavoie.cahierDeTexte.model.LockCDT;
+import com.pentila.entSavoie.cahierDeTexte.service.AnnotationCDTLocalService;
+import com.pentila.entSavoie.cahierDeTexte.service.ConfigurationCDTLocalService;
+import com.pentila.entSavoie.cahierDeTexte.service.EventCDTLocalService;
+import com.pentila.entSavoie.cahierDeTexte.service.LockCDTLocalService;
+import com.pentila.entSavoie.cahierDeTexte.service.ValidationIPRCDTLocalService;
+import com.pentila.entSavoie.cahierDeTexte.service.persistence.AnnotationCDTPersistence;
+import com.pentila.entSavoie.cahierDeTexte.service.persistence.ConfigurationCDTPersistence;
+import com.pentila.entSavoie.cahierDeTexte.service.persistence.EventCDTPersistence;
+import com.pentila.entSavoie.cahierDeTexte.service.persistence.LockCDTPersistence;
+import com.pentila.entSavoie.cahierDeTexte.service.persistence.ValidationIPRCDTPersistence;
+
+import java.util.List;
+
+
+public abstract class LockCDTLocalServiceBaseImpl implements LockCDTLocalService {
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.ConfigurationCDTLocalService.impl")
+ protected ConfigurationCDTLocalService configurationCDTLocalService;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.persistence.ConfigurationCDTPersistence.impl")
+ protected ConfigurationCDTPersistence configurationCDTPersistence;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.AnnotationCDTLocalService.impl")
+ protected AnnotationCDTLocalService annotationCDTLocalService;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.persistence.AnnotationCDTPersistence.impl")
+ protected AnnotationCDTPersistence annotationCDTPersistence;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.LockCDTLocalService.impl")
+ protected LockCDTLocalService lockCDTLocalService;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.persistence.LockCDTPersistence.impl")
+ protected LockCDTPersistence lockCDTPersistence;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.ValidationIPRCDTLocalService.impl")
+ protected ValidationIPRCDTLocalService validationIPRCDTLocalService;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.persistence.ValidationIPRCDTPersistence.impl")
+ protected ValidationIPRCDTPersistence validationIPRCDTPersistence;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.EventCDTLocalService.impl")
+ protected EventCDTLocalService eventCDTLocalService;
+ @BeanReference(name = "com.pentila.entSavoie.cahierDeTexte.service.persistence.EventCDTPersistence.impl")
+ protected EventCDTPersistence eventCDTPersistence;
+
+ public LockCDT addLockCDT(LockCDT lockCDT) throws SystemException {
+ lockCDT.setNew(true);
+
+ return lockCDTPersistence.update(lockCDT, false);
+ }
+
+ public LockCDT createLockCDT(long lockId) {
+ return lockCDTPersistence.create(lockId);
+ }
+
+ public void deleteLockCDT(long lockId)
+ throws PortalException, SystemException {
+ lockCDTPersistence.remove(lockId);
+ }
+
+ public void deleteLockCDT(LockCDT lockCDT) throws SystemException {
+ lockCDTPersistence.remove(lockCDT);
+ }
+
+ public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return lockCDTPersistence.findWithDynamicQuery(dynamicQuery);
+ }
+
+ public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
+ int end) throws SystemException {
+ return lockCDTPersistence.findWithDynamicQuery(dynamicQuery, start, end);
+ }
+
+ public LockCDT getLockCDT(long lockId)
+ throws PortalException, SystemException {
+ return lockCDTPersistence.findByPrimaryKey(lockId);
+ }
+
+ public List<LockCDT> getLockCDTs(int start, int end)
+ throws SystemException {
+ return lockCDTPersistence.findAll(start, end);
+ }
+
+ public int getLockCDTsCount() throws SystemException {
+ return lockCDTPersistence.countAll();
+ }
+
+ public LockCDT updateLockCDT(LockCDT lockCDT) throws SystemException {
+ lockCDT.setNew(false);
+
+ return lockCDTPersistence.update(lockCDT, true);
+ }
+
+ public LockCDT updateLockCDT(LockCDT lockCDT, boolean merge)
+ throws SystemException {
+ lockCDT.setNew(false);
+
+ return lockCDTPersistence.update(lockCDT, merge);
+ }
+
+ public ConfigurationCDTLocalService getConfigurationCDTLocalService() {
+ return configurationCDTLocalService;
+ }
+
+ public void setConfigurationCDTLocalService(
+ ConfigurationCDTLocalService configurationCDTLocalService) {
+ this.configurationCDTLocalService = configurationCDTLocalService;
+ }
+
+ public ConfigurationCDTPersistence getConfigurationCDTPersistence() {
+ return configurationCDTPersistence;
+ }
+
+ public void setConfigurationCDTPersistence(
+ ConfigurationCDTPersistence configurationCDTPersistence) {
+ this.configurationCDTPersistence = configurationCDTPersistence;
+ }
+
+ public AnnotationCDTLocalService getAnnotationCDTLocalService() {
+ return annotationCDTLocalService;
+ }
+
+ public void setAnnotationCDTLocalService(
+ AnnotationCDTLocalService annotationCDTLocalService) {
+ this.annotationCDTLocalService = annotationCDTLocalService;
+ }
+
+ public AnnotationCDTPersistence getAnnotationCDTPersistence() {
+ return annotationCDTPersistence;
+ }
+
+ public void setAnnotationCDTPersistence(
+ AnnotationCDTPersistence annotationCDTPersistence) {
+ this.annotationCDTPersistence = annotationCDTPersistence;
+ }
+
+ public LockCDTLocalService getLockCDTLocalService() {
+ return lockCDTLocalService;
+ }
+
+ public void setLockCDTLocalService(LockCDTLocalService lockCDTLocalService) {
+ this.lockCDTLocalService = lockCDTLocalService;
+ }
+
+ public LockCDTPersistence getLockCDTPersistence() {
+ return lockCDTPersistence;
+ }
+
+ public void setLockCDTPersistence(LockCDTPersistence lockCDTPersistence) {
+ this.lockCDTPersistence = lockCDTPersistence;
+ }
+
+ public ValidationIPRCDTLocalService getValidationIPRCDTLocalService() {
+ return validationIPRCDTLocalService;
+ }
+
+ public void setValidationIPRCDTLocalService(
+ ValidationIPRCDTLocalService validationIPRCDTLocalService) {
+ this.validationIPRCDTLocalService = validationIPRCDTLocalService;
+ }
+
+ public ValidationIPRCDTPersistence getValidationIPRCDTPersistence() {
+ return validationIPRCDTPersistence;
+ }
+
+ public void setValidationIPRCDTPersistence(
+ ValidationIPRCDTPersistence validationIPRCDTPersistence) {
+ this.validationIPRCDTPersistence = validationIPRCDTPersistence;
+ }
+
+ public EventCDTLocalService getEventCDTLocalService() {
+ return eventCDTLocalService;
+ }
+
+ public void setEventCDTLocalService(
+ EventCDTLocalService eventCDTLocalService) {
+ this.eventCDTLocalService = eventCDTLocalService;
+ }
+
+ public EventCDTPersistence getEventCDTPersistence() {
+ return eventCDTPersistence;
+ }
+
+ public void setEventCDTPersistence(EventCDTPersistence eventCDTPersistence) {
+ this.eventCDTPersistence = eventCDTPersistence;
+ }
+
+ protected void runSQL(String sql) throws SystemException {
+ try {
+ PortalUtil.runSQL(sql);
+ } catch (Exception e) {
+ throw new SystemException(e);
+ }
+ }
+}