Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6c7e1ed3 authored by Guillaume Thomazon's avatar Guillaume Thomazon
Browse files

Add selection by SOP Class UID (affected and requested) and command field.

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@33595 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
parent 4797a323
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ package net.ihe.gazelle.proxy.dao; ...@@ -2,6 +2,8 @@ package net.ihe.gazelle.proxy.dao;
import java.util.Date; import java.util.Date;
import javax.persistence.Column;
import net.ihe.gazelle.hql.HQLQueryBuilder; import net.ihe.gazelle.hql.HQLQueryBuilder;
import net.ihe.gazelle.hql.paths.HQLSafePathBasic; import net.ihe.gazelle.hql.paths.HQLSafePathBasic;
import net.ihe.gazelle.hql.restrictions.HQLRestrictions; import net.ihe.gazelle.hql.restrictions.HQLRestrictions;
...@@ -141,7 +143,7 @@ public class MessageFilterStandard<T extends AbstractMessage> implements Message ...@@ -141,7 +143,7 @@ public class MessageFilterStandard<T extends AbstractMessage> implements Message
} }
public void reset() { public void reset() {
messageType = ChannelType.HTTP; messageType = getMessageType();
initiatorIP = null; initiatorIP = null;
initiatorPort = null; initiatorPort = null;
responderIP = null; responderIP = null;
...@@ -176,17 +178,18 @@ public class MessageFilterStandard<T extends AbstractMessage> implements Message ...@@ -176,17 +178,18 @@ public class MessageFilterStandard<T extends AbstractMessage> implements Message
abstractMessageQuery.dateReceived().ge(dateFrom); abstractMessageQuery.dateReceived().ge(dateFrom);
} }
if (dateTo != null) { if (dateTo != null) {
abstractMessageQuery.dateReceived().le(dateFrom); abstractMessageQuery.dateReceived().le(dateTo);
} }
if (messageType == ChannelType.DICOM) { if (messageType == ChannelType.DICOM) {
DicomMessageQuery dicomMessageQuery = new DicomMessageQuery(criteria); DicomMessageQuery dicomMessageQuery = new DicomMessageQuery(criteria);
// addEq(dicomMessageQuery.affectedSopClassUID(), addEq(dicomMessageQuery.infoAffectedSOPClassUID(),
// dicomAffectedSopClassUID); dicomAffectedSopClassUID);
// addEq(dicomMessageQuery.requestedSopClassUID(), addEq(dicomMessageQuery.infoRequestedSOPClassUID(),
// dicomRequestedSopClassUID); dicomRequestedSopClassUID);
// addEq(dicomMessageQuery.commandField(), dicomCommandField); addEq(dicomMessageQuery.infoCommandField(), dicomCommandField);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment