Examples of PortletApplicationEntityImpl


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

      logMethodEnd(METHOD_NAME, elist);
      return elist;
    }

    public PortletApplicationEntityImpl getApplication(String castorId) 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)) {
          app = currApp;
          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.apache.pluto.portalImpl.om.entity.impl.PortletApplicationEntityImpl

   */
  public int compare(Object obj1, Object obj2) {
    if (!(obj1 instanceof PortletApplicationEntityImpl) || !(obj2 instanceof PortletApplicationEntityImpl)) {
      throw new ClassCastException("Wrong class type used for PortletApplicationEntityImplComparator");
    } else {
      PortletApplicationEntityImpl app1 = (PortletApplicationEntityImpl)obj1;
      PortletApplicationEntityImpl app2 = (PortletApplicationEntityImpl)obj2;
            return app1.getCastorId().compareTo(app2.getCastorId());
    }
  }
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.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

      }
      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
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.