Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
MongoPublisherStoreDAO.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
import java.util.stream.Collectors; |
5 |
|
|
6 | 5 |
import javax.annotation.Resource; |
7 | 6 |
|
8 |
import org.apache.commons.logging.Log; |
|
9 |
import org.apache.commons.logging.LogFactory; |
|
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 |
import org.springframework.beans.factory.annotation.Required; |
|
12 |
|
|
13 | 7 |
import com.mongodb.BasicDBObjectBuilder; |
14 | 8 |
import com.mongodb.DBObject; |
15 | 9 |
import com.mongodb.MongoClient; |
... | ... | |
17 | 11 |
import com.mongodb.client.MongoCollection; |
18 | 12 |
import com.mongodb.client.MongoDatabase; |
19 | 13 |
import com.mongodb.client.model.Filters; |
20 |
|
|
21 | 14 |
import eu.dnetlib.enabling.tools.DnetStreamSupport; |
22 | 15 |
import eu.dnetlib.oai.PublisherStoreDAO; |
23 | 16 |
import eu.dnetlib.oai.RecordChangeDetector; |
... | ... | |
29 | 22 |
import eu.dnetlib.rmi.provision.OaiPublisherRuntimeException; |
30 | 23 |
import net.sf.ehcache.Cache; |
31 | 24 |
import net.sf.ehcache.Element; |
25 |
import org.apache.commons.logging.Log; |
|
26 |
import org.apache.commons.logging.LogFactory; |
|
27 |
import org.springframework.beans.factory.annotation.Autowired; |
|
28 |
import org.springframework.beans.factory.annotation.Required; |
|
32 | 29 |
|
33 | 30 |
public class MongoPublisherStoreDAO implements PublisherStoreDAO<MongoPublisherStore, DNetOAIMongoCursor> { |
34 | 31 |
|
... | ... | |
42 | 39 |
**/ |
43 | 40 |
private String metadataCollection; |
44 | 41 |
|
45 |
@Resource
|
|
42 |
@Autowired
|
|
46 | 43 |
private RecordInfoGenerator recordInfoGenerator; |
47 |
@Resource
|
|
44 |
@Autowired
|
|
48 | 45 |
private MetadataExtractor metadataExtractor; |
49 |
@Resource
|
|
46 |
@Autowired
|
|
50 | 47 |
private MongoQueryParser queryParser; |
51 | 48 |
@Resource(name = "oaiConfigurationExistReader") |
52 | 49 |
private OAIConfigurationReader configuration; |
53 |
@Resource
|
|
50 |
@Autowired
|
|
54 | 51 |
private RecordChangeDetector recordChangeDetector; |
55 |
@Resource
|
|
52 |
@Autowired
|
|
56 | 53 |
private MongoSetCollection mongoSetCollection; |
57 | 54 |
|
58 | 55 |
/** |
Also available in: Unified diff
Chnaged Resource to Autowired