Examples of PortletEntityImpl


Examples of org.apache.jetspeed.components.portletentity.PortletEntityImpl

                    // of portletEntity and to replace the portletDefinition with one of current worker context.
                    // Refer to org.apache.jetspeed.components.portletentity.PortletEntityImpl class
                   
                    curWindow = (PortletWindow)
                        CurrentWorkerContext.getAttribute(PortalReservedParameters.PORTLET_WINDOW_ATTRIBUTE);
                    PortletEntityImpl curEntity = (PortletEntityImpl) curWindow.getPortletEntity();
                    PortletDefinition oldPortletDefinition = curEntity.getPortletDefinition();
                    PortletDefinition curPortletDefinition = (PortletDefinition)
                        CurrentWorkerContext.getAttribute(PortalReservedParameters.PORTLET_DEFINITION_ATTRIBUTE);
                   
                    if (!oldPortletDefinition.getId().equals(curPortletDefinition.getId())) {
                        curEntity.setPortletDefinition(curPortletDefinition);
                    }
                }
            }
           
            this.request.setAttribute(PortalReservedParameters.FRAGMENT_ATTRIBUTE, fragment);
View Full Code Here

Examples of org.apache.jetspeed.components.portletentity.PortletEntityImpl

                    // of portletEntity and to replace the portletDefinition with one of current worker context.
                    // Refer to org.apache.jetspeed.components.portletentity.PortletEntityImpl class
                   
                    curWindow = (PortletWindow)
                        CurrentWorkerContext.getAttribute(PortalReservedParameters.PORTLET_WINDOW_ATTRIBUTE);
                    PortletEntityImpl curEntity = (PortletEntityImpl) curWindow.getPortletEntity();
                    PortletDefinition oldPortletDefinition = curEntity.getPortletDefinition();
                    PortletDefinition curPortletDefinition = (PortletDefinition)
                        CurrentWorkerContext.getAttribute(PortalReservedParameters.PORTLET_DEFINITION_ATTRIBUTE);
                   
                    if (!oldPortletDefinition.getId().equals(curPortletDefinition.getId())) {
                        curEntity.setPortletDefinition(curPortletDefinition);
                    }
                }
            }
           
            this.request.setAttribute(PortalReservedParameters.FRAGMENT_ATTRIBUTE, fragment);
View Full Code Here

Examples of org.apache.jetspeed.components.portletentity.PortletEntityImpl

                    // of portletEntity and to replace the portletDefinition with one of current worker context.
                    // Refer to org.apache.jetspeed.components.portletentity.PortletEntityImpl class
                   
                    curWindow = (PortletWindow)
                        CurrentWorkerContext.getAttribute(PortalReservedParameters.PORTLET_WINDOW_ATTRIBUTE);
                    PortletEntityImpl curEntity = (PortletEntityImpl) curWindow.getPortletEntity();
                    PortletDefinition oldPortletDefinition = curEntity.getPortletDefinition();
                    PortletDefinition curPortletDefinition = (PortletDefinition)
                        CurrentWorkerContext.getAttribute(PortalReservedParameters.PORTLET_DEFINITION_ATTRIBUTE);
                   
                    if (!oldPortletDefinition.getId().equals(curPortletDefinition.getId())) {
                        curEntity.setPortletDefinition(curPortletDefinition);
                    }
                }
            }
           
            if (isParallelMode)
View Full Code Here

Examples of org.apache.pluto.portalImpl.om.entity.impl.PortletEntityImpl

      Collection list = null;
      PortletApplicationEntityImpl app = getApplication(appId);
      Collection plets = app.getCastorPortlets();
      Iterator iter = plets.iterator();
      while(iter.hasNext()) {
        PortletEntityImpl plet = (PortletEntityImpl)iter.next();
        if (plet.getCastorId().equalsIgnoreCase(portletId)) {
          list = plet.getCastorPreferences();
          break;
        }
      }
      return list;
    }
View Full Code Here

Examples of org.apache.pluto.portalImpl.om.entity.impl.PortletEntityImpl

      Collection list = null;
      PortletApplicationEntityImpl app = getApplication(appId);
      Collection plets = app.getCastorPortlets();
      Iterator iter = plets.iterator();
      while(iter.hasNext()) {
        PortletEntityImpl plet = (PortletEntityImpl)iter.next();
        if (plet.getCastorId().equalsIgnoreCase(portletId)) {
          list = plet.getCastorPreferences();
          break;
        }
      }
      return list;
    }
View Full Code Here

Examples of org.apache.pluto.portalImpl.om.entity.impl.PortletEntityImpl

      Collection list = null;
      PortletApplicationEntityImpl app = getApplication(appId);
      Collection plets = app.getCastorPortlets();
      Iterator iter = plets.iterator();
      while(iter.hasNext()) {
        PortletEntityImpl plet = (PortletEntityImpl)iter.next();
        if (plet.getCastorId().equalsIgnoreCase(portletId)) {
          list = plet.getCastorPreferences();
          break;
        }
      }
      return list;
    }
View Full Code Here

Examples of org.infoglue.deliver.portal.om.PortletEntityImpl

        PortletDefinitionList pdl = pad.getPortletDefinitionList();
        for (Iterator it = pdl.iterator(); it.hasNext();)
        {
          PortletDefinition pd = (PortletDefinition) it.next();
          log.debug("Adding portlet: " + pd.getName());
          PortletEntityImpl pe = new PortletEntityImpl();
          pe.setId(pd.getName());

          // Copy preferences
          ArrayList destPrefs = new ArrayList();
          PreferenceSet prefSet = pd.getPreferenceSet();
          for (Iterator prefs = prefSet.iterator(); prefs.hasNext();)
          {
            Preference src = (Preference) prefs.next();
            ArrayList destValues = new ArrayList();
            for (Iterator values = src.getValues(); values.hasNext();)
            {
              destValues.add(values.next());
            }
            destPrefs.add(new PreferenceImpl(src.getName(), destValues));
          }
          pe.setPreferenceSet(new PreferenceSetImpl(destPrefs));
          pae.addPortletEntity(pe);
        }

        // Create Digital Asset
        log.debug("Creating Digital Asset...");
View Full Code Here

Examples of org.infoglue.deliver.portal.om.PortletEntityImpl

        // This is here to set back-references
        for (Iterator iter = applications.iterator(); iter.hasNext();) {
            PortletApplicationEntity app = (PortletApplicationEntity) iter.next();

            for (Iterator ports = app.getPortletEntityList().iterator(); ports.hasNext();) {
                PortletEntityImpl port = (PortletEntityImpl) ports.next();
                if (port.getId().toString().indexOf(".") < 0) {
                    port.setId(app.getId() + "." + port.getId());
                }
                port.setPortletApplicationEntity(app);

            }
        }
        return applications;
    }
View Full Code Here

Examples of org.jasig.portal.container.om.entity.PortletEntityImpl

            final PortletApplicationEntityImpl portAppEnt = new PortletApplicationEntityImpl();
            portAppEnt.setId(portletDefinition.getId().toString());
            portAppEnt.setPortletApplicationDefinition(portletDefinition.getPortletApplicationDefinition());
           
            // Create the PortletEntity
            PortletEntityImpl portletEntity = new PortletEntityImpl();
            portletEntity.setId(sd.getChannelPublishId());
            portletEntity.setPortletDefinition(portletDefinition);
            portletEntity.setPortletApplicationEntity(portAppEnt);
            portletEntity.setUserLayout(pcs.getUserPreferencesManager().getUserLayoutManager().getUserLayout());
            portletEntity.setChannelDescription((IUserLayoutChannelDescription)pcs.getUserPreferencesManager().getUserLayoutManager().getNode(sd.getChannelSubscribeId()));
            portletEntity.setPerson(sd.getPerson());
            portletEntity.loadPreferences();
           
            // Add the user information into the request See PLT.17.2.
            Map userInfo = cd.getUserInfo();
           
            if (userInfo == null) {
View Full Code Here

Examples of org.jasig.portal.container.om.entity.PortletEntityImpl

           
                //Detect end of session or portlet removed from layout
                case PortalEvent.UNSUBSCRIBE:
                    //User is removing this portlet from their layout, remove all
                    //the preferences they have stored for it.
                    PortletEntityImpl pe = (PortletEntityImpl)cd.getPortletWindow().getPortletEntity();
                    try {
                        pe.removePreferences();
                    }
                    catch (Exception e) {
                        log.error(e,e);
                    }
                   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.