Examples of SessionRegistry


Examples of org.exoplatform.services.jcr.impl.core.SessionRegistry

      RepositoryConfigurationException
   {
      ManageableRepository mr = repositoryService.getRepository(repositoryName);
      WorkspaceContainerFacade wc = mr.getWorkspaceContainer(workspaceName);

      SessionRegistry sessionRegistry = (SessionRegistry)wc.getComponent(SessionRegistry.class);

      return sessionRegistry.closeSessions(workspaceName);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.SessionRegistry

      RepositoryConfigurationException
   {
      ManageableRepository mr = repositoryService.getRepository(repositoryName);
      WorkspaceContainerFacade wc = mr.getWorkspaceContainer(workspaceName);

      SessionRegistry sessionRegistry = (SessionRegistry)wc.getComponent(SessionRegistry.class);

      return sessionRegistry.closeSessions(workspaceName);
   }
View Full Code Here

Examples of org.openbp.server.context.SessionRegistry

      }

      // Register the context's session
      if (engine.getSessionMode() == SessionMode.AUTO)
      {
        SessionRegistry sessionRegistry = engine.getSessionRegistry();
        if (sessionRegistry != null)
        {
          if (sessionTimeout == -1L)
          {
            sessionTimeout = SettingUtil.getIntSetting(ServerConstants.SYSPROP_SERVERSESSION_TIMEOUT, 0);
          }
          sessionRegistry.registerSession(context.getId(), context, sessionTimeout);
        }
      }

      TokenContextService contextService = engine.getTokenContextService();
      contextService.saveContext(context);
View Full Code Here

Examples of org.serviceconnector.registry.SessionRegistry

        writer.writeStartElement("service");
        this.writeBean(writer, service);
        writer.writeEndElement();
      }
    }
    SessionRegistry sessionRegistry = AppContext.getSessionRegistry();
    writer.writeStartElement("sessions");
    Session[] sessions = sessionRegistry.getSessions();
    int simulation = this.getParameterInt(request, "sim", 0);
    if (simulation > 0) {
      Session[] sim = new Session[simulation + sessions.length];
      System.arraycopy(sessions, 0, sim, 0, sessions.length);
      for (int i = sessions.length; i < simulation; i++) {
View Full Code Here

Examples of org.serviceconnector.registry.SessionRegistry

  public static void setSCEnvironment(boolean scEnvironment) {
    AppContext.scEnvironment = scEnvironment;
    if (AppContext.scEnvironment) {
      AppContext.serverRegistry = new ServerRegistry();
      AppContext.serviceRegistry = new ServiceRegistry();
      AppContext.sessionRegistry = new SessionRegistry();
      AppContext.subscriptionRegistry = new SubscriptionRegistry();
      AppContext.cacheRegistry = new CacheRegistry();
    }
  }
View Full Code Here

Examples of org.serviceconnector.registry.SessionRegistry

  public static void setSCEnvironment(boolean scEnvironment) {
    AppContext.scEnvironment = scEnvironment;
    if (AppContext.scEnvironment) {
      AppContext.serverRegistry = new ServerRegistry();
      AppContext.serviceRegistry = new ServiceRegistry();
      AppContext.sessionRegistry = new SessionRegistry();
      AppContext.subscriptionRegistry = new SubscriptionRegistry();
      AppContext.cacheModuleRegistry = new CacheModuleRegistry();
    }
  }
View Full Code Here

Examples of org.springframework.security.core.session.SessionRegistry

        // Setup our test fixture and registry to want this session to be expired
        ConcurrentSessionFilter filter = new ConcurrentSessionFilter();
        filter.setRedirectStrategy(new DefaultRedirectStrategy());
        filter.setLogoutHandlers(new LogoutHandler[] {new SecurityContextLogoutHandler()});

        SessionRegistry registry = new SessionRegistryImpl();
        registry.registerNewSession(session.getId(), "principal");
        registry.getSessionInformation(session.getId()).expireNow();
        filter.setSessionRegistry(registry);
        filter.setExpiredUrl("/expired.jsp");
        filter.afterPropertiesSet();

        FilterChain fc = mock(FilterChain.class);
View Full Code Here

Examples of org.springframework.security.core.session.SessionRegistry

        request.setSession(session);

        MockHttpServletResponse response = new MockHttpServletResponse();

        ConcurrentSessionFilter filter = new ConcurrentSessionFilter();
        SessionRegistry registry = new SessionRegistryImpl();
        registry.registerNewSession(session.getId(), "principal");
        registry.getSessionInformation(session.getId()).expireNow();
        filter.setSessionRegistry(registry);

        FilterChain fc = mock(FilterChain.class);
        filter.doFilter(request, response, fc);
        verifyZeroInteractions(fc);
View Full Code Here

Examples of org.springframework.security.core.session.SessionRegistry

        MockHttpServletResponse response = new MockHttpServletResponse();
        FilterChain fc = mock(FilterChain.class);

        // Setup our test fixture
        ConcurrentSessionFilter filter = new ConcurrentSessionFilter();
        SessionRegistry registry = new SessionRegistryImpl();
        registry.registerNewSession(session.getId(), "principal");

        Date lastRequest = registry.getSessionInformation(session.getId()).getLastRequest();
        filter.setSessionRegistry(registry);
        filter.setExpiredUrl("/expired.jsp");

        Thread.sleep(1000);

        filter.doFilter(request, response, fc);

        verify(fc).doFilter(request, response);
        assertTrue(registry.getSessionInformation(session.getId()).getLastRequest().after(lastRequest));
    }
View Full Code Here

Examples of org.springframework.security.core.session.SessionRegistry

    @Test
    public void logoutClearsSessionRegistryAndAllowsSecondLogin() throws Exception {
        beginAt("secure/index.html");
        login("bessie", "bessiespassword");
        SessionRegistry reg = getAppContext().getBean(SessionRegistry.class);

        tester.gotoPage("/j_spring_security_logout");

        // Login again
        System.out.println("Client: ******* Second login ******* ");
 
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.