branch feature/7613-LL-VerifEcranOperationPêche created (now 523d691)
This is an automated email from the git hooks/post-receive script. New change to branch feature/7613-LL-VerifEcranOperationPêche in repository tutti. See http://git.codelutin.com/tutti.git at 523d691 A la creation de l'opération, ajout du noeud dans l'arbre de navigation (see #7613). This branch includes the following new commits: new 405dd04 Ajout de trace dans les appels des services (see #7613). new 523d691 A la creation de l'opération, ajout du noeud dans l'arbre de navigation (see #7613). The 2 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 523d69102388dd7559ffee6ca5d476c9f6d1d2de Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Mar 10 09:10:26 2016 +0100 A la creation de l'opération, ajout du noeud dans l'arbre de navigation (see #7613). commit 405dd04d75537863c9f63a8b31f7ba64b8f7b96f Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Mar 10 09:08:01 2016 +0100 Ajout de trace dans les appels des services (see #7613). -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7613-LL-VerifEcranOperationPêche in repository tutti. See http://git.codelutin.com/tutti.git commit 405dd04d75537863c9f63a8b31f7ba64b8f7b96f Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Mar 10 09:08:01 2016 +0100 Ajout de trace dans les appels des services (see #7613). --- .../service/longline/SetLonglineServiceTopia.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/observe-services-topia/src/main/java/fr/ird/observe/services/service/longline/SetLonglineServiceTopia.java b/observe-services-topia/src/main/java/fr/ird/observe/services/service/longline/SetLonglineServiceTopia.java index eb1095f..1bd8f2a 100644 --- a/observe-services-topia/src/main/java/fr/ird/observe/services/service/longline/SetLonglineServiceTopia.java +++ b/observe-services-topia/src/main/java/fr/ird/observe/services/service/longline/SetLonglineServiceTopia.java @@ -39,6 +39,8 @@ import fr.ird.observe.services.dto.reference.request.ReferenceSetRequestDefiniti import fr.ird.observe.services.dto.result.SaveResultDto; import fr.ird.observe.services.service.DataNotFoundException; import org.apache.commons.lang3.time.DateUtils; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import java.util.Date; import java.util.Set; @@ -48,8 +50,13 @@ import java.util.Set; */ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetLonglineService { + private static final Log log = LogFactory.getLog(SetLonglineServiceTopia.class); + @Override public Form<SetLonglineDto> loadForm(String setLonglineId) { + if (log.isTraceEnabled()) { + log.trace("loadForm(" + setLonglineId + ")"); + } SetLongline setLongline = loadEntity(SetLonglineDto.class, setLonglineId); @@ -69,6 +76,9 @@ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetL @Override public DataReference<SetLonglineDto> loadReferenceToRead(String setLonglineId) { + if (log.isTraceEnabled()) { + log.trace("loadReferenceToRead(" + setLonglineId + ")"); + } SetLongline setLongline = loadEntity(SetLonglineDto.class, setLonglineId); @@ -79,6 +89,9 @@ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetL @Override public SetLonglineDto loadDto(String setLonglineId) { + if (log.isTraceEnabled()) { + log.trace("loadDto(" + setLonglineId + ")"); + } return loadEntityToDataDto(SetLonglineDto.class, setLonglineId); @@ -86,6 +99,9 @@ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetL @Override public boolean exists(String setLonglineId) { + if (log.isTraceEnabled()) { + log.trace("exists(" + setLonglineId + ")"); + } return existsEntity(SetLongline.class, setLonglineId); @@ -93,6 +109,9 @@ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetL @Override public Form<SetLonglineDto> preCreate(String activityLonglineId) { + if (log.isTraceEnabled()) { + log.trace("preCreate(" + activityLonglineId + ")"); + } ActivityLongline activityLongline = loadEntity(ActivityLonglineDto.class, activityLonglineId); @@ -128,6 +147,9 @@ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetL @Override public SaveResultDto save(String activityLonglineId, SetLonglineDto dto) { + if (log.isTraceEnabled()) { + log.trace("save(" + activityLonglineId + ", " + dto.getId() + ")"); + } ActivityLongline activityLongline = loadEntity(ActivityLonglineDto.class, activityLonglineId); @@ -147,6 +169,9 @@ public class SetLonglineServiceTopia extends ObserveServiceTopia implements SetL @Override public void delete(String activityLonglineId, String setLonglineId) { + if (log.isTraceEnabled()) { + log.trace("delete(" + activityLonglineId + ", " + setLonglineId + ")"); + } ActivityLongline activityLongline = loadEntity(ActivityLonglineDto.class, activityLonglineId); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7613-LL-VerifEcranOperationPêche in repository tutti. See http://git.codelutin.com/tutti.git commit 523d69102388dd7559ffee6ca5d476c9f6d1d2de Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Mar 10 09:10:26 2016 +0100 A la creation de l'opération, ajout du noeud dans l'arbre de navigation (see #7613). --- .../ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/observe-application-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java b/observe-application-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java index da5e0d1..e736167 100644 --- a/observe-application-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java +++ b/observe-application-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java @@ -366,10 +366,8 @@ public class SetLonglineUIHandler extends ContentUIHandler<SetLonglineDto> { // remove old node and recreate new node ObserveNode parentNode = treeHelper.removeNode(node); - //FIXME DataReference -// DataReference<SetLonglineDto> refBean = ReferenceDtos.newReferenceDto(bean, ImmutableSet.<String>of()); - DataReference<SetLonglineDto> refBean = null; - node = treeHelper.addSetLongline(parentNode, refBean); + DataReference<SetLonglineDto> beanRef = ObserveSwingApplicationContext.get().getReferenceBinderEngine().transformDataDtoToReference(getDecoratorService().getReferentialLocale(), bean); + node = treeHelper.addSetLongline(parentNode, beanRef); stopEditUI(); treeHelper.selectNode(node); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm