Package com.cksource.ckfinder.config
Class Config.Backend
java.lang.Object
com.cksource.ckfinder.config.Config.Backend
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Config
Backend configuration class.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
getName()
boolean
getRoot()
void
setAdapter
(String adapter) void
setBaseUrl
(String baseUrl) void
setCheckDoubleExtension
(boolean checkDoubleExtension) void
setDisallowUnsafeCharacters
(boolean disallowUnsafeCharacters) void
setFileSystemOptions
(HashMap<String, Object> fileSystemOptions) void
setForceAscii
(boolean forceAscii) void
setHideFiles
(List<String> hideFiles) void
setHideFolders
(List<String> hideFolders) void
setHtmlExtensions
(List<String> htmlExtensions) void
void
setOverwriteOnUpload
(boolean overwriteOnUpload) void
void
setUseProxyCommand
(boolean useProxyCommand) boolean
-
Constructor Details
-
Backend
public Backend()
-
-
Method Details
-
getName
- Returns:
- this backend's name
-
setName
- Parameters:
name
- name to set for this backend
-
getAdapter
- Returns:
- the name of filesystem adapter used by this backend
-
setAdapter
- Parameters:
adapter
- the name of filesystem adapter used by this backend
-
getBaseUrl
- Returns:
- base URL defined for this backend
-
setBaseUrl
- Parameters:
baseUrl
- base URL to use for this backend
-
getRoot
- Returns:
- root directory defined for this backend
-
setRoot
- 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 theProxy
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
- Returns:
- a list of folder name patterns used to determine if the folder should be hidden
-
setHideFolders
- Parameters:
hideFolders
- a list of folder name patterns used to determine if the folder should be hidden
-
getHideFiles
- Returns:
- a list of file name patterns used to determine if the file should be hidden
-
setHideFiles
- Parameters:
hideFiles
- a list of file name patterns used to determine if the file should be hidden
-
getHtmlExtensions
- Returns:
- a list of file name extensions for files allowed HTML-like data in the first 1KB
-
setHtmlExtensions
- Parameters:
htmlExtensions
- a list of file name extensions for files allowed HTML-like data in the first 1KB
-
getFileSystemOptions
- Returns:
- a map of filesystem specific options
-
setFileSystemOptions
- Parameters:
fileSystemOptions
- a map of filesystem specific options
-