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, removeFileExtension
public static final String NAME
public TileServerExplorer()
public TileServerExplorer(TileServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeException
public boolean canCreate()
canCreate
in interface FilesystemServerExplorerProvider
public boolean canCreate(NewDataStoreParameters parameters)
canCreate
in interface FilesystemServerExplorerProvider
public void create(NewDataStoreParameters parameters, boolean overwrite) throws CreateException
create
in interface FilesystemServerExplorerProvider
CreateException
public NewDataStoreParameters getCreateParameters() throws DataException
getCreateParameters
in interface FilesystemServerExplorerProvider
DataException
public void initialize(FilesystemServerExplorerProviderServices serverExplorer)
initialize
in interface FilesystemServerExplorerProvider
public void remove(DataStoreParameters parameters) throws RemoveException
DataServerExplorer
remove
in interface DataServerExplorer
remove
in interface FilesystemServerExplorerProvider
RemoveException
public String getDataStoreProviderName()
getDataStoreProviderName
in interface FilesystemFileFilter
public boolean accept(File pathname)
accept
in interface FileFilter
public String getDescription()
getDescription
in interface FilesystemFileFilter
public DataStoreParameters getParameters(File file) throws DataException
DataException
public DataServerExplorerParameters getParameters()
DataServerExplorer
getParameters
in interface DataServerExplorer
public int getMode()
getMode
in interface FilesystemServerExplorerProvider
getMode
in class AbstractFilesystemServerExplorerProvider
public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices
in interface DataServerExplorerProvider
public boolean add(String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
DataServerExplorer
add
in interface DataServerExplorer
parameters
- , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String)
that
describes the new DataStore.overwrite
- if the store already existsDataException
public boolean canAdd()
DataServerExplorer
canAdd
in interface DataServerExplorer
public boolean canAdd(String storeName) throws DataException
DataServerExplorer
canAdd
in interface DataServerExplorer
storeName
- store name.DataException
public NewDataStoreParameters getAddParameters(String storeName) throws DataException
DataServerExplorer
getAddParameters
in interface DataServerExplorer
DataException
public List getDataStoreProviderNames()
DataServerExplorer
getDataStoreProviderNames
in interface DataServerExplorer
public String getProviderName()
DataServerExplorer
getProviderName
in interface DataServerExplorer
public List list() throws DataException
DataServerExplorer
list
in interface DataServerExplorer
DataException
public List list(int mode) throws DataException
DataServerExplorer
list
in interface DataServerExplorer
mode
- , filter store from a type: DataServerExplorer.MODE_ALL
,
DataServerExplorer.MODE_FEATURE
, #MODE_FEATURE_GEOMETRY
,
DataServerExplorer.MODE_RASTER
DataException
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public DataStoreParameters get(String name) throws DataException
get
in interface DataServerExplorer
DataException
public File getResourcePath(DataStore dataStore, String resourceName) throws DataException
DataServerExplorer
getResourcePath
in interface DataServerExplorer
DataException