public class DefaultNewLayerManager extends Object implements NewLayerManager
NewLayerManager
implementation.NewLayerManager.STORETYPE
Constructor and Description |
---|
DefaultNewLayerManager()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
NewLayerPreferencesComponent |
createNewLayerProvidersPreferences()
Creates a preferences component to manage the export to properties.
|
NewLayerService |
createNewLayerService(MapContext mapContext)
Create an instance of a
NewLayerService . |
NewLayerWizard |
createNewLayerWizard(NewLayerService service) |
void |
enableProvider(NewLayerProviderFactory factory,
Boolean value)
Enables or disables a new layer provider.
|
NewLayerProviderFactory |
getNewLayerProviderFactory(String providerName)
Returns the provider factory with the given name.
|
List<NewLayerProviderFactory> |
getProviders() |
List<NewLayerProviderFactory> |
getProviders(NewLayerManager.STORETYPE filter) |
boolean |
isProviderEnabled(NewLayerProviderFactory factory)
Returns if the provider whose factory is provided is enabled.
|
void |
registerProvider(NewLayerProviderFactory factory) |
public NewLayerService createNewLayerService(MapContext mapContext)
NewLayerManager
NewLayerService
.createNewLayerService
in interface NewLayerManager
NewLayerService
public void registerProvider(NewLayerProviderFactory factory)
registerProvider
in interface NewLayerManager
public NewLayerWizard createNewLayerWizard(NewLayerService service)
createNewLayerWizard
in interface NewLayerManager
public NewLayerProviderFactory getNewLayerProviderFactory(String providerName) throws ServiceException
NewLayerManager
getNewLayerProviderFactory
in interface NewLayerManager
ServiceException
- if there is an error getting the provider factorypublic void enableProvider(NewLayerProviderFactory factory, Boolean value)
NewLayerManager
enableProvider
in interface NewLayerManager
factory
- of the provider to enable or disablepublic NewLayerPreferencesComponent createNewLayerProvidersPreferences()
NewLayerManager
createNewLayerProvidersPreferences
in interface NewLayerManager
public List<NewLayerProviderFactory> getProviders()
getProviders
in interface NewLayerManager
public List<NewLayerProviderFactory> getProviders(NewLayerManager.STORETYPE filter)
getProviders
in interface NewLayerManager
public boolean isProviderEnabled(NewLayerProviderFactory factory)
NewLayerManager
isProviderEnabled
in interface NewLayerManager
factory
- of the provider to check