Class DefaultFilesystemServerExplorer

java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
org.gvsig.fmap.dal.serverexplorer.filesystem.impl.DefaultFilesystemServerExplorer
All Implemented Interfaces:
FileFilter, org.gvsig.fmap.dal.DataFactoryUnit, org.gvsig.fmap.dal.DataServerExplorer, org.gvsig.fmap.dal.DataServerExplorer_v2, FilesystemFileFilter, FilesystemServerExplorer, FilesystemServerExplorerProviderServices, org.gvsig.fmap.dal.spi.DataServerExplorerProvider, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.util.PropertiesSupport

public class DefaultFilesystemServerExplorer extends org.gvsig.fmap.dal.spi.AbstractDataServerExplorer implements FilesystemServerExplorerProviderServices, FilesystemFileFilter
  • Constructor Details

    • DefaultFilesystemServerExplorer

      public DefaultFilesystemServerExplorer(FilesystemServerExplorerParameters parameters, org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices services) throws org.gvsig.fmap.dal.exception.InitializeException
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException
  • Method Details

    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Overrides:
      doDispose in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.tools.exception.BaseException
    • list

      public List list(int mode) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      list in interface org.gvsig.fmap.dal.DataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • list

      public List list() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      list in interface org.gvsig.fmap.dal.DataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setCurrentPath

      public void setCurrentPath(File path) throws org.gvsig.fmap.dal.exception.FileNotFoundException
      Specified by:
      setCurrentPath in interface FilesystemServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.FileNotFoundException
    • getCurrentPath

      public File getCurrentPath()
      Specified by:
      getCurrentPath in interface FilesystemServerExplorer
    • getRoot

      public File getRoot()
      Specified by:
      getRoot in interface FilesystemServerExplorer
    • remove

      public void remove(org.gvsig.fmap.dal.DataStoreParameters dsp) throws org.gvsig.fmap.dal.exception.RemoveException
      Specified by:
      remove in interface org.gvsig.fmap.dal.DataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.RemoveException
    • add

      public boolean add(String providerName, org.gvsig.fmap.dal.NewDataStoreParameters ndsp, boolean overwrite) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      add in interface org.gvsig.fmap.dal.DataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • canAdd

      public boolean canAdd()
      Specified by:
      canAdd in interface org.gvsig.fmap.dal.DataServerExplorer
    • getProviderName

      public String getProviderName()
      Specified by:
      getProviderName in interface org.gvsig.fmap.dal.DataServerExplorer
    • getAddParameters

      public org.gvsig.fmap.dal.NewDataStoreParameters getAddParameters(String storeName) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getAddParameters in interface org.gvsig.fmap.dal.DataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • canAdd

      public boolean canAdd(String storeName) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      canAdd in interface org.gvsig.fmap.dal.DataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • createStoreParameters

      public org.gvsig.fmap.dal.DataStoreParameters createStoreParameters(File file, String providerName) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      createStoreParameters in interface FilesystemServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • createStoreParameters

      public org.gvsig.fmap.dal.DataStoreParameters createStoreParameters(File file) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      createStoreParameters in interface FilesystemServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getParametersFor

      public org.gvsig.fmap.dal.DataStoreParameters getParametersFor(File file, String providerName, boolean checksExist) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getProviderNameList

      public List<String> getProviderNameList(File file)
      Specified by:
      getProviderNameList in interface FilesystemServerExplorer
    • getProviderName

      public String getProviderName(File file)
      Specified by:
      getProviderName in interface FilesystemServerExplorer
    • getDataStoreProviderNames

      public List getDataStoreProviderNames()
      Specified by:
      getDataStoreProviderNames in interface org.gvsig.fmap.dal.DataServerExplorer
    • getProviders

      public List<FilesystemServerExplorerProvider> getProviders()
    • getProviders

      public List getProviders(int mode)
    • getFilters

      public Iterator getFilters(int mode)
      Specified by:
      getFilters in interface FilesystemServerExplorer
    • getFilters

      Specified by:
      getFilters in interface FilesystemServerExplorer
    • getFilter

      public FilesystemFileFilter getFilter(int mode, String description)
      Specified by:
      getFilter in interface FilesystemServerExplorer
    • getGenericFilter

      public FilesystemFileFilter getGenericFilter()
      Specified by:
      getGenericFilter in interface FilesystemServerExplorer
    • getDataStoreProviderName

      public String getDataStoreProviderName()
      Specified by:
      getDataStoreProviderName in interface FilesystemFileFilter
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface FilesystemFileFilter
    • accept

      public boolean accept(File pathname)
      Specified by:
      accept in interface FileFilter
    • open

      public org.gvsig.fmap.dal.DataStore open(File file) throws org.gvsig.fmap.dal.exception.DataException, org.gvsig.fmap.dal.exception.ValidateDataParametersException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
      org.gvsig.fmap.dal.exception.ValidateDataParametersException
    • getAddParameters

      public org.gvsig.fmap.dal.NewDataStoreParameters getAddParameters(File file) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getAddParameters in interface FilesystemServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getResourcePath

      @Deprecated public File getResourcePath(org.gvsig.fmap.dal.DataStore dataStore, String resourceName) throws org.gvsig.fmap.dal.exception.DataException
      Deprecated.
      Specified by:
      getResourcePath in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getResourcePath in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getResourcesStorage

      public org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage(org.gvsig.fmap.dal.DataStoreParameters parameters)
      Specified by:
      getResourcesStorage in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getResourcesStorage in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • getResourcesStorage

      public org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage(org.gvsig.fmap.dal.DataStore dataStore)
      Specified by:
      getResourcesStorage in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getResourcesStorage in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • get

      public org.gvsig.fmap.dal.DataStoreParameters get(String name) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      get in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      get in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • exists

      public boolean exists(org.gvsig.fmap.dal.DataStoreParameters parameters) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      exists in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      exists in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException