/*
 */
package org.datadryad.rest.storage.resolvers;

import org.datadryad.rest.storage.rdbms.DatabaseOrganizationStorageImpl;
import com.sun.jersey.spi.inject.SingletonTypeInjectableProvider;
import java.io.File;
import javax.ws.rs.core.Context;
import javax.ws.rs.ext.Provider;
import org.datadryad.rest.storage.AbstractOrganizationStorage;
import org.datadryad.rest.storage.json.OrganizationJSONStorageImpl;

/**
 *
 * @author Dan Leehr <dan.leehr@nescent.org>
 */
@Provider
public class OrganizationStorageResolver extends SingletonTypeInjectableProvider<Context, AbstractOrganizationStorage> {
    private static final String PATH = "/tmp/dryad_rest";
    public OrganizationStorageResolver() {
        super(AbstractOrganizationStorage.class, new OrganizationJSONStorageImpl(new File(PATH)));
        File directory = new File(PATH);
        if(!directory.exists()) {
            directory.mkdir();
        }
    }
}

@@ -190,29 +190,8 @@
 er;%0A
-import java.io.File;%0A
 impo
@@ -318,76 +318,8 @@
 age;
-%0Aimport org.datadryad.rest.storage.json.OrganizationJSONStorageImpl;
 %0A%0A/*
@@ -507,66 +507,8 @@
 %3E %7B%0A
-    private static final String PATH = %22/tmp/dryad_rest%22;%0A
     
@@ -599,16 +599,24 @@
 ss, new 
+Database
 Organiza
@@ -623,12 +623,8 @@
 tion
-JSON
 Stor
@@ -635,141 +635,41 @@
 mpl(
-new File(PATH)));%0A        File directory = new File(PATH);%0A        if(!directory.exists()) %7B%0A            directory.mkdir();%0A        %7D
+%22/opt/dryad/config/dspace.cfg%22));
 %0A   

Revert "Switched organization storage back to JSON"