@Test(timeout = 1000) public void testRemoveSessionTrue(final TestContext testContext) { profiles.put(CLIENT1, PROFILE1); testProfileInSessionAfter(webContext.getSessionStore().set(webContext, USER_PROFILES, profiles), v -> profileManager.remove(true), assertNoProfileReturned(), testContext); }
public CompletableFuture<Void> remove(final boolean removeFromSession) { this.context.setRequestAttribute(USER_PROFILES, new LinkedHashMap<String, U>()); if (removeFromSession) { return this.context.getSessionStore().set(context, USER_PROFILES, new LinkedHashMap<String, U>()); } else { return completedFuture(null); } }
AsyncProfileManager { public CompletableFuture<Void> remove(final boolean removeFromSession) { this.context.setRequestAttribute(USER_PROFILES, new LinkedHashMap<String, U>()); if (removeFromSession) { return this.context.getSessionStore().set(context, USER_PROFILES, new LinkedHashMap<String, U>()); } else { return completedFuture(null); } } }
AsyncProfileManager { public CompletableFuture<Void> remove(final boolean removeFromSession) { this.context.setRequestAttribute(USER_PROFILES, new LinkedHashMap<String, U>()); if (removeFromSession) { return this.context.getSessionStore().set(context, USER_PROFILES, new LinkedHashMap<String, U>()); } else { return completedFuture(null); } } AsyncProfileManager(final C context); }
AsyncProfileManager { public CompletableFuture<Void> remove(final boolean removeFromSession) { this.context.setRequestAttribute(USER_PROFILES, new LinkedHashMap<String, U>()); if (removeFromSession) { return this.context.getSessionStore().set(context, USER_PROFILES, new LinkedHashMap<String, U>()); } else { return completedFuture(null); } } AsyncProfileManager(final C context); CompletableFuture<Optional<U>> get(final boolean readFromSession); CompletableFuture<List<U>> getAll(final boolean readFromSession); CompletableFuture<Void> remove(final boolean removeFromSession); CompletableFuture<Void> save(final boolean saveInSession, final U profile, final boolean multiProfile); CompletableFuture<Void> logout(); CompletableFuture<Boolean> isAuthenticated(); }
AsyncProfileManager { public CompletableFuture<Void> remove(final boolean removeFromSession) { this.context.setRequestAttribute(USER_PROFILES, new LinkedHashMap<String, U>()); if (removeFromSession) { return this.context.getSessionStore().set(context, USER_PROFILES, new LinkedHashMap<String, U>()); } else { return completedFuture(null); } } AsyncProfileManager(final C context); CompletableFuture<Optional<U>> get(final boolean readFromSession); CompletableFuture<List<U>> getAll(final boolean readFromSession); CompletableFuture<Void> remove(final boolean removeFromSession); CompletableFuture<Void> save(final boolean saveInSession, final U profile, final boolean multiProfile); CompletableFuture<Void> logout(); CompletableFuture<Boolean> isAuthenticated();  }