Package org.apache.pluto.om.entity

Examples of org.apache.pluto.om.entity.PortletApplicationEntityList


           
            // create page with given portlets
            RootFragment root = PageRegistry.getRootFragment();
            ArrayList fragments = new ArrayList();

            PortletApplicationEntityList     entityList     = PortletEntityRegistry.getPortletApplicationEntityList();
            PortletApplicationDefinitionList definitionList = PortletDefinitionRegistry.getPortletApplicationDefinitionList();

            // put all portlets in one column
            StringTokenizer tokenizer;
            Iterator appIt, portletIt;
            for ( int i=0; i < portletNames.length; ++i) {
                tokenizer =  new StringTokenizer(portletNames[i], "/");
                String appName = tokenizer.nextToken();
                String portletName = tokenizer.nextToken();
                appIt = entityList.iterator();
                PortletApplicationEntity appEntity = null;
                // search for application
                boolean found = false;
                while ( appIt.hasNext() && ! found ) {           
                    appEntity = (PortletApplicationEntity) appIt.next();
View Full Code Here


           
            // create page with given portlets
            RootFragment root = PageRegistry.getRootFragment();
            ArrayList fragments = new ArrayList();

            PortletApplicationEntityList     entityList     = PortletEntityRegistry.getPortletApplicationEntityList();
            PortletApplicationDefinitionList definitionList = PortletDefinitionRegistry.getPortletApplicationDefinitionList();

            // put all portlets in one column
            StringTokenizer tokenizer;
            Iterator appIt, portletIt;
            for ( int i=0; i < portletNames.length; ++i) {
                tokenizer =  new StringTokenizer(portletNames[i], "/");
                String appName = tokenizer.nextToken();
                String portletName = tokenizer.nextToken();
                appIt = entityList.iterator();
                PortletApplicationEntity appEntity = null;
                // search for application
                boolean found = false;
                while ( appIt.hasNext() && ! found ) {           
                    appEntity = (PortletApplicationEntity) appIt.next();
View Full Code Here

  private Hashtable portlets = new Hashtable();
  private String portletRegistry;

  protected String doExecute() throws Exception
  {
      PortletApplicationEntityList pael = PortletEntityRegistry.getPortletApplicationEntityList();
     
      for(Iterator it = pael.iterator(); it.hasNext();) {
          PortletApplicationEntity pae = (PortletApplicationEntity) it.next();
          String app = pae.getId().toString();
         
          Vector list = new Vector();
          for(Iterator it2 = pae.getPortletEntityList().iterator(); it2.hasNext();) {
View Full Code Here

        file.delete();

        // Add the new application to portlet registry
        // Update persisted portlet registry
        // TODO check existance first?
        PortletApplicationEntityList pael = PortletEntityRegistry.getPortletApplicationEntityList();
        if (pael instanceof PortletApplicationEntityListImpl)
        {
          ((PortletApplicationEntityListImpl) pael).add(pae);
          log.debug("Portlet application successfully added to registry");
        } else
View Full Code Here

        if (window == null)
        {
            log.debug("Found no portletwindow with id[" + windowID + "], registring new instance");

            PortletApplicationEntityList applicationList = PortletEntityRegistry.getPortletApplicationEntityList();
            Iterator portletApplicationEntityListIterator = applicationList.iterator();
            while(portletApplicationEntityListIterator.hasNext())
            {
                PortletApplicationEntity pae = (PortletApplicationEntity)portletApplicationEntityListIterator.next();
                log.debug("Available application: " + pae.getId());
            }
View Full Code Here

TOP

Related Classes of org.apache.pluto.om.entity.PortletApplicationEntityList

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.