Package org.apache.jetspeed.om.common.portlet

Examples of org.apache.jetspeed.om.common.portlet.MutablePortletApplication


        {
            List list = new ArrayList();
            Iterator apps = registry.getPortletApplications().iterator();
            while (apps.hasNext())
            {
                MutablePortletApplication pa = (MutablePortletApplication)apps.next();
                PortletApplicationStatusBean bean = new PortletApplicationStatusBean(pa, portletFactory.isPortletApplicationRegistered(pa));
                list.add(bean);
            }           
            request.getPortletSession().setAttribute("list",list);
        }
View Full Code Here


                // enforce list is rebuild next doView
                request.getPortletSession().removeAttribute("list");
               
                if (!action.equals("refresh") && !isEmpty(value))
                {
                    MutablePortletApplication pa = registry.getPortletApplication(value);
                    if ( pa == null )
                    {
                        publishStatusMessage(request, "PALM", "status", null, "Portlet Application "+pa.getName()+" no longer exists");
                    }
                    else if ( pa.getApplicationType() == MutablePortletApplication.LOCAL )
                    {
                        // TODO
                    }
                    else // ( pa.getApplicationType() == MutablePortletApplication.WEBAPP )
                    {
View Full Code Here

               
        autoDeployment.fireDeploymentEvent();
       
        verifyDemoAppCreated(TEST_PORTLET_APP_NAME, demoApp);
       
        MutablePortletApplication app = portletRegistry.getPortletApplication(TEST_PORTLET_APP_NAME);
       
        PortletDefinition portlet = (PortletDefinition) app.getPortletDefinitionList().iterator().next();
       
        MutablePortletEntity entity = entityAccess.newPortletEntityInstance(portlet);
        entity.setId("testEnity");
       
        entityAccess.storePortletEntity(entity);
View Full Code Here

    public MutablePortletApplication getPortletApplication( ObjectID id )
    {
        Criteria c = new Criteria();
        c.addEqualTo("id", new Long(id.toString()));
        MutablePortletApplication app = (MutablePortletApplication) getPersistenceBrokerTemplate().getObjectByQuery(
                QueryFactory.newQuery(PortletApplicationDefinitionImpl.class, c));
        postLoad(app);
        return app;
    }
View Full Code Here

    public MutablePortletApplication getPortletApplication( String name )
    {
        Criteria c = new Criteria();
        c.addEqualTo("name", name);
        MutablePortletApplication app = (MutablePortletApplication) getPersistenceBrokerTemplate().getObjectByQuery(
                QueryFactory.newQuery(PortletApplicationDefinitionImpl.class, c));
        postLoad(app);
        return app;
    }
View Full Code Here

    public MutablePortletApplication getPortletApplicationByIdentifier( String identifier )
    {
        Criteria c = new Criteria();
        c.addEqualTo("applicationIdentifier", identifier);
        MutablePortletApplication app = (MutablePortletApplication) getPersistenceBrokerTemplate().getObjectByQuery(
                QueryFactory.newQuery(PortletApplicationDefinitionImpl.class, c));
        postLoad(app);
        return app;
    }
View Full Code Here

                                                                   MutablePortletApplication oldPA,
                                                                   boolean local,
                                                                   ClassLoader loader)
                    throws RegistryException
    {
        MutablePortletApplication app = super.registerPortletApplication(paWar, oldPA, local, loader);
        //create xreg       
        try
        {
            // remove entries from the registry
            // registry.processPortletApplicationTree(app, "remove");
            log.info("Saving the portlet.xml in the J1 registry...");
           
            Collection pds = app.getPortletDefinitions();
            Iterator pdsIter = pds.iterator();
            while (pdsIter.hasNext())
            {
                PortletDefinition pdef = (PortletDefinition) pdsIter.next();
                PortletEntry entry = createPortletEntry(app.getName(), pdef);
                               
                Registry.saveEntry(Registry.PORTLET, entry);
                System.out.println("Writing registry: " + entry.getName());
            }
           
View Full Code Here

        {
            System.err.println("Failed to get registry component!");
            return;
        }

        MutablePortletApplication pac = registry.getPortletApplication("jetspeed");
        if (pac != null)
        {
            PortletDefinition portlet = pac.getPortletDefinitionByName("VelocityTwoColumns");
            if (portlet != null)
            {
                System.out.println("REGISTRY TEST [READ PORTLET] ENTRY. Name[jetspeed] sucessful!");
            }
            else
View Full Code Here

       
        Map map = (Map)context.getAttribute(FUSION_USER_INFO);
        if (map == null)
        {           
            Map j1Map = createJetspeedUserMap(user);
            MutablePortletApplication pa = registry.getPortletApplication(oid);
            if (null == pa)
            {
                return null;
            }
            Collection userAttributes = pa.getUserAttributes();
            Collection userAttributeRefs = pa.getUserAttributeRefs();
            map = mapUserInfo(j1Map, userAttributes, userAttributeRefs);
           
        }
        return map;
    }
View Full Code Here

    }
    while (list.hasNext())
    {
      try
      {
        MutablePortletApplication pa = (MutablePortletApplication) list
            .next();
        // PortletApplicationDefinition pa =
        // (PortletApplicationDefinition)list.next();
        applications.add(exportPA(pa));
      } catch (Exception e)
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.common.portlet.MutablePortletApplication

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.