gvsig-raster / org.gvsig.raster.tools / trunk / templates / rasterTaskProjectTemplate / alg_template / sources / io / ProjectTemplateServerExplorer.java @ 1870
History | View | Annotate | Download (2.64 KB)
1 |
package org.gvsig.raster.projecttemplate.io; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
import org.gvsig.fmap.dal.DALLocator; |
6 |
import org.gvsig.fmap.dal.DataManager; |
7 |
import org.gvsig.fmap.dal.DataServerExplorerParameters; |
8 |
import org.gvsig.fmap.dal.DataStoreParameters; |
9 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
10 |
import org.gvsig.fmap.dal.exception.DataException; |
11 |
import org.gvsig.fmap.dal.exception.InitializeException; |
12 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
13 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProvider; |
14 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
15 |
import org.gvsig.raster.myprojectname.io.MyProjectNameDataParameters; |
16 |
import org.gvsig.raster.myprojectname.io.MyProjectNameProvider; |
17 |
|
18 |
@SuppressWarnings("unchecked") |
19 |
public class ProjectTemplateServerExplorer implements DataServerExplorerProvider { |
20 |
public static final String NAME = ProjectTemplateProvider.NAME; |
21 |
private ProjectTemplateServerExplorerParameters parameters = null; |
22 |
|
23 |
public ProjectTemplateServerExplorer(
|
24 |
ProjectTemplateServerExplorerParameters parameters, |
25 |
DataServerExplorerProviderServices services) |
26 |
throws InitializeException {
|
27 |
this.parameters = parameters;
|
28 |
} |
29 |
|
30 |
public DataServerExplorerProviderServices getServerExplorerProviderServices() {
|
31 |
return null; |
32 |
} |
33 |
|
34 |
public boolean add(String provider, NewDataStoreParameters parameters, |
35 |
boolean overwrite) throws DataException { |
36 |
return false; |
37 |
} |
38 |
|
39 |
public boolean canAdd() { |
40 |
return false; |
41 |
} |
42 |
|
43 |
public boolean canAdd(String storeName) throws DataException { |
44 |
return false; |
45 |
} |
46 |
|
47 |
public NewDataStoreParameters getAddParameters(String storeName) |
48 |
throws DataException {
|
49 |
return null; |
50 |
} |
51 |
|
52 |
public List getDataStoreProviderNames() { |
53 |
return null; |
54 |
} |
55 |
|
56 |
public DataServerExplorerParameters getParameters() {
|
57 |
return null; |
58 |
} |
59 |
|
60 |
public String getProviderName() { |
61 |
return null; |
62 |
} |
63 |
|
64 |
public List list() throws DataException { |
65 |
return null; |
66 |
} |
67 |
|
68 |
public List list(int mode) throws DataException { |
69 |
return null; |
70 |
} |
71 |
|
72 |
public void remove(DataStoreParameters parameters) throws DataException { |
73 |
|
74 |
} |
75 |
|
76 |
public void dispose() { |
77 |
|
78 |
} |
79 |
|
80 |
public DataStoreParameters getStoreParameters() {
|
81 |
DataManager manager = DALLocator.getDataManager(); |
82 |
ProjectTemplateDataParameters params = null;
|
83 |
try {
|
84 |
params = (ProjectTemplateDataParameters) manager.createStoreParameters(ProjectTemplateProvider.NAME); |
85 |
//TODO: set parameters
|
86 |
//params.setURI(parameters.getHost());
|
87 |
} catch (InitializeException e) {
|
88 |
//TODO: throw some exceptions,... porfaplease
|
89 |
} catch (ProviderNotRegisteredException e) {
|
90 |
//TODO: throw some exceptions,... porfaplease
|
91 |
} |
92 |
return params;
|
93 |
} |
94 |
|
95 |
} |