Project

General

Profile

« Previous | Next » 

Revision 55485

implemented ObjectStores3 to avoid to saving tmp file before putting on s3 and added rest controller to download object from s3, used only by UI

View differences:

CreateObjectStoreAction.java
39 39
	protected void executeAsync(final BlackboardServerHandler handler, final BlackboardJob job) {
40 40
		try {
41 41
			final String interpretation = job.getParameters().get("interpretation");
42
			final String basePath = job.getParameters().get("basePath");
43
			if (StringUtils.isBlank(basePath)) {
44
				throw new ObjectStoreServiceException("missing basePath param");
45
			}
42
//			final String basePath = job.getParameters().get("basePath");
43
//			if (StringUtils.isBlank(basePath)) {
44
//				throw new ObjectStoreServiceException("missing basePath param");
45
//			}
46 46

  
47 47
			final String objID = profileCreator.registerProfile(interpretation);
48 48
			try {
49
				getDao().createObjectStore(objID, interpretation, basePath);
49
				getDao().createObjectStore(objID, interpretation, null);
50 50
			} catch (Throwable e) {
51 51
				log.warn("cannot created objectStore, deleting profile");
52 52
				profileCreator.deleteProfile(objID);

Also available in: Unified diff