Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean-up user session listing and invalidation
This mechanism is now separated from the cache invalidation. It has been factored out to ClusterwideUserSessionManagerImpl.
- Loading branch information
Showing
21 changed files
with
187 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...in/java/com/evolveum/midpoint/model/api/authentication/ClusterwideUserSessionManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.model.api.authentication; | ||
|
||
import com.evolveum.midpoint.TerminateSessionEvent; | ||
import com.evolveum.midpoint.schema.result.OperationResult; | ||
import com.evolveum.midpoint.task.api.Task; | ||
import com.evolveum.midpoint.xml.ns._public.common.api_types_3.UserSessionManagementType; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Takes care for clusterwide user session management. | ||
*/ | ||
public interface ClusterwideUserSessionManager { | ||
|
||
/** | ||
* Terminates specified sessions (on local and remote nodes). | ||
*/ | ||
void terminateSessions(TerminateSessionEvent terminateSessionEvent, Task task, OperationResult result); | ||
|
||
/** | ||
* Collects logged in principals (on local and remote nodes). | ||
*/ | ||
List<UserSessionManagementType> getLoggedInPrincipals(Task task, OperationResult result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.