public MarketplaceEntry(MarketplacePortletDefinition pdef, String maxURL, final IPerson user) { this.pdef = pdef; this.maxURL = maxURL; this.user = user; this.layoutObject = new LayoutPortlet(pdef); if (this.layoutObject.getUrl() == null) { this.layoutObject.setUrl(this.maxURL); } }
public MarketplaceEntry(MarketplacePortletDefinition pdef, String maxURL, final IPerson user) { this.pdef = pdef; this.maxURL = maxURL; this.user = user; this.layoutObject = new LayoutPortlet(pdef); if (this.layoutObject.getUrl() == null) { this.layoutObject.setUrl(this.maxURL); } }
/** * Provides information about a single portlet in the registry. NOTE: Access to this API enpoint * requires only <code>IPermission.PORTAL_SUBSCRIBE</code> permission. */ @RequestMapping(value = "/portlet/{fname}.json", method = RequestMethod.GET) public ModelAndView getPortlet( HttpServletRequest request, HttpServletResponse response, @PathVariable String fname) throws Exception { IAuthorizationPrincipal ap = getAuthorizationPrincipal(request); IPortletDefinition portletDef = portletDefinitionRegistry.getPortletDefinitionByFname(fname); if (portletDef != null && ap.canRender(portletDef.getPortletDefinitionId().getStringId())) { LayoutPortlet portlet = new LayoutPortlet(portletDef); return new ModelAndView("json", "portlet", portlet); } else { response.setStatus(HttpServletResponse.SC_FORBIDDEN); return new ModelAndView("json"); } }
public MarketplaceEntry(MarketplacePortletDefinition pdef, final IPerson user) { this.pdef = pdef; this.maxURL = pdef.getRenderUrl(); this.user = user; this.layoutObject = new LayoutPortlet(pdef); if (this.layoutObject.getUrl() == null) { this.layoutObject.setUrl(this.maxURL); } }
public MarketplaceEntry(MarketplacePortletDefinition pdef, final IPerson user) { this.pdef = pdef; this.maxURL = pdef.getRenderUrl(); this.user = user; this.layoutObject = new LayoutPortlet(pdef); if (this.layoutObject.getUrl() == null) { this.layoutObject.setUrl(this.maxURL); } }
public MarketplaceEntry( MarketplacePortletDefinition pdef, boolean generateRelatedPortlets, final IPerson user) { this.pdef = pdef; this.maxURL = pdef.getRenderUrl(); this.generateRelatedPortlets = generateRelatedPortlets; this.user = user; this.layoutObject = new LayoutPortlet(pdef); if (this.layoutObject.getUrl() == null) { this.layoutObject.setUrl(this.maxURL); } }
public MarketplaceEntry( MarketplacePortletDefinition pdef, boolean generateRelatedPortlets, final IPerson user) { this.pdef = pdef; this.maxURL = pdef.getRenderUrl(); this.generateRelatedPortlets = generateRelatedPortlets; this.user = user; this.layoutObject = new LayoutPortlet(pdef); if (this.layoutObject.getUrl() == null) { this.layoutObject.setUrl(this.maxURL); } }
portletDao.getPortletDefinitionByFname( attributes.getNamedItem("fname").getNodeValue()); LayoutPortlet portlet = new LayoutPortlet(def);