@ RequestMapping ( value = "/portletList" , method = RequestMethod . GET ) public ModelAndView listChannels ( WebRequest webRequest , HttpServletRequest request , @ RequestParam ( value = "type" , required = false ) String type ) { if ( TYPE_MANAGE . equals ( type ) ) { throw new UnsupportedOperationException ( "Moved to PortletRESTController under /api/portlets.json" ) ; } final IPerson user = personManager . getPerson ( request ) ; final Map < String , SortedSet < ? > > registry = getRegistryOriginal ( webRequest , user ) ; // Since type=manage was deprecated channels is always empty but retained for backwards // compatibility registry . put ( "channels" , new TreeSet < ChannelBean > ( ) ) ; return new ModelAndView ( "jsonView" , "registry" , registry ) ; }
Original pre - 4 . 3 version of this API . Always returns the entire contents of the Portlet Registry including uncategorized portlets to which the user has access . Access is based on the SUBSCRIBE permission .