Search in sources :

Example 11 with ResourceMapping

use of org.springframework.web.portlet.bind.annotation.ResourceMapping in project uPortal by Jasig.

the class GoogleAnalyticsConfigController method getData.

@ResourceMapping("getData")
public String getData(PortletRequest portletRequest, ModelMap model) throws IOException {
    final PortletPreferences preferences = portletRequest.getPreferences();
    final JsonNode config = this.portletPreferencesJsonDao.getJsonNode(preferences, CONFIG_PREF_NAME);
    model.put("data", config);
    return "jsonView";
}
Also used : PortletPreferences(javax.portlet.PortletPreferences) JsonNode(com.fasterxml.jackson.databind.JsonNode) ResourceMapping(org.springframework.web.portlet.bind.annotation.ResourceMapping)

Aggregations

ResourceMapping (org.springframework.web.portlet.bind.annotation.ResourceMapping)11 ModelAndView (org.springframework.web.portlet.ModelAndView)6 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)5 PortletPreferences (javax.portlet.PortletPreferences)4 IPortletDefinition (org.apereo.portal.portlet.om.IPortletDefinition)3 ArrayList (java.util.ArrayList)2 Locale (java.util.Locale)2 Message (org.apereo.portal.i18n.Message)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 List (java.util.List)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 PortletSession (javax.portlet.PortletSession)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 UserPreferencesManager (org.apereo.portal.UserPreferencesManager)1 IUserLayoutManager (org.apereo.portal.layout.IUserLayoutManager)1 DistributedUserLayout (org.apereo.portal.layout.dlm.DistributedUserLayout)1 IMarketplaceRating (org.apereo.portal.portlet.marketplace.IMarketplaceRating)1 SearchResult (org.apereo.portal.search.SearchResult)1