This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See http://git.codelutin.com/observe.git commit 72f194bbef55de9d541265df55b8fd32a2d2249f Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Aug 26 14:39:41 2015 +0200 implantation ObjectSchoolEstimateService (refs #7458). --- .../seine/ObjectSchoolEstimateServiceTopia.java | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/ObjectSchoolEstimateServiceTopia.java b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/ObjectSchoolEstimateServiceTopia.java new file mode 100644 index 0000000..8a013f7 --- /dev/null +++ b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/ObjectSchoolEstimateServiceTopia.java @@ -0,0 +1,47 @@ +package fr.ird.observe.services.service.seine; + +import fr.ird.observe.entities.seine.FloatingObject; +import fr.ird.observe.services.ObserveServiceTopia; +import fr.ird.observe.services.dto.FormDto; +import fr.ird.observe.services.dto.seine.FloatingObjectSchoolEstimateDto; + +/** + * @author Sylvain Bavencoff - bavencoff@codelutin.com + */ +public class ObjectSchoolEstimateServiceTopia extends ObserveServiceTopia implements ObjectSchoolEstimateService { + + @Override + public FormDto<FloatingObjectSchoolEstimateDto> loadToRead(String floatingObjectId) { + + FloatingObject floatingObject = + loadEntity(FloatingObjectSchoolEstimateDto.class, FloatingObject.class, floatingObjectId); + + FormDto<FloatingObjectSchoolEstimateDto> form = + entityToReadFormDto(FloatingObjectSchoolEstimateDto.class, FloatingObject.class, floatingObject); + + return form; + } + + @Override + public FormDto<FloatingObjectSchoolEstimateDto> loadToEdit(String floatingObjectId) { + + FloatingObject floatingObject = + loadEntity(FloatingObjectSchoolEstimateDto.class, FloatingObject.class, floatingObjectId); + + FormDto<FloatingObjectSchoolEstimateDto> form = + entityToEditFormDto(FloatingObjectSchoolEstimateDto.class, FloatingObject.class, floatingObject); + + return form; + } + + @Override + public String save(FormDto<FloatingObjectSchoolEstimateDto> form) { + + FloatingObject floatingObject = + dtoToEntity(FloatingObjectSchoolEstimateDto.class, FloatingObject.class, form.getForm()); + + floatingObject = saveEntity(FloatingObject.class, floatingObject); + + return floatingObject.getTopiaId(); + } +} -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.