Issue #1686 Fixed GetAuditTrailByTimeInterval registry canonical query
Change-Id: I2e9b2482e4db91e7f4ba642267e3aaf1c5df1279 Former-commit-id:c294d5d77a
[formerly5cd030f096
] [formerly1c46226a11
[formerly ce2db6d930faf1166bec9956fb21ea51e2329d40]] Former-commit-id:1c46226a11
Former-commit-id:fe7c6886c4
This commit is contained in:
parent
fad5c6d615
commit
1a19965daf
1 changed files with 21 additions and 4 deletions
|
@ -22,6 +22,8 @@ package com.raytheon.uf.edex.registry.ebxml.services.query.plugins;
|
|||
import javax.jws.WebMethod;
|
||||
import javax.jws.WebParam;
|
||||
import javax.jws.WebResult;
|
||||
import javax.xml.datatype.DatatypeConfigurationException;
|
||||
import javax.xml.datatype.DatatypeFactory;
|
||||
import javax.xml.datatype.XMLGregorianCalendar;
|
||||
|
||||
import oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.MsgRegistryException;
|
||||
|
@ -71,6 +73,7 @@ import com.raytheon.uf.edex.registry.ebxml.util.EbxmlObjectUtil;
|
|||
* 3/18/2013 1802 bphillip Modified to use transaction boundaries and spring dao injection
|
||||
* 4/9/2013 1802 bphillip Changed abstract method signature, modified return processing, and changed static variables
|
||||
* 10/8/2013 1682 bphillip Refactored querying
|
||||
* 11/13/2013 1686 bphillip Fixed the arguments of this query
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -99,10 +102,24 @@ public class GetAuditTrailByTimeInterval extends RegistryQueryPlugin {
|
|||
@WebParam(name = "QueryRequest", targetNamespace = EbxmlNamespaces.QUERY_URI, partName = "partQueryRequest") QueryRequest queryRequest)
|
||||
throws MsgRegistryException {
|
||||
QueryType queryType = queryRequest.getQuery();
|
||||
XMLGregorianCalendar startTime = queryType
|
||||
.getSlotValue(QueryConstants.START_TIME);
|
||||
XMLGregorianCalendar endTime = queryType
|
||||
.getSlotValue(QueryConstants.END_TIME);
|
||||
|
||||
XMLGregorianCalendar startTime = null;
|
||||
XMLGregorianCalendar endTime = null;
|
||||
try {
|
||||
startTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(
|
||||
(String) queryType.getSlotValue(QueryConstants.START_TIME));
|
||||
} catch (DatatypeConfigurationException e) {
|
||||
throw EbxmlExceptionUtil.createMsgRegistryException(
|
||||
"Error parsing start time", e);
|
||||
}
|
||||
|
||||
try {
|
||||
endTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(
|
||||
(String) queryType.getSlotValue(QueryConstants.END_TIME));
|
||||
} catch (DatatypeConfigurationException e) {
|
||||
throw EbxmlExceptionUtil.createMsgRegistryException(
|
||||
"Error parsing end time", e);
|
||||
}
|
||||
|
||||
// Start time defaults to current Time
|
||||
long currentTime = TimeUtil.currentTimeMillis();
|
||||
|
|
Loading…
Add table
Reference in a new issue