Examples of ApplicationState


Examples of org.exoplatform.portal.application.replication.ApplicationState

            // because the session might be invalidated and the response is already commited to the client.
            // That situation happens during a logout that invalidates the HttpSession
            if (session != null) {
                String key = getKey(context);
                log.debug("Storing application " + key);
                session.setAttribute(APPLICATION_ATTRIBUTE_PREFIX + key, new ApplicationState(uiapp, context.getRemoteUser()));
            }
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.application.replication.ApplicationState

        //
        WebuiApplication app = (WebuiApplication) context.getApplication();

        //
        ApplicationState appState = null;
        HttpSession session = getSession(context);
        if (session != null) {
            appState = (ApplicationState) session.getAttribute(APPLICATION_KEY);
        }

        //

        //
        UIApplication uiapp = null;
        if (appState != null) {
            if (Safe.equals(context.getRemoteUser(), appState.getUserName())) {
                uiapp = appState.getApplication();
            }
        }

        //
        if (appState != null) {
            log.debug("Found application " + APPLICATION_KEY + " :" + appState.getApplication());
        } else {
            log.debug("Application " + APPLICATION_KEY + " not found");
        }

        //
View Full Code Here

Examples of org.exoplatform.portal.application.replication.ApplicationState

            // At this point if it returns null it means that it was not possible to create a session
            // because the session might be invalidated and the response is already commited to the client.
            // That situation happens during a logout that invalidates the HttpSession
            if (session != null) {
                log.debug("Storing application " + APPLICATION_KEY);
                session.setAttribute(APPLICATION_KEY, new ApplicationState(uiapp, context.getRemoteUser()));
            }
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.config.model.ApplicationState

            assertNotNull(container);
            assertEquals(2, container.getChildren().size());
            assertTrue(container.getChildren().get(0) instanceof PageBody);
            assertTrue(((Application)container.getChildren().get(1)).getType() == ApplicationType.PORTLET);
            Application<Portlet> pa = (Application<Portlet>)container.getChildren().get(1);
            ApplicationState state = pa.getState();
            assertEquals("foo/bar", storage_.getId(pa.getState()));
         }
      }.execute(null);
   }
View Full Code Here

Examples of org.exoplatform.portal.config.model.ApplicationState

                    // Hardcode on state to fix error while drag/drop Dashboard
                    if ("dashboard/DashboardPortlet".equals(app.getContentId())) {
                        TransientApplicationState state = new TransientApplicationState<Object>(app.getContentId());
                        uiPortlet.setState(new PortletState(state, applicationType));
                    } else {
                        ApplicationState state;
                        // if we have a new portlet added to the page we need for it to have its own state.
                        // otherwise all new portlets added to a page will have the same state.
                        if (newComponent) {
                            state = new TransientApplicationState<Object>(app.getContentId());
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.