Package org.apache.pluto.om.entity

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


        PortletWindow window = (PortletWindow)coplet.getTemporaryAttribute("window");
        if ( window != null ) {
            coplet.removeTemporaryAttribute("window");
            PortletDefinitionRegistry registry = (PortletDefinitionRegistry) portletContainerEnvironment.getContainerService(PortletDefinitionRegistry.class);
       
            PortletApplicationEntity pae = registry.getPortletApplicationEntityList().get(ObjectIDImpl.createFromString("cocoon"));
            ((PortletEntityListImpl)pae.getPortletEntityList()).remove(window.getPortletEntity());
        }
    }
View Full Code Here


     */
    public PortletEntity add(PortletApplicationEntity appEntity, String definitionId) {
        // FIXME
        PortletDefinitionRegistry registry = null;
        PortletDefinition pd = registry.getPortletDefinition(ObjectIDImpl.createFromString(definitionId));
        PortletApplicationEntity pae = registry.getPortletApplicationEntityList().get(ObjectIDImpl.createFromString("cocoon"));
        CopletInstanceData coplet = null;
        PortletEntity portletEntity = new PortletEntityImpl(pae, coplet, pd, registry.getPortalService());
        this.portlets.put(portletEntity.getId(), portletEntity);
       
        return portletEntity;
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.pluto.om.entity.PortletApplicationEntityList#get(org.apache.pluto.om.common.ObjectID)
     */
    public PortletApplicationEntity get(ObjectID objectId) {
        final PortletApplicationEntity pae = (PortletApplicationEntity) this.portletApplicationEntities.get(objectId);
        return pae;
    }
View Full Code Here

     */
    public PortletEntity add(PortletApplicationEntity appEntity, String definitionId) {
        // FIXME
        PortletDefinitionRegistry registry = null;
        PortletDefinition pd = registry.getPortletDefinition(ObjectIDImpl.createFromString(definitionId));
        PortletApplicationEntity pae = registry.getPortletApplicationEntityList().get(ObjectIDImpl.createFromString("cocoon"));
        CopletInstanceData coplet = null;
        PortletEntity portletEntity = new PortletEntityImpl(pae, coplet, pd, registry.getPortalService());
        this.portlets.put(portletEntity.getId(), portletEntity);
       
        return portletEntity;
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.pluto.om.entity.PortletApplicationEntityList#get(org.apache.pluto.om.common.ObjectID)
     */
    public PortletApplicationEntity get(ObjectID objectId) {
        final PortletApplicationEntity pae = (PortletApplicationEntity) this.portletApplicationEntities.get(objectId);
        return pae;
    }
View Full Code Here

  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();) {
            PortletEntity pe = (PortletEntity) it2.next();
            list.add(pe.getId().toString());
          }
          portlets.put(app, list);
      }
View Full Code Here

                PortletEntity entity = portletWindow.getPortletEntity();
                if (entity != null)
                {
                    entityID = entity.getId().toString();
                }
                PortletApplicationEntity portletAppEntity = portletWindow.getPortletEntity()
                        .getPortletApplicationEntity();
                PortletApplicationDefinition portletAppDef = entity.getPortletDefinition()
                        .getPortletApplicationDefinition();

                if (null != portletAppDef)
View Full Code Here

                PortletEntity entity = portletWindow.getPortletEntity();
                if (entity != null)
                {
                    entityID = entity.getId().toString();
                }
                PortletApplicationEntity portletAppEntity = portletWindow.getPortletEntity()
                        .getPortletApplicationEntity();
                PortletApplicationDefinition portletAppDef = entity.getPortletDefinition()
                        .getPortletApplicationDefinition();

                if (null != portletAppDef)
View Full Code Here

    private void fill()
    {
        Iterator iterator = registry.iterator();
        while (iterator.hasNext())
        {
            PortletApplicationEntity appInst = (PortletApplicationEntity)iterator.next();

            // fill portletEntitiesKeyObjectID
            Iterator portlets = appInst.getPortletEntityList().iterator();
            while (portlets.hasNext())
            {
                PortletEntity portletInst = (PortletEntity)portlets.next();                               
                portletEntitiesKeyObjectID.put(portletInst.getId().toString(), portletInst);
View Full Code Here

            PortletApplicationEntityList applicationList = PortletEntityRegistry.getPortletApplicationEntityList();
            Iterator portletApplicationEntityListIterator = applicationList.iterator();
            while(portletApplicationEntityListIterator.hasNext())
            {
                PortletApplicationEntity pae = (PortletApplicationEntity)portletApplicationEntityListIterator.next();
                log.debug("Available application: " + pae.getId());
            }
           
            PortletEntity entity = PortletEntityRegistry.getPortletEntity(ObjectID.createFromString(entityID));

            if (entity == null)
View Full Code Here

TOP

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

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.