Examples of removeSession()


Examples of org.apache.catalina.authenticator.SingleSignOnEntry.removeSession()

        SingleSignOnEntry entry = lookup(ssoId);
        if (entry == null)
            return;

        // Remove the inactive session from SingleSignOnEntry
        entry.removeSession(session);

        // If there are not sessions left in the SingleSignOnEntry,
        // deregister the entry.
        if (entry.isEmpty()) {
            deregister(ssoId);
View Full Code Here

Examples of org.apache.catalina.authenticator.SingleSignOnEntry.removeSession()

        SingleSignOnEntry entry = lookup(ssoId);
        if (entry == null)
            return;

        // Remove the inactive session from SingleSignOnEntry
        entry.removeSession(session);

        // If there are not sessions left in the SingleSignOnEntry,
        // deregister the entry.
        if (entry.isEmpty()) {
            deregister(ssoId);
View Full Code Here

Examples of org.cedj.geekseek.domain.conference.model.Conference.removeSession()

    @ShouldMatchDataSet({ "conference.yml", "session_empty.yml" })
    public void shouldBeAbleToRemoveConferenceWithSession() {

        Conference conference = repository.get("CA");
        Session session = conference.getSessions().toArray(new Session[0])[0];
        conference.removeSession(session);

        repository.store(conference);
    }

    // Story: As a User I should be able to change a Conference
View Full Code Here

Examples of org.cedj.geekseek.domain.conference.model.Conference.removeSession()

    @Override
    public void remove(Session entity) {
        Conference conf = conferenceRepository.getConferenceBySessionId(entity.getId());
        if(conf != null) {
            conf.removeSession(entity);
        }
        sessions.remove(entity);
    }

    @Override
View Full Code Here

Examples of org.h2.engine.Database.removeSession()

            ConnectionInfo ci = new ConnectionInfo("jdbc:h2:" + testDatabase + ";FILE_LOCK=NO;TRACE_LEVEL_FILE=0", p);
            Database database = new Database(ci, null);
            // close the database
            Session session = database.getSystemSession();
            session.prepare("shutdown immediately").update();
            database.removeSession(null);
            // everything OK - return
            return;
        } catch (DbException e) {
            SQLException e2 = DbException.toSQLException(e);
            int errorCode = e2.getErrorCode();
View Full Code Here

Examples of org.h2.engine.Database.removeSession()

            // avoid using the Engine class to avoid deadlocks
            Properties p = new Properties();
            ConnectionInfo ci = new ConnectionInfo("jdbc:h2:" + testDatabase + ";FILE_LOCK=NO", p);
            Database database = new Database(ci, null);
            // close the database
            database.removeSession(null);
        } catch (Exception e) {
            int errorCode = 0;
            if (e instanceof DbException) {
                e = ((DbException) e).getSQLException();
                errorCode = ((SQLException) e).getErrorCode();
View Full Code Here

Examples of org.h2.engine.Database.removeSession()

            Database database = new Database(ci, null);
            // close the database
            Session session = database.getSystemSession();
            session.prepare("script to '" + testDatabase + ".sql'").query(0);
            session.prepare("shutdown immediately").update();
            database.removeSession(null);
            // everything OK - return
            return;
        } catch (DbException e) {
            SQLException e2 = DbException.toSQLException(e);
            int errorCode = e2.getErrorCode();
View Full Code Here

Examples of org.h2.engine.Database.removeSession()

            // avoid using the Engine class to avoid deadlocks
            Properties p = new Properties();
            ConnectionInfo ci = new ConnectionInfo("jdbc:h2:" + testDatabase + ";FILE_LOCK=NO", p);
            Database database = new Database(ci, null);
            // close the database
            database.removeSession(null);
        } catch (Exception e) {
            int errorCode = 0;
            if (e instanceof DbException) {
                e = ((DbException) e).getSQLException();
                errorCode = ((SQLException) e).getErrorCode();
View Full Code Here

Examples of org.jboss.web.tomcat.service.sso.jbc.JBossCacheSSOClusterManager.removeSession()

      Session sess2 = new MockSession(localSessMgr2, "1");
      localSSOManager.addSession("1", getFullyQualifiedSessionId(sess2));
     
      assertEquals(2, localSSOManager.getSessionCount("1"));
     
      localSSOManager.removeSession("1", getFullyQualifiedSessionId(sess2));
     
      assertEquals(1, localSSOManager.getSessionCount("1"));
   }
  
   private CacheManager getCacheManager() throws Exception
View Full Code Here

Examples of org.jivesoftware.openfire.SessionManager.removeSession()

        Set<String> registeredUsers = lookupJIDList(key, C2SCache.getName());
        if (!registeredUsers.isEmpty()) {
            for (String fullJID : new ArrayList<String>(registeredUsers)) {
                JID offlineJID = new JID(fullJID);
                manager.removeSession(null, offlineJID, false, true);
            }
        }

        Set<String> anonymousUsers = lookupJIDList(key, anonymousC2SCache.getName());
        if (!anonymousUsers.isEmpty()) {
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.