period.setEndPoint(DatatypeFactory.newInstance().newXMLGregorianCalendar(calendar)); if (log.isDebugEnabled()) { log.debug("Period " + period.getStartPoint() + " " + period.getEndPoint());
period.setEndPoint(DatatypeFactory.newInstance().newXMLGregorianCalendar(calendar)); if (log.isDebugEnabled()) { log.debug("Period " + period.getStartPoint() + " " + period.getEndPoint());
if (coveragePeriod.getStartPoint() == null || coveragePeriod.getEndPoint() == null) { throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.InvalidDateInCoveragePeriod")); GregorianCalendar endPoint = coveragePeriod.getEndPoint().toGregorianCalendar(); if (startPoint.getTimeInMillis() > endPoint.getTimeInMillis()) { throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.StartPointAfterEndPoint", startPoint.toString()));
if (coveragePeriod.getStartPoint() == null || coveragePeriod.getEndPoint() == null) { throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.InvalidDateInCoveragePeriod")); GregorianCalendar endPoint = coveragePeriod.getEndPoint().toGregorianCalendar(); if (startPoint.getTimeInMillis() > endPoint.getTimeInMillis()) { throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.StartPointAfterEndPoint", startPoint.toString()));
Date endPointDate = new Date(body.getCoveragePeriod().getEndPoint().toGregorianCalendar().getTimeInMillis());
Date endPointDate = new Date(body.getCoveragePeriod().getEndPoint().toGregorianCalendar().getTimeInMillis());