Class Config.Backend

java.lang.Object
com.cksource.ckfinder.config.Config.Backend
All Implemented Interfaces:
Serializable
Enclosing class:
Config

public static class Config.Backend extends Object implements Serializable
Backend configuration class.
See Also:
  • Constructor Details

    • Backend

      public Backend()
  • Method Details

    • getName

      public String getName()
      Returns:
      this backend's name
    • setName

      public void setName(String name)
      Parameters:
      name - name to set for this backend
    • getAdapter

      public String getAdapter()
      Returns:
      the name of filesystem adapter used by this backend
    • setAdapter

      public void setAdapter(String adapter)
      Parameters:
      adapter - the name of filesystem adapter used by this backend
    • getBaseUrl

      public String getBaseUrl()
      Returns:
      base URL defined for this backend
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
      Parameters:
      baseUrl - base URL to use for this backend
    • getRoot

      public String getRoot()
      Returns:
      root directory defined for this backend
    • setRoot

      public void setRoot(String root)
      Parameters:
      root - root directory to use in this backend
    • useProxyCommand

      public boolean useProxyCommand()
      Returns:
      true if this backend uses the Proxy command
    • setUseProxyCommand

      public void setUseProxyCommand(boolean useProxyCommand)
      Parameters:
      useProxyCommand - flag telling if this backend should use the Proxy command
    • getOverwriteOnUpload

      public boolean getOverwriteOnUpload()
      Returns:
      true if file with the same name should be overwritten
    • setOverwriteOnUpload

      public void setOverwriteOnUpload(boolean overwriteOnUpload)
      Parameters:
      overwriteOnUpload - flag telling if the file with the same name should be overwritten
    • disallowUnsafeCharacters

      public boolean disallowUnsafeCharacters()
      Returns:
      true if unsafe characters are disallowed in file and folder names
    • setDisallowUnsafeCharacters

      public void setDisallowUnsafeCharacters(boolean disallowUnsafeCharacters)
      Parameters:
      disallowUnsafeCharacters - flag telling if unsafe characters are disallowed in file and folder names
    • checkDoubleExtension

      public boolean checkDoubleExtension()
      Returns:
      true if ths backend validates double extensions
    • setCheckDoubleExtension

      public void setCheckDoubleExtension(boolean checkDoubleExtension)
      Parameters:
      checkDoubleExtension - flag telling if ths backend should validate double extensions
    • forceAscii

      public boolean forceAscii()
      Returns:
      true if this backend should convert non-ASCII characters in file and folder names to their ASCII counterparts
    • setForceAscii

      public void setForceAscii(boolean forceAscii)
      Parameters:
      forceAscii - flag telling if this backend should convert non-ASCII characters in file and folder names to their ASCII counterparts
    • getHideFolders

      public List<String> getHideFolders()
      Returns:
      a list of folder name patterns used to determine if the folder should be hidden
    • setHideFolders

      public void setHideFolders(List<String> hideFolders)
      Parameters:
      hideFolders - a list of folder name patterns used to determine if the folder should be hidden
    • getHideFiles

      public List<String> getHideFiles()
      Returns:
      a list of file name patterns used to determine if the file should be hidden
    • setHideFiles

      public void setHideFiles(List<String> hideFiles)
      Parameters:
      hideFiles - a list of file name patterns used to determine if the file should be hidden
    • getHtmlExtensions

      public List<String> getHtmlExtensions()
      Returns:
      a list of file name extensions for files allowed HTML-like data in the first 1KB
    • setHtmlExtensions

      public void setHtmlExtensions(List<String> htmlExtensions)
      Parameters:
      htmlExtensions - a list of file name extensions for files allowed HTML-like data in the first 1KB
    • getFileSystemOptions

      public HashMap<String,Object> getFileSystemOptions()
      Returns:
      a map of filesystem specific options
    • setFileSystemOptions

      public void setFileSystemOptions(HashMap<String,Object> fileSystemOptions)
      Parameters:
      fileSystemOptions - a map of filesystem specific options