public interface DataServerExplorer extends Disposable, DataFactoryUnit
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILESYSTEM_SERVER_EXPLORER_NAME |
static int |
MODE_ALL |
static int |
MODE_FEATURE |
static int |
MODE_GEOMETRY |
static int |
MODE_RASTER |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Creates a new DataStore in this server.
|
boolean |
canAdd()
Indicates whether this DataServerExplorer can create a new DataStore in
the server.
|
boolean |
canAdd(java.lang.String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
boolean |
exists(DataStoreParameters parameters) |
DataStoreParameters |
get(java.lang.String name) |
NewDataStoreParameters |
getAddParameters(java.lang.String storeName)
Given the store's name, returns its parameters for creation.
|
java.util.List<java.lang.String> |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
DataServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
java.lang.String |
getProviderName()
Returns the DataServerExplorer's name
|
java.io.File |
getResourcePath(DataStore dataStore,
java.lang.String resourceName)
Deprecated.
use getResourcesStorage
|
ResourcesStorage |
getResourcesStorage() |
ResourcesStorage |
getResourcesStorage(DataStore dataStore) |
ResourcesStorage |
getResourcesStorage(DataStoreParameters parameters) |
java.util.List<DataStoreParameters> |
list()
Provides a list of available stores in the server.
|
java.util.List<DataStoreParameters> |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
remove(DataStoreParameters parameters)
Removes a store from the server given its DataStoreParameters.
|
dispose
static final java.lang.String FILESYSTEM_SERVER_EXPLORER_NAME
static final int MODE_ALL
static final int MODE_FEATURE
static final int MODE_GEOMETRY
static final int MODE_RASTER
java.lang.String getProviderName()
boolean canAdd()
boolean canAdd(java.lang.String storeName) throws DataException
storeName
- store name.DataException
java.util.List<DataStoreParameters> list() throws DataException
DataException
DataStoreParameters get(java.lang.String name) throws DataException
DataException
boolean exists(DataStoreParameters parameters) throws DataException
DataException
java.util.List<DataStoreParameters> list(int mode) throws DataException
mode
- , filter store from a type: MODE_ALL
,
MODE_FEATURE
, #MODE_FEATURE_GEOMETRY
,
MODE_RASTER
DataException
boolean add(java.lang.String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
provider
- parameters
- , an instance of DataStoreParameters from
getAddParameters(String)
that describes the
new DataStore.overwrite
- if the store already existsDataException
void remove(DataStoreParameters parameters) throws DataException
parameters
- DataException
NewDataStoreParameters getAddParameters(java.lang.String storeName) throws DataException
storeName
- DataException
DataServerExplorerParameters getParameters()
java.util.List<java.lang.String> getDataStoreProviderNames()
java.io.File getResourcePath(DataStore dataStore, java.lang.String resourceName) throws DataException
dataStore
- resourceName
- DataException
ResourcesStorage getResourcesStorage()
ResourcesStorage getResourcesStorage(DataStore dataStore)
ResourcesStorage getResourcesStorage(DataStoreParameters parameters)