public class GlobalFilemanagerConfig extends Object implements FilemanagerConfigBuilder
FilemanagerConfigBuilder
. It loads the
common config file [filemanager-dir]/scripts/filemanager.config.js.
If it isn't exists the default one ([filemanager-dir]/scripts/filemanager.config.js.default)
will be loaded.
The configuration is globally available.Modifier and Type | Field and Description |
---|---|
protected FilemanagerConfig |
userConfig |
BASE_FILE_NAME
Constructor and Description |
---|
GlobalFilemanagerConfig() |
Modifier and Type | Method and Description |
---|---|
FilemanagerConfig |
getConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.ServletContext servletContext)
Builds the configuration of the filemanager.
|
protected void |
postLoadConfigFileHook()
This method hook will be called after the successful loading of a userConfig file.
|
protected FilemanagerConfig userConfig
public FilemanagerConfig getConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletContext servletContext)
FilemanagerConfigBuilder
getConfig
in interface FilemanagerConfigBuilder
req
- the HttpServletRequest
of the current requestFilemanagerConfig
objectprotected void postLoadConfigFileHook()
Copyright © 2012-2017 Thilo Schwarz. All rights reserved.