Project

General

Profile

« Previous | Next » 

Revision 41475

Implemented drop content

View differences:

GridFSObjectstoreDaoImpl.java
3 3
import java.util.List;
4 4
import java.util.regex.Pattern;
5 5

  
6
import org.bson.BSONObject;
7
import org.springframework.beans.factory.annotation.Required;
8

  
9
import com.mongodb.BasicDBObject;
10
import com.mongodb.DB;
11
import com.mongodb.DBCollection;
12
import com.mongodb.DBObject;
13
import com.mongodb.WriteConcern;
6
import com.mongodb.*;
14 7
import com.mongodb.gridfs.GridFS;
15

  
16 8
import eu.dnetlib.data.objectstore.modular.connector.ObjectStore;
17 9
import eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDao;
18 10
import eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException;
19 11
import eu.dnetlib.miscutils.collections.MappedCollection;
20 12
import eu.dnetlib.miscutils.functional.UnaryFunction;
13
import org.bson.BSONObject;
14
import org.springframework.beans.factory.annotation.Required;
21 15

  
22 16
// TODO: Auto-generated Javadoc
23 17
/**
......
151 145
		return true;
152 146
	}
153 147

  
148
	@Override
149
	public boolean dropContent(final String obsId) throws ObjectStoreServiceException {
150
		return getObjectStore(obsId).dropContent();
151
	}
152

  
154 153
	/**
155 154
	 * Gets the db.
156 155
	 *

Also available in: Unified diff