Examples of PortletApplicationEntityImpl


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

      }
      ArrayList list = new ArrayList(apps);
      Iterator iter = list.iterator();
      int nNewId = 0;
      while (iter.hasNext()) {
        PortletApplicationEntityImpl app = (PortletApplicationEntityImpl) iter.next();
        String currAppId = app.getCastorId();
        int nCurrAppId = Integer.parseInt(currAppId);
        if (nNewId <= nCurrAppId) {
          nNewId = nCurrAppId;
        }
      }
View Full Code Here

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

      final String METHOD_NAME = "getPortletEntityRegistryApp(request)";
      logMethodStart(METHOD_NAME);
      String appId = request.getParameter("appid");
      logDebug(METHOD_NAME, "AppId selected: " + appId);
      PortletSession session = request.getPortletSession();
      PortletApplicationEntityImpl app;
      try {
        org.apache.pluto.portlet.admin.model.PortletEntityRegistryXao xao =
          new org.apache.pluto.portlet.admin.model.PortletEntityRegistryXao();
        app = xao.getApplication(appId);
      } catch (Exception e) {
View Full Code Here

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

        args.add(appId);
      } else {
          //Don't add it to portletentityregistry.xml,
          //and retreive id using webapp context and XAO
      PortletEntityRegistryXao xao = new PortletEntityRegistryXao();
      PortletApplicationEntityImpl app = xao.getApplication(context);
        appId = app.getCastorId();
      }
 
      //Add Map of portlet name/values to session
      // to be used in drop downs on page layout page
      Map pmap = new HashMap();
View Full Code Here

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

      logMethodEnd(METHOD_NAME, elist);
      return elist;
    }

    public PortletApplicationEntityImpl getApplication(String appContext) throws Exception {
      PortletApplicationEntityImpl app = null;
      Collection apps = getApplications();
      Iterator iter = apps.iterator();
      while(iter.hasNext()) {
//        PortletApplicationEntityImpl currApp = (PortletApplicationEntityImpl)iter.next();
//        if (currApp.getCastorId().equalsIgnoreCase(castorId)) { //method parameter
//          app = currApp;
//          break;
//        }
        app = (PortletApplicationEntityImpl) iter.next();
        if (app.getDefinitionId().equalsIgnoreCase(appContext)) {
          break;
        }
      }
      return app;
    }
View Full Code Here

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

      return app;
    }

    public Collection getPortletPreferences(String appId, String portletId) throws Exception {
      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();
View Full Code Here

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

      logError(METHOD_NAME, e);
      throw new PlutoAdminException(e);
    }
    Iterator iter = apps.iterator();
      while (iter.hasNext()) {
        PortletApplicationEntityImpl app = (PortletApplicationEntityImpl) iter.next();
        if (app.getDefinitionId().equalsIgnoreCase(appContext)) {
          exists = true;
          break;
        }
      }
      return exists;
View Full Code Here

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

        PortletApplicationDefinition pad = Deploy.prepareArchive(uploadedFile, file, appName);

        // Extract portlet application information to be added to
        // portlet entity registry
        log.info("Adding portlet application to registry: " + appName);
        PortletApplicationEntityImpl pae = new PortletApplicationEntityImpl();
        pae.setId(appName);

        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...");
        DigitalAssetVO newAsset = new DigitalAssetVO();
View Full Code Here

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

            ChannelDefinition channelDefinition = ChannelRegistryStoreFactory.getChannelRegistryStoreImpl().getChannelDefinition(Integer.parseInt(sd.getChannelPublishId()));
            portletDefinition.setChannelDefinition(channelDefinition);
            portletDefinition.loadPreferences();

            // Create the PortletApplicationEntity
            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);
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.