public class MultiFileServerExplorer extends AbstractFilesystemServerExplorerProvider implements DataServerExplorerProvider
MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
MultiFileServerExplorer() |
MultiFileServerExplorer(MultiFileServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File pathname) |
boolean |
add(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(String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
boolean |
canCreate() |
boolean |
canCreate(NewDataStoreParameters parameters) |
void |
create(NewDataStoreParameters parameters,
boolean overwrite) |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
DataStoreParameters |
get(String string) |
NewDataStoreParameters |
getAddParameters(String storeName)
Given the store's name, returns its parameters for creation.
|
NewDataStoreParameters |
getCreateParameters() |
String |
getDataStoreProviderName() |
List<?> |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
String |
getDescription() |
int |
getMode() |
DataServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
DataStoreParameters |
getParameters(File file)
Creates store parameters from the file and returns it.
|
String |
getProviderName()
Returns the DataServerExplorer's name
|
File |
getResourcePath(DataStore dataStore,
String resourceName)
Return the file resource associated to this name and store.
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
DataStoreParameters |
getStoreParameters() |
void |
initialize(FilesystemServerExplorerProviderServices serverExplorer) |
List<?> |
list()
Provides a list of available stores in the server.
|
List<?> |
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.
|
getResourceRootPathName, isMode, removeFileExtensionpublic MultiFileServerExplorer()
public MultiFileServerExplorer(MultiFileServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
parameters - services - InitializeExceptionpublic DataStoreParameters get(String string) throws DataException
get in interface DataServerExplorerDataExceptionpublic String getDataStoreProviderName()
getDataStoreProviderName in interface FilesystemFileFilterpublic String getDescription()
getDescription in interface FilesystemFileFilterpublic DataStoreParameters getStoreParameters()
public List<?> getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic String getProviderName()
DataServerExplorergetProviderName in interface DataServerExplorerpublic DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices in interface DataServerExplorerProviderpublic boolean canCreate()
canCreate in interface FilesystemServerExplorerProviderpublic boolean canCreate(NewDataStoreParameters parameters)
canCreate in interface FilesystemServerExplorerProviderpublic void create(NewDataStoreParameters parameters, boolean overwrite) throws CreateException
create in interface FilesystemServerExplorerProviderCreateExceptionpublic NewDataStoreParameters getCreateParameters() throws DataException
getCreateParameters in interface FilesystemServerExplorerProviderDataExceptionpublic void initialize(FilesystemServerExplorerProviderServices serverExplorer)
initialize in interface FilesystemServerExplorerProviderpublic boolean accept(File pathname)
accept in interface FileFilterpublic void remove(DataStoreParameters parameters) throws RemoveException
DataServerExplorerremove in interface DataServerExplorerremove in interface FilesystemServerExplorerProviderRemoveExceptionpublic boolean add(String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
DataServerExploreradd in interface DataServerExplorerparameters - , 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 boolean canAdd(String storeName) throws DataException
DataServerExplorercanAdd in interface DataServerExplorerstoreName - store name.DataExceptionpublic NewDataStoreParameters getAddParameters(String storeName) throws DataException
DataServerExplorergetAddParameters in interface DataServerExplorerDataExceptionpublic DataStoreParameters getParameters(File file) throws DataException
file - DataExceptionpublic DataServerExplorerParameters getParameters()
DataServerExplorergetParameters in interface DataServerExplorerpublic List<?> list() throws DataException
DataServerExplorerlist in interface DataServerExplorerDataExceptionpublic 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 void dispose()
DisposableNOTE:After calling this method, the object may not be usable anymore.
dispose in interface Disposablepublic int getMode()
getMode in interface FilesystemServerExplorerProvidergetMode in class AbstractFilesystemServerExplorerProviderpublic File getResourcePath(DataStore dataStore, String resourceName) throws DataException
DataServerExplorergetResourcePath in interface DataServerExplorerDataException