1 | package eu.clarin.oai.provider.impl; |
---|
2 | |
---|
3 | import java.util.Date; |
---|
4 | |
---|
5 | import javax.xml.stream.XMLStreamException; |
---|
6 | |
---|
7 | import eu.clarin.oai.provider.MetadataFormat; |
---|
8 | import eu.clarin.oai.provider.OAIException; |
---|
9 | import eu.clarin.oai.provider.Record; |
---|
10 | import eu.clarin.oai.provider.RecordList; |
---|
11 | import eu.clarin.oai.provider.ext.OAIOutputStream; |
---|
12 | import eu.clarin.oai.provider.ext.RepositoryAdapter; |
---|
13 | |
---|
14 | final class VerbListIdentifiers extends VerbEnumerateRecord { |
---|
15 | |
---|
16 | @Override |
---|
17 | public String getName() { |
---|
18 | return "ListIdentifiers"; |
---|
19 | } |
---|
20 | |
---|
21 | @Override |
---|
22 | protected RecordList doGetRecords(RepositoryAdapter repository, |
---|
23 | String prefix, Date from, Date until, String set, int offset) |
---|
24 | throws OAIException { |
---|
25 | return repository.getRecordHeaders(prefix, from, until, set, offset); |
---|
26 | } |
---|
27 | |
---|
28 | @Override |
---|
29 | protected void doWriteRecord(RepositoryAdapter repository, |
---|
30 | OAIOutputStream out, MetadataFormat format, Record record) |
---|
31 | throws XMLStreamException { |
---|
32 | out.writeRecordHeader(record); |
---|
33 | } |
---|
34 | |
---|
35 | } // list IdentifiersVerb |
---|