ch.busyboxes.agoo.controller
Class FolderController

java.lang.Object
  extended by ch.busyboxes.agoo.controller.FolderController

@Controller
public class FolderController
extends java.lang.Object

This class represents the controller of the folder page

Author:
julien@busyboxes.ch

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

FolderController

public FolderController()
Method Detail

folderHomepage

@RequestMapping(value="/folder",
                method=GET)
public void folderHomepage(org.springframework.ui.ModelMap model)
This method responds to a GET request on the folders index page

Parameters:
model - the model for the page

addFolder

@RequestMapping(value="/folder/add",
                method=GET)
public void addFolder(org.springframework.ui.ModelMap model)
This method responds to a GET request on the folder addition page

Parameters:
model - the model for the page

addFolder

@RequestMapping(value="/folder/add",
                method=POST)
public void addFolder(@ModelAttribute(value="folderAdditionForm")
                                     FolderAdditionForm folderAdditionForm,
                                     org.springframework.validation.BindingResult result,
                                     org.springframework.ui.ModelMap model)
This method responds to a GET request on the folder addition page

Parameters:
folderAdditionForm - the form for adding a folder
result - binding result
model - the model for the page

folderDetails

@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)
This method responds to a request on the folder details page

Parameters:
folderId - the id of the folder
Returns:
model the model for the page

refreshFolder

@RequestMapping(value="/folder/refresh",
                method=POST)
public java.lang.String refreshFolder(@RequestParam(value="folderId")
                                                     java.lang.Long folderId)
This method refresh the watched files in the given folder

Parameters:
folderId - the id of the folder
Returns:
the new view

deleteFolder

@RequestMapping(value="/folder/delete",
                method=POST)
public java.lang.String deleteFolder(@RequestParam(value="folderId")
                                                    java.lang.Long folderId)
This method deletes the watched folder

Parameters:
folderId - the id of the folder
Returns:
the new view

setWatchedFolderService

public void setWatchedFolderService(WatchedFolderService watchedFolderService)
Sets the watched folder service

Parameters:
watchedFolderService - the watched file service

setWatchedFileService

public void setWatchedFileService(WatchedFileService watchedFileService)
Sets the watched file service

Parameters:
watchedFileService - the watched file service


Copyright © 2009. All Rights Reserved.