Package org.infoglue.deliver.portal.om

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


        // 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

TOP

Related Classes of org.infoglue.deliver.portal.om.PortletEntityImpl

Copyright © 2018 www.massapicom. 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.