nl.surfnet.coin.portal.control
Class GadgetController

java.lang.Object
  extended by nl.surfnet.coin.portal.control.BaseController
      extended by nl.surfnet.coin.portal.control.GadgetController

@Controller
public class GadgetController
extends BaseController

Controller that handles the home page of a logged in user.


Field Summary
 
Fields inherited from class nl.surfnet.coin.portal.control.BaseController
gadgetService, personService, tabService, userPreferencesService
 
Constructor Summary
GadgetController()
           
 
Method Summary
 String addCustomGadget(javax.servlet.http.HttpServletRequest request)
          If custom gadgets are allowed it creates a new GadgetDefinition or use an existing based on its url and adds a Gadget to the requested Tab.
 String addGadget(javax.servlet.http.HttpServletRequest request)
           
 boolean delete(javax.servlet.http.HttpServletRequest request)
           
 String gadgetOverview(org.springframework.ui.ModelMap modelMap)
           
 boolean reorder(javax.servlet.http.HttpServletRequest request)
           
 String searchGadget(org.springframework.ui.ModelMap modelMap, javax.servlet.http.HttpServletRequest request)
           
 void setEnvironment(CoinEnvironment environment)
           
 void setMetadataProvider(MetadataProvider metadataProvider)
           
 
Methods inherited from class nl.surfnet.coin.portal.control.BaseController
getGadget, getGroupsForLoggedInPerson, getPerson, getPreferences, getTab, isMemberOfGroup, populateModelMapWithPreferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetController

public GadgetController()
Method Detail

gadgetOverview

@RequestMapping(value="/gadgetoverview.shtml")
public String gadgetOverview(org.springframework.ui.ModelMap modelMap)

searchGadget

@RequestMapping(value="/search-gadget.shtml",
                method=POST)
public String searchGadget(org.springframework.ui.ModelMap modelMap,
                                          javax.servlet.http.HttpServletRequest request)

addGadget

@RequestMapping(value="add-gadget-to-tab.shtml",
                method=POST)
@ResponseBody
public String addGadget(javax.servlet.http.HttpServletRequest request)

reorder

@RequestMapping(value="reorder-gadgets.shtml",
                method=POST)
@ResponseBody
public boolean reorder(javax.servlet.http.HttpServletRequest request)

delete

@RequestMapping(value="delete-gadget.shtml",
                method=POST)
@ResponseBody
public boolean delete(javax.servlet.http.HttpServletRequest request)

addCustomGadget

@RequestMapping(value="add-custom-gadget.shtml",
                method=POST)
@ResponseBody
public String addCustomGadget(javax.servlet.http.HttpServletRequest request)
If custom gadgets are allowed it creates a new GadgetDefinition or use an existing based on its url and adds a Gadget to the requested Tab.

Parameters:
request - POST request
Returns:
either the identifier of the Tab or if anything goes wrong.

setEnvironment

public void setEnvironment(CoinEnvironment environment)

setMetadataProvider

public void setMetadataProvider(MetadataProvider metadataProvider)


Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.