branch feature/7458-topiaServices updated (7be6a86 -> 5cd08f8)
This is an automated email from the git hooks/post-receive script. New change to branch feature/7458-topiaServices in repository observe. See http://git.codelutin.com/observe.git from 7be6a86 implantation TransmittingBuoyOperationService (refs #7458). new 5cd08f8 implantation ObjectSchoolEstimateService (refs #7458). The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 5cd08f8fc0a0c98450388f660255f22726acdcb0 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Aug 26 14:39:41 2015 +0200 implantation ObjectSchoolEstimateService (refs #7458). Summary of changes: .../seine/ObjectSchoolEstimateServiceTopia.java | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/ObjectSchoolEstimateServiceTopia.java -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7458-topiaServices in repository observe. See http://git.codelutin.com/observe.git commit 5cd08f8fc0a0c98450388f660255f22726acdcb0 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>.
participants (1)
-
codelutin.com scm