public class AlwaysUseSessionProfileStorageDecision<C extends WebContext> extends Object implements ProfileStorageDecision<C>
Constructor and Description |
---|
AlwaysUseSessionProfileStorageDecision() |
Modifier and Type | Method and Description |
---|---|
boolean |
mustLoadProfilesFromSession(C context,
List<Client> currentClients)
Whether we must load the profiles from the web session.
|
boolean |
mustSaveProfileInSession(C context,
List<Client> currentClients,
DirectClient directClient,
CommonProfile profile)
Whether we must save the profile in session after the authentication of direct clients.
|
public AlwaysUseSessionProfileStorageDecision()
public boolean mustLoadProfilesFromSession(C context, List<Client> currentClients)
ProfileStorageDecision
mustLoadProfilesFromSession
in interface ProfileStorageDecision<C extends WebContext>
context
- the web contextcurrentClients
- the current clientspublic boolean mustSaveProfileInSession(C context, List<Client> currentClients, DirectClient directClient, CommonProfile profile)
ProfileStorageDecision
mustSaveProfileInSession
in interface ProfileStorageDecision<C extends WebContext>
context
- the web contextcurrentClients
- the current clientsdirectClient
- the direct clientsprofile
- the retrieved profile after loginCopyright © 2019. All rights reserved.