public class DefaultFilesystemServerExplorer extends AbstractDataServerExplorer implements FilesystemServerExplorerProviderServices, FilesystemFileFilter
LOGGERNAMEFILESYSTEM_SERVER_EXPLORER_NAME, MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
DefaultFilesystemServerExplorer(FilesystemServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File pathname) |
boolean |
add(java.lang.String providerName,
NewDataStoreParameters ndsp,
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.
|
DataStoreParameters |
createStoreParameters(java.io.File file) |
DataStoreParameters |
createStoreParameters(java.io.File file,
java.lang.String providerName) |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
boolean |
exists(DataStoreParameters parameters) |
DataStoreParameters |
get(java.lang.String name) |
NewDataStoreParameters |
getAddParameters(java.io.File file) |
NewDataStoreParameters |
getAddParameters(java.lang.String storeName)
Given the store's name, returns its parameters for creation.
|
java.io.File |
getCurrentPath() |
java.lang.String |
getDataStoreProviderName() |
java.util.List |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
java.lang.String |
getDescription() |
FilesystemFileFilter |
getFilter(int mode,
java.lang.String description) |
java.util.Iterator<FilesystemServerExplorerProvider> |
getFilters() |
java.util.Iterator |
getFilters(int mode) |
FilesystemFileFilter |
getGenericFilter() |
DataStoreParameters |
getParametersFor(java.io.File file,
java.lang.String providerName,
boolean checksExist) |
java.lang.String |
getProviderName()
Returns the DataServerExplorer's name
|
java.lang.String |
getProviderName(java.io.File file) |
java.util.List<java.lang.String> |
getProviderNameList(java.io.File file) |
java.util.List<FilesystemServerExplorerProvider> |
getProviders() |
java.util.List |
getProviders(int mode) |
java.io.File |
getResourcePath(DataStore dataStore,
java.lang.String resourceName)
Deprecated.
|
ResourcesStorage |
getResourcesStorage(DataStore dataStore) |
ResourcesStorage |
getResourcesStorage(DataStoreParameters parameters) |
java.io.File |
getRoot() |
java.util.List |
list()
Provides a list of available stores in the server.
|
java.util.List |
list(int mode)
Provides a list of available stores in the server of a type.
|
DataStore |
open(java.io.File file) |
void |
remove(DataStoreParameters dsp)
Removes a store from the server given its DataStoreParameters.
|
void |
setCurrentPath(java.io.File path) |
close, createSQLBuilder, getParameters, getProperties, getProperty, getResourcesStorage, getServerExplorerProviderServices, open, open, setPropertydispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServerExplorerProviderServicesgetParameters, getResourcesStoragedisposepublic DefaultFilesystemServerExplorer(FilesystemServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeExceptionprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDataServerExplorerBaseExceptionAbstractDisposable.dispose()public java.util.List list(int mode)
throws DataException
DataServerExplorerlist in interface DataServerExplorermode - , filter store from a type: DataServerExplorer.MODE_ALL,
DataServerExplorer.MODE_FEATURE, #MODE_FEATURE_GEOMETRY,
DataServerExplorer.MODE_RASTERDataExceptionpublic java.util.List list()
throws DataException
DataServerExplorerlist in interface DataServerExplorerDataExceptionpublic void setCurrentPath(java.io.File path)
throws FileNotFoundException
setCurrentPath in interface FilesystemServerExplorerFileNotFoundExceptionpublic java.io.File getCurrentPath()
getCurrentPath in interface FilesystemServerExplorerpublic java.io.File getRoot()
getRoot in interface FilesystemServerExplorerpublic void remove(DataStoreParameters dsp) throws RemoveException
DataServerExplorerremove in interface DataServerExplorerRemoveExceptionpublic boolean add(java.lang.String providerName,
NewDataStoreParameters ndsp,
boolean overwrite)
throws DataException
DataServerExploreradd in interface DataServerExplorerndsp - , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String) that describes the
new DataStore.overwrite - if the store already existsDataExceptionpublic boolean canAdd()
DataServerExplorercanAdd in interface DataServerExplorerpublic java.lang.String getProviderName()
DataServerExplorergetProviderName in interface DataServerExplorerpublic NewDataStoreParameters getAddParameters(java.lang.String storeName) throws DataException
DataServerExplorergetAddParameters in interface DataServerExplorerDataExceptionpublic boolean canAdd(java.lang.String storeName)
throws DataException
DataServerExplorercanAdd in interface DataServerExplorerstoreName - store name.DataExceptionpublic DataStoreParameters createStoreParameters(java.io.File file, java.lang.String providerName) throws DataException
createStoreParameters in interface FilesystemServerExplorerDataExceptionpublic DataStoreParameters createStoreParameters(java.io.File file) throws DataException
createStoreParameters in interface FilesystemServerExplorerDataExceptionpublic DataStoreParameters getParametersFor(java.io.File file, java.lang.String providerName, boolean checksExist) throws DataException
DataExceptionpublic java.util.List<java.lang.String> getProviderNameList(java.io.File file)
getProviderNameList in interface FilesystemServerExplorerpublic java.lang.String getProviderName(java.io.File file)
getProviderName in interface FilesystemServerExplorerpublic java.util.List getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic java.util.List<FilesystemServerExplorerProvider> getProviders()
public java.util.List getProviders(int mode)
public java.util.Iterator getFilters(int mode)
getFilters in interface FilesystemServerExplorerpublic java.util.Iterator<FilesystemServerExplorerProvider> getFilters()
getFilters in interface FilesystemServerExplorerpublic FilesystemFileFilter getFilter(int mode, java.lang.String description)
getFilter in interface FilesystemServerExplorerpublic FilesystemFileFilter getGenericFilter()
getGenericFilter in interface FilesystemServerExplorerpublic java.lang.String getDataStoreProviderName()
getDataStoreProviderName in interface FilesystemFileFilterpublic java.lang.String getDescription()
getDescription in interface FilesystemFileFilterpublic boolean accept(java.io.File pathname)
accept in interface java.io.FileFilterpublic DataStore open(java.io.File file) throws DataException, ValidateDataParametersException
public NewDataStoreParameters getAddParameters(java.io.File file) throws DataException
getAddParameters in interface FilesystemServerExplorerDataException@Deprecated public java.io.File getResourcePath(DataStore dataStore, java.lang.String resourceName) throws DataException
DataServerExplorergetResourcePath in interface DataServerExplorergetResourcePath in class AbstractDataServerExplorerDataExceptionpublic ResourcesStorage getResourcesStorage(DataStoreParameters parameters)
getResourcesStorage in interface DataServerExplorergetResourcesStorage in class AbstractDataServerExplorerpublic ResourcesStorage getResourcesStorage(DataStore dataStore)
getResourcesStorage in interface DataServerExplorergetResourcesStorage in class AbstractDataServerExplorerpublic DataStoreParameters get(java.lang.String name) throws DataException
get in interface DataServerExplorerget in class AbstractDataServerExplorerDataExceptionpublic boolean exists(DataStoreParameters parameters) throws DataException
exists in interface DataServerExplorerexists in class AbstractDataServerExplorerDataException