@Override public IPortletDescriptorKey getPortletDescriptorKey() { return this.portletDefinition.getPortletDescriptorKey(); }
@Override public IPortletDescriptorKey getPortletDescriptorKey() { return this.portletDefinition.getPortletDescriptorKey(); }
IPortletDefinition portletDefinition, HttpServletRequest request, long timeout) { final IPortletDescriptorKey portletDescriptorKey = portletDefinition.getPortletDescriptorKey(); final AtomicInteger counter = this.executionCount.get(portletDescriptorKey); final int executionCount = counter.get();
/** * Get the portletApplicationId and portletName for the specified channel definition id. The * portletApplicationId will be {@link Tuple#first} and the portletName will be {@link * Tuple#second} */ @Override public Tuple<String, String> getPortletDescriptorKeys(IPortletDefinition portletDefinition) { final String portletApplicationId; if (portletDefinition.getPortletDescriptorKey().isFrameworkPortlet()) { portletApplicationId = this.servletContext.getContextPath(); } else { portletApplicationId = portletDefinition.getPortletDescriptorKey().getWebAppName(); } final String portletName = portletDefinition.getPortletDescriptorKey().getPortletName(); return new Tuple<String, String>(portletApplicationId, portletName); } }
/** * Get the portletApplicationId and portletName for the specified channel definition id. The * portletApplicationId will be {@link Tuple#first} and the portletName will be {@link * Tuple#second} */ @Override public Tuple<String, String> getPortletDescriptorKeys(IPortletDefinition portletDefinition) { final String portletApplicationId; if (portletDefinition.getPortletDescriptorKey().isFrameworkPortlet()) { portletApplicationId = this.servletContext.getContextPath(); } else { portletApplicationId = portletDefinition.getPortletDescriptorKey().getWebAppName(); } final String portletName = portletDefinition.getPortletDescriptorKey().getPortletName(); return new Tuple<String, String>(portletApplicationId, portletName); } }
utils.getPortletDefinitionFromServletRequest(request); IPortletDescriptorKey portletDescriptorKey = portletDefinition.getPortletDescriptorKey(); String portletWebAppName = portletDescriptorKey.getWebAppName();
utils.getPortletDefinitionFromServletRequest(request); IPortletDescriptorKey portletDescriptorKey = portletDefinition.getPortletDescriptorKey(); String portletWebAppName = portletDescriptorKey.getWebAppName();
@Override public void postExecution( HttpServletRequest request, HttpServletResponse response, IPortletExecutionContext context, Exception e) { final IPortletWindowId portletWindowId = context.getPortletWindowId(); final IPortletWindow portletWindow = this.portletWindowRegistry.getPortletWindow(request, portletWindowId); final IPortletEntity portletEntity = portletWindow.getPortletEntity(); final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition(); final IPortletDescriptorKey portletDescriptorKey = portletDefinition.getPortletDescriptorKey(); final AtomicInteger counter = this.executionCount.get(portletDescriptorKey); counter.incrementAndGet(); }
@Override @PortalTransactional public IMarketplaceRating getRating(String userName, IPortletDefinition portletDefinition) { PortletDefinitionImpl tempPortlet = new PortletDefinitionImpl( portletDefinition.getType(), portletDefinition.getFName(), portletDefinition.getName(), portletDefinition.getTitle(), portletDefinition.getPortletDescriptorKey().getWebAppName(), portletDefinition.getPortletDescriptorKey().getPortletName(), portletDefinition.getPortletDescriptorKey().isFrameworkPortlet(), portletDefinition.getPortletDefinitionId()); MarketplaceRatingPK tempPK = new MarketplaceRatingPK(userName, tempPortlet); return this.getRating(tempPK); }
+ "'."); } else { IPortletDescriptorKey descriptorKey = def.getPortletDescriptorKey(); attributes.add( xmlEventFactory.createAttribute(
+ "'."); } else { IPortletDescriptorKey descriptorKey = def.getPortletDescriptorKey(); attributes.add( xmlEventFactory.createAttribute(
@Override @PortalTransactional public IMarketplaceRating createOrUpdateRating( int rating, String userName, String review, IPortletDefinition portletDefinition) { MarketplaceRatingImpl temp = new MarketplaceRatingImpl(); PortletDefinitionImpl tempPortlet = new PortletDefinitionImpl( portletDefinition.getType(), portletDefinition.getFName(), portletDefinition.getName(), portletDefinition.getTitle(), portletDefinition.getPortletDescriptorKey().getWebAppName(), portletDefinition.getPortletDescriptorKey().getPortletName(), portletDefinition.getPortletDescriptorKey().isFrameworkPortlet(), portletDefinition.getPortletDefinitionId()); MarketplaceRatingPK tempPK = new MarketplaceRatingPK(userName, tempPortlet); temp.setMarketplaceRatingPK(tempPK); temp.setRating(rating); temp.setReview(review); return this.createOrUpdateRating(temp); }
portletDef.setName(form.getName()); portletDef.setTitle(form.getTitle()); portletDef.getPortletDescriptorKey().setWebAppName(form.getApplicationId()); portletDef.getPortletDescriptorKey().setPortletName(form.getPortletName()); portletDef.getPortletDescriptorKey().setFrameworkPortlet(form.isFramework());
if (CONTENT_PORTLET_PREFERENCE.equals(pref.getName()) && pref.getValues().length == 1 && portletDef.getPortletDescriptorKey() != null && STATIC_CONTENT_PORTLET_WEBAPP_NAME.equals( portletDef.getPortletDescriptorKey().getWebAppName())) {
isFramework != null ? isFramework : false); } else { final IPortletDescriptorKey portletDescriptorKey = rslt.getPortletDescriptorKey(); portletDescriptorKey.setPortletName(portletDescriptor.getPortletName()); if (isFramework != null && isFramework) {
this.setTimeout(def.getTimeout()); this.setTypeId(def.getType().getId()); this.setApplicationId(def.getPortletDescriptorKey().getWebAppName()); this.setPortletName(def.getPortletDescriptorKey().getPortletName()); this.setFramework(def.getPortletDescriptorKey().isFrameworkPortlet()); if (def.getParameter(IPortletDefinition.EDITABLE_PARAM) != null) { this.setEditable(
final IPortletDescriptorKey portletDescriptorKey = def.getPortletDescriptorKey(); if (portletDescriptorKey.isFrameworkPortlet()) { portletDescriptor.setIsFramework(true);