--- /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.gestionVieScolaire.service.impl;
+
+import java.util.List;
+
+import com.liferay.portal.kernel.exception.SystemException;
+import com.pentila.entSavoie.gestionVieScolaire.model.AbsencesBlogEntryMapping;
+import com.pentila.entSavoie.gestionVieScolaire.service.base.AbsencesBlogEntryMappingLocalServiceBaseImpl;
+import com.pentila.entSavoie.gestionVieScolaire.service.persistence.AbsencesBlogEntryMappingUtil;
+
+/**
+ * The implementation of the absences blog entry mapping 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.gestionVieScolaire.service.AbsencesBlogEntryMappingLocalService} 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 Cédric Lecarpentier
+ * @see com.pentila.entSavoie.gestionVieScolaire.service.base.AbsencesBlogEntryMappingLocalServiceBaseImpl
+ * @see com.pentila.entSavoie.gestionVieScolaire.service.AbsencesBlogEntryMappingLocalServiceUtil
+ */
+public class AbsencesBlogEntryMappingLocalServiceImpl
+ extends AbsencesBlogEntryMappingLocalServiceBaseImpl {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never reference this interface directly. Always use {@link com.pentila.entSavoie.gestionVieScolaire.service.AbsencesBlogEntryMappingLocalServiceUtil} to access the absences blog entry mapping local service.
+ */
+
+ public AbsencesBlogEntryMapping addAbsencesBlogEntryMapping() throws SystemException {
+ final long absencesBlogEntryMappingId = counterLocalService.increment();
+ final AbsencesBlogEntryMapping absencesBlogEntryMapping = this.createAbsencesBlogEntryMapping(absencesBlogEntryMappingId);
+ return absencesBlogEntryMapping;
+ }
+
+ public AbsencesBlogEntryMapping addAbsencesBlogEntryMapping(long absenceId, long blogEntryInfoId) throws SystemException {
+ AbsencesBlogEntryMapping absencesBlogEntryMapping = addAbsencesBlogEntryMapping();
+ absencesBlogEntryMapping.setAbsenceId(absenceId);
+ absencesBlogEntryMapping.setBlogEntryInfosId(blogEntryInfoId);
+ absencesBlogEntryMappingPersistence.update(absencesBlogEntryMapping, false);
+ return absencesBlogEntryMapping;
+ }
+
+ public List<AbsencesBlogEntryMapping> findByabsenceId(long absenceId) throws SystemException{
+ return AbsencesBlogEntryMappingUtil.findByabsenceId(absenceId);
+ }
+
+ public List<AbsencesBlogEntryMapping> findByblogEntryInfosId(long blogEntryInfosId) throws SystemException{
+ return AbsencesBlogEntryMappingUtil.findByblogEntryInfosId(blogEntryInfosId);
+ }
+}
\ No newline at end of file