Package org.apache.wookie.connector.framework

Examples of org.apache.wookie.connector.framework.AbstractWookieConnectorService


          break;
        }
        case DEMO_WIDGET:{
          String widgetId = request.getParameter("widgetId");
          try {
            AbstractWookieConnectorService conn = getConnectorService(request);
            conn.setCurrentUser("testuser");
            org.apache.wookie.connector.framework.WidgetInstance instanceOne = conn.getOrCreateInstance(widgetId);
            conn.setPropertyForInstance(instanceOne, "setpersonalproperty", "moderator", "true");
            conn.setCurrentUser("testuser2");
            org.apache.wookie.connector.framework.WidgetInstance instanceTwo = conn.getOrCreateInstance(widgetId);           
            request.setAttribute("firstWidgetURL", instanceOne.getUrl());
            request.setAttribute("secondWidgetURL", instanceTwo.getUrl());
            request.setAttribute("widgetHeight", instanceOne.getHeight());
            request.setAttribute("widgetWidth", instanceOne.getWidth());
            request.setAttribute("proxy", WidgetInstancesController.checkProxy(request));
View Full Code Here


        case DEMO_WIDGET:{
          String idKey = request.getParameter("idkey");
          try {
            IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
            String guid = persistenceManager.findWidgetInstanceByIdKey(idKey).getWidget().getGuid();
            AbstractWookieConnectorService conn = getConnectorService(request);
            conn.setCurrentUser("testuser");
            org.apache.wookie.connector.framework.WidgetInstance instanceOne = conn.getOrCreateInstance(guid);
            conn.setPropertyForInstance(instanceOne, "setpersonalproperty", "moderator", "true");
            conn.setCurrentUser("testuser2");
            org.apache.wookie.connector.framework.WidgetInstance instanceTwo = conn.getOrCreateInstance(guid);           
            request.setAttribute("firstWidgetURL", instanceOne.getUrl());
            request.setAttribute("secondWidgetURL", instanceTwo.getUrl());
            request.setAttribute("widgetHeight", instanceOne.getHeight());
            request.setAttribute("widgetWidth", instanceOne.getWidth());
            request.setAttribute("proxy", WidgetInstancesController.checkProxy(request));
View Full Code Here

TOP

Related Classes of org.apache.wookie.connector.framework.AbstractWookieConnectorService

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.