public class TileServerExplorer extends AbstractFilesystemServerExplorerProvider implements DataServerExplorerProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
TileServerExplorer() |
TileServerExplorer(TileServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File pathname)
When the source is a file then this method will check if exists a
provider that can manage it
|
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 name) |
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) |
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() |
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 static final String NAME
public TileServerExplorer()
public TileServerExplorer(TileServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeExceptionpublic 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 void remove(DataStoreParameters parameters) throws RemoveException
DataServerExplorerremove in interface DataServerExplorerremove in interface FilesystemServerExplorerProviderRemoveExceptionpublic String getDataStoreProviderName()
getDataStoreProviderName in interface FilesystemFileFilterpublic boolean accept(File pathname)
accept in interface FileFilterpublic String getDescription()
getDescription in interface FilesystemFileFilterpublic DataStoreParameters getParameters(File file) throws DataException
DataExceptionpublic DataServerExplorerParameters getParameters()
DataServerExplorergetParameters in interface DataServerExplorerpublic int getMode()
getMode in interface FilesystemServerExplorerProvidergetMode in class AbstractFilesystemServerExplorerProviderpublic DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices in interface DataServerExplorerProviderpublic 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 List getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic String getProviderName()
DataServerExplorergetProviderName 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 DataStoreParameters get(String name) throws DataException
get in interface DataServerExplorerDataExceptionpublic File getResourcePath(DataStore dataStore, String resourceName) throws DataException
DataServerExplorergetResourcePath in interface DataServerExplorerDataException