Package org.exoplatform.portal.application.replication

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


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

        //
        ApplicationState appState = null;
        HttpSession session = getSession(context);
        String key = getKey(context);
        if (session != null) {
            appState = (ApplicationState) session.getAttribute(APPLICATION_ATTRIBUTE_PREFIX + key);
        }

        UIApplication uiapp = null;
        if (appState != null) {
            if (log.isDebugEnabled()) {
                log.debug("Found application " + key + " :" + appState.getApplication());
            }
            if (Safe.equals(context.getRemoteUser(), appState.getUserName())) {
                uiapp = appState.getApplication();
            }
        } else {
            log.debug("Application " + key + " not found");
        }
View Full Code Here


            // 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

        //
        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

            // 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

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

      //
      ApplicationState appState = null;
      HttpSession session = getSession(context);
      String key = getKey(context);
      if (session != null)
      {
         appState = (ApplicationState)session.getAttribute(APPLICATION_ATTRIBUTE_PREFIX + key);
      }

      //

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

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

         // 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

TOP

Related Classes of org.exoplatform.portal.application.replication.ApplicationState

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.