|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.busyboxes.agoo.controller.FolderController
@Controller public class FolderController
This class represents the controller of the folder page
Constructor Summary | |
---|---|
FolderController()
|
Method Summary | |
---|---|
void |
addFolder(FolderAdditionForm folderAdditionForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.ModelMap model)
This method responds to a GET request on the folder addition page |
void |
addFolder(org.springframework.ui.ModelMap model)
This method responds to a GET request on the folder addition page |
java.lang.String |
deleteFolder(java.lang.Long folderId)
This method deletes the watched folder |
org.springframework.ui.ModelMap |
folderDetails(java.lang.Long folderId,
java.lang.Integer page)
This method responds to a request on the folder details page |
void |
folderHomepage(org.springframework.ui.ModelMap model)
This method responds to a GET request on the folders index page |
java.lang.String |
refreshFolder(java.lang.Long folderId)
This method refresh the watched files in the given folder |
void |
setWatchedFileService(WatchedFileService watchedFileService)
Sets the watched file service |
void |
setWatchedFolderService(WatchedFolderService watchedFolderService)
Sets the watched folder service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FolderController()
Method Detail |
---|
@RequestMapping(value="/folder", method=GET) public void folderHomepage(org.springframework.ui.ModelMap model)
model
- the model for the page@RequestMapping(value="/folder/add", method=GET) public void addFolder(org.springframework.ui.ModelMap model)
model
- the model for the page@RequestMapping(value="/folder/add", method=POST) public void addFolder(@ModelAttribute(value="folderAdditionForm") FolderAdditionForm folderAdditionForm, org.springframework.validation.BindingResult result, org.springframework.ui.ModelMap model)
folderAdditionForm
- the form for adding a folderresult
- binding resultmodel
- the model for the page@RequestMapping(value="/folder/details", method=GET) public org.springframework.ui.ModelMap folderDetails(@RequestParam(value="folderId") java.lang.Long folderId, @RequestParam(value="page",required=false) java.lang.Integer page)
folderId
- the id of the folder
@RequestMapping(value="/folder/refresh", method=POST) public java.lang.String refreshFolder(@RequestParam(value="folderId") java.lang.Long folderId)
folderId
- the id of the folder
@RequestMapping(value="/folder/delete", method=POST) public java.lang.String deleteFolder(@RequestParam(value="folderId") java.lang.Long folderId)
folderId
- the id of the folder
public void setWatchedFolderService(WatchedFolderService watchedFolderService)
watchedFolderService
- the watched file servicepublic void setWatchedFileService(WatchedFileService watchedFileService)
watchedFileService
- the watched file service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |