Revision 48701
Added by Sandro La Bruzzo over 6 years ago
OaiCollectorPlugin.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
if (mdFormat == null || mdFormat.isEmpty()) { throw new CollectorServiceException("Param 'mdFormat' is null or empty"); } |
40 | 40 |
|
41 |
if (fromDate != null && !fromDate.matches("\\d{4}-\\d{2}-\\d{2}")) { throw new CollectorServiceException("Invalid date (YYYY-MM-DD): " + fromDate); } |
|
41 |
if (fromDate != null && !fromDate.matches("\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?+")) { |
|
42 |
throw new CollectorServiceException("Invalid date (YYYY-MM-DD): " + fromDate); |
|
43 |
} |
|
42 | 44 |
|
43 |
if (untilDate != null && !untilDate.matches("\\d{4}-\\d{2}-\\d{2}")) { throw new CollectorServiceException("Invalid date (YYYY-MM-DD): " + untilDate); } |
|
45 |
if (untilDate != null && !untilDate.matches("\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?+")) { |
|
46 |
throw new CollectorServiceException("Invalid date (YYYY-MM-DD): " + untilDate); |
|
47 |
} |
|
44 | 48 |
|
45 | 49 |
return () -> { |
46 | 50 |
final Iterator<Iterator<String>> iterator = |
Also available in: Unified diff
Upgraded incremental harvesting and other stuff