branch feature/7458-topiaServices updated (1affe37 -> 7be6a86)
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 1affe37 implantation floatingObjectService (refs #7458). new 7be6a86 implantation TransmittingBuoyOperationService (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 7be6a860991b7cc9518836a9eaea273e36dd3b74 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Aug 26 14:30:46 2015 +0200 implantation TransmittingBuoyOperationService (refs #7458). Summary of changes: .../TransmittingBuoyOperationServiceTopia.java | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/TransmittingBuoyOperationServiceTopia.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 7be6a860991b7cc9518836a9eaea273e36dd3b74 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Aug 26 14:30:46 2015 +0200 implantation TransmittingBuoyOperationService (refs #7458). --- .../TransmittingBuoyOperationServiceTopia.java | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/TransmittingBuoyOperationServiceTopia.java b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/TransmittingBuoyOperationServiceTopia.java new file mode 100644 index 0000000..480d5e1 --- /dev/null +++ b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/TransmittingBuoyOperationServiceTopia.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.FloatingObjectTransmittingBuoyDto; + +/** + * @author Sylvain Bavencoff - bavencoff@codelutin.com + */ +public class TransmittingBuoyOperationServiceTopia extends ObserveServiceTopia implements TransmittingBuoyOperationService { + + @Override + public FormDto<FloatingObjectTransmittingBuoyDto> loadToRead(String floatingObjectId) { + + FloatingObject floatingObject = + loadEntity(FloatingObjectTransmittingBuoyDto.class, FloatingObject.class, floatingObjectId); + + FormDto<FloatingObjectTransmittingBuoyDto> form = + entityToReadFormDto(FloatingObjectTransmittingBuoyDto.class, FloatingObject.class, floatingObject); + + return form; + } + + @Override + public FormDto<FloatingObjectTransmittingBuoyDto> loadToEdit(String floatingObjectId) { + + FloatingObject floatingObject = + loadEntity(FloatingObjectTransmittingBuoyDto.class, FloatingObject.class, floatingObjectId); + + FormDto<FloatingObjectTransmittingBuoyDto> form = + entityToEditFormDto(FloatingObjectTransmittingBuoyDto.class, FloatingObject.class, floatingObject); + + return form; + } + + @Override + public String save(FormDto<FloatingObjectTransmittingBuoyDto> form) { + + FloatingObject floatingObject = + dtoToEntity(FloatingObjectTransmittingBuoyDto.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