Project

General

Profile

« Previous | Next » 

Revision 45183

migrated to dnet45

View differences:

modules/dnet-gridfs-objectstore/trunk/src/main/java/eu/dnetlib/data/objectstore/modular/gridFS/GridFSObjectStore.java
322 322
	/*
323 323
	 * (non-Javadoc)
324 324
	 *
325
	 * @see eu.dnetlib.data.objectstore.modular.connector.ObjectStore#deliverStream(java.lang.String)
326
	 */
327
	@Override
328
	public InputStream deliverStream(final String objectId) throws ObjectStoreFileNotFoundException {
329
		BasicDBObject query = new BasicDBObject("_id", objectId);
330
		List<GridFSDBFile> file = collection.find(query);
331
		checkSingleItem(objectId, file);
332
		return file.get(0).getInputStream();
333
	}
334

  
335
	/*
336
	 * (non-Javadoc)
337
	 *
338 325
	 * @see
339 326
	 * eu.dnetlib.data.objectstore.modular.connector.ObjectStore#feedObjectRecord(eu.dnetlib.data.objectstore.modular.ObjectStoreRecord)
340 327
	 */
modules/dnet-gridfs-objectstore/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
	</parent>
8 8
	<modelVersion>4.0.0</modelVersion>
9 9
	<groupId>eu.dnetlib</groupId>
......
11 11
	<packaging>jar</packaging>
12 12
	<version>4.1.1-SNAPSHOT</version>
13 13
	<scm>
14
	  <developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-gridfs-objectstore/trunk</developerConnection>
14
	  <developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-gridfs-objectstore/trunk</developerConnection>
15 15
	</scm>
16 16
	<dependencies>
17 17
		<dependency>

Also available in: Unified diff