Package org.duracloud.syncui.controller
Class ConfigurationController
- java.lang.Object
-
- org.duracloud.syncui.controller.ConfigurationController
-
@Controller @RequestMapping("/configuration") public class ConfigurationController extends ObjectA spring controller for configuration related functions.- Author:
- Daniel Bernstein
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigurationController.UpdatePolicy
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIGURATION_MAPPING
-
Constructor Summary
Constructors Constructor Description ConfigurationController(SyncConfigurationManager syncConfigurationManager, SyncProcessManager syncProcessManager, SyncOptimizeManager syncOptimizeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.Viewadd(DirectoryConfigForm directoryConfigForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)AdvancedFormadvancedForm()protected org.springframework.web.servlet.ViewcreateRedirect(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, String include)DirectoryConfigFormdirectoryConfigForm()DirectoryConfigsdirectoryConfigs()DuracloudConfigurationduracloudConfiguration()DuracloudCredentialsFormduracloudCredentials()Stringget(org.springframework.ui.Model model)StringgetAdd()MaxFileSizeFormmaxFileSizeForm()ModeFormmodeForm()Stringoptimize()org.springframework.web.servlet.Viewoptimize(boolean autoStart, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)PrefixFormprefixForm()org.springframework.web.servlet.ViewremoveDirectory(DirectoryConfigForm directoryConfigForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)SyncOptimizeManagersyncOptimizeManager()SyncProcessStatesyncProcessState()ThreadCountFormthreadCountForm()org.springframework.web.servlet.ViewupdateMaxFileSize(MaxFileSizeForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ViewupdateMode(ModeForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ViewupdateOptions(AdvancedForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ViewupdatePrefix(PrefixForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ViewupdateThreadCount(ThreadCountForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
-
-
Field Detail
-
CONFIGURATION_MAPPING
public static final String CONFIGURATION_MAPPING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigurationController
@Autowired public ConfigurationController(SyncConfigurationManager syncConfigurationManager, SyncProcessManager syncProcessManager, SyncOptimizeManager syncOptimizeManager)
-
-
Method Detail
-
directoryConfigs
@ModelAttribute("directoryConfigs") public DirectoryConfigs directoryConfigs()
-
duracloudConfiguration
@ModelAttribute("duracloudConfiguration") public DuracloudConfiguration duracloudConfiguration()
-
duracloudCredentials
@ModelAttribute("duracloudCredentialsForm") public DuracloudCredentialsForm duracloudCredentials()
-
maxFileSizeForm
@ModelAttribute("maxFileSizeForm") public MaxFileSizeForm maxFileSizeForm()
-
modeForm
@ModelAttribute("modeForm") public ModeForm modeForm()
-
syncProcessState
@ModelAttribute("syncProcessState") public SyncProcessState syncProcessState()
-
advancedForm
@ModelAttribute("advancedForm") public AdvancedForm advancedForm()
-
get
@RequestMapping(value="", method=GET) public String get(org.springframework.ui.Model model)
-
removeDirectory
@RequestMapping(value="/remove", method=POST) public org.springframework.web.servlet.View removeDirectory(DirectoryConfigForm directoryConfigForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
updateOptions
@RequestMapping(value="/advanced", method=POST) public org.springframework.web.servlet.View updateOptions(AdvancedForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
updateMode
@RequestMapping(value="/mode", method=POST) public org.springframework.web.servlet.View updateMode(ModeForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
updateMaxFileSize
@RequestMapping(value="/max-file-size", method=POST) public org.springframework.web.servlet.View updateMaxFileSize(MaxFileSizeForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
threadCountForm
@ModelAttribute("threadCountForm") public ThreadCountForm threadCountForm()
-
syncOptimizeManager
@ModelAttribute("syncOptimizeManager") public SyncOptimizeManager syncOptimizeManager()
-
updateThreadCount
@RequestMapping(value="/thread-count", method=POST) public org.springframework.web.servlet.View updateThreadCount(ThreadCountForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
directoryConfigForm
@ModelAttribute("directoryConfigForm") public DirectoryConfigForm directoryConfigForm()
-
getAdd
@RequestMapping(value="/add", method=GET) public String getAdd()
-
add
@RequestMapping(value="/add", method=POST) public org.springframework.web.servlet.View add(DirectoryConfigForm directoryConfigForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
prefixForm
@ModelAttribute("prefixForm") public PrefixForm prefixForm()
-
updatePrefix
@RequestMapping(value="/prefix", method=POST) public org.springframework.web.servlet.View updatePrefix(PrefixForm form, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
optimize
@RequestMapping(value="/optimize", method=GET) public String optimize()
-
optimize
@RequestMapping(value="/optimize", method=POST) public org.springframework.web.servlet.View optimize(@RequestParam(value="autoStart",defaultValue="false") boolean autoStart, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
createRedirect
protected org.springframework.web.servlet.View createRedirect(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, String include)
-
-