Revision 44297 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/DataServerExplorer.java

View differences:

DataServerExplorer.java
28 28

  
29 29
import org.gvsig.fmap.dal.exception.DataException;
30 30
import org.gvsig.tools.dispose.Disposable;
31
import org.gvsig.tools.util.ResourcesStorage.Resource;
31
import org.gvsig.tools.resourcesstorage.ResourcesStorage;
32 32

  
33 33
/**
34 34
 * DataServerExplorer is an abstraction for any type of data server. It allows
......
39 39
 */
40 40
public interface DataServerExplorer extends Disposable, DataFactoryUnit {
41 41

  
42
//    public interface DataResource extends Resource {
43
//        @Override
44
//        public URL getURL();
45
//        
46
//        @Override
47
//        public boolean exists();
48
//        
49
//        @Override
50
//        public InputStream asInputStream() throws IOException;
51
//        
52
//        @Override
53
//        public OutputStream asOutputStream() throws IOException;
54
//        
55
//        @Override
56
//        public void close();
57
//    }
58
//    
59 42
    /**
60 43
     * Returns the DataServerExplorer's name
61 44
     *
......
93 76
     *
94 77
     * @throws DataException
95 78
     */
96
    public List list() throws DataException;
79
    public List<DataStoreParameters> list() throws DataException;
97 80

  
98 81
    public DataStoreParameters get(String name) throws DataException;
99 82

  
......
113 96
     *
114 97
     * @throws DataException
115 98
     */
116
    public List list(int mode) throws DataException;
99
    public List<DataStoreParameters> list(int mode) throws DataException;
117 100

  
118 101
    /**
119 102
     * Creates a new DataStore in this server.
120 103
     *
104
     * @param provider
121 105
     * @param parameters , an instance of DataStoreParameters from
122 106
     * {@link DataServerExplorer#getAddParameters(String)} that describes the
123 107
     * new DataStore.
......
166 150
     *
167 151
     * @return List of provider names
168 152
     */
169
    public List getDataStoreProviderNames();
153
    public List<String> getDataStoreProviderNames();
170 154

  
171 155
    /**
172 156
     * Return the file resource associated to this name and store. If the
......
177 161
     * @param resourceName
178 162
     * @return file resource or null
179 163
     * @throws DataException
180
     * @deprecated use getResource
164
     * @deprecated use getResourcesStorage
181 165
     */
182 166
    public File getResourcePath(DataStore dataStore, String resourceName) throws DataException;
183 167

  
184
    /**
185
     * Return the DataResource associated to this name and store. If the
186
     * resource not exists or the explorer don't support this opperation return
187
     * null.
188
     *
189
     * @param dataStore
190
     * @param resourceName
191
     * @return the DataResource or null
192
     * @throws DataException
193
     */
194
    public Resource getResource(DataStore dataStore, String resourceName) throws DataException;
195

  
196
    public List<Resource> getResources(DataStore dataStore, String resourceName) throws DataException;
168
    public ResourcesStorage getResourcesStorage(DataStore dataStore);
197 169
}

Also available in: Unified diff