Revision 45193
Added by Claudio Atzori over 7 years ago
modules/dnet-modular-logging/trunk/src/main/java/eu/dnetlib/common/logging/dao/DnetLoggerDao.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.common.logging.dao; |
2 | 2 |
|
3 |
import java.util.Date; |
|
4 |
import java.util.Iterator; |
|
5 |
import java.util.Map; |
|
3 |
import java.util.*; |
|
6 | 4 |
|
7 | 5 |
public interface DnetLoggerDao { |
8 | 6 |
|
... | ... | |
26 | 24 |
|
27 | 25 |
Iterator<Map<String, String>> findByDateRange(final String name, final Date startDate, final Date endDate, final Map<String, Object> criteria); |
28 | 26 |
|
27 |
Iterator<Map<String, String>> find(final String collection, final String cql, final List<String> fields); |
|
29 | 28 |
} |
modules/dnet-modular-logging/trunk/src/main/java/eu/dnetlib/common/logging/DnetLogger.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Date; |
4 | 4 |
import java.util.Iterator; |
5 |
import java.util.List; |
|
5 | 6 |
import java.util.Map; |
6 | 7 |
|
7 | 8 |
import javax.annotation.PostConstruct; |
... | ... | |
47 | 48 |
return dao.findOne(name, key, value); |
48 | 49 |
} |
49 | 50 |
|
51 |
public Iterator<Map<String, String>> find(final String cql, final List<String> fields) { |
|
52 |
return dao.find(name, cql, fields); |
|
53 |
} |
|
54 |
|
|
50 | 55 |
@Override |
51 | 56 |
public Iterator<Map<String, String>> iterator() { |
52 | 57 |
return dao.obtainLogIterator(name); |
modules/dnet-modular-logging/trunk/pom.xml | ||
---|---|---|
2 | 2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 | 3 |
<parent> |
4 | 4 |
<groupId>eu.dnetlib</groupId> |
5 |
<artifactId>dnet-parent</artifactId> |
|
6 |
<version>1.0.0</version> |
|
5 |
<artifactId>dnet45-parent</artifactId>
|
|
6 |
<version>1.0.0-SNAPSHOT</version>
|
|
7 | 7 |
<relativePath /> |
8 | 8 |
</parent> |
9 | 9 |
<modelVersion>4.0.0</modelVersion> |
... | ... | |
12 | 12 |
<packaging>jar</packaging> |
13 | 13 |
<version>1.1.2-SNAPSHOT</version> |
14 | 14 |
<scm> |
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-modular-logging/trunk</developerConnection>
|
|
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-modular-logging/trunk</developerConnection>
|
|
16 | 16 |
</scm> |
17 | 17 |
<dependencies> |
18 | 18 |
<dependency> |
Also available in: Unified diff
migrated to dnet45