nl.surfnet.coin.portal.control
Class GadgetController
java.lang.Object
nl.surfnet.coin.portal.control.BaseController
nl.surfnet.coin.portal.control.GadgetController
@Controller
public class GadgetController
- extends BaseController
Controller that handles the home page of a logged in user.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GadgetController
public GadgetController()
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.