Class DefaultPunchOutUserAuthenticationService
- java.lang.Object
-
- de.hybris.platform.b2bpunchoutaddon.services.impl.DefaultPunchOutUserAuthenticationService
-
- All Implemented Interfaces:
PunchOutUserAuthenticationService
public class DefaultPunchOutUserAuthenticationService extends java.lang.Object implements PunchOutUserAuthenticationService
Default implementation ofPunchOutUserAuthenticationService.
-
-
Constructor Summary
Constructors Constructor Description DefaultPunchOutUserAuthenticationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(java.lang.String userId, boolean isSeamlessLogin, PunchOutSession punchOutSession, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Authenticates a user.ConfigurationServicegetConfigurationService()PunchOutUserAuthenticationStrategygetPunchOutUserAuthenticationStrategy()PunchOutUserGroupSelectionStrategygetPunchOutUserGroupSelectionStrategy()PunchOutUserSelectionStrategygetPunchOutUserSelectionStrategy()voidlogout()Logs out the user.protected voidselectRedirectPage(PunchOutSession punchOutSession, javax.servlet.http.HttpServletRequest request)Select page that user will be redirected in seamless login, depending on the selected operation.voidsetConfigurationService(ConfigurationService configurationService)voidsetPunchOutUserAuthenticationStrategy(PunchOutUserAuthenticationStrategy punchOutUserAuthenticationStrategy)voidsetPunchOutUserGroupSelectionStrategy(PunchOutUserGroupSelectionStrategy punchOutUserGroupSelectionStrategy)voidsetPunchOutUserSelectionStrategy(PunchOutUserSelectionStrategy punchOutUserSelectionStrategy)
-
-
-
Method Detail
-
authenticate
public void authenticate(java.lang.String userId, boolean isSeamlessLogin, PunchOutSession punchOutSession, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Description copied from interface:PunchOutUserAuthenticationServiceAuthenticates a user.- Specified by:
authenticatein interfacePunchOutUserAuthenticationService- Parameters:
userId- The user to be authenticated.isSeamlessLogin- True if this is a seamless login request.punchOutSession- The punch out session.request- Servlet request.response- Servlet response.
-
logout
public void logout()
Description copied from interface:PunchOutUserAuthenticationServiceLogs out the user.- Specified by:
logoutin interfacePunchOutUserAuthenticationService
-
selectRedirectPage
protected void selectRedirectPage(PunchOutSession punchOutSession, javax.servlet.http.HttpServletRequest request)
Select page that user will be redirected in seamless login, depending on the selected operation.- Parameters:
punchOutSession-request-
-
getPunchOutUserGroupSelectionStrategy
public PunchOutUserGroupSelectionStrategy getPunchOutUserGroupSelectionStrategy()
-
setPunchOutUserGroupSelectionStrategy
public void setPunchOutUserGroupSelectionStrategy(PunchOutUserGroupSelectionStrategy punchOutUserGroupSelectionStrategy)
-
getPunchOutUserSelectionStrategy
public PunchOutUserSelectionStrategy getPunchOutUserSelectionStrategy()
-
setPunchOutUserSelectionStrategy
public void setPunchOutUserSelectionStrategy(PunchOutUserSelectionStrategy punchOutUserSelectionStrategy)
-
getPunchOutUserAuthenticationStrategy
public PunchOutUserAuthenticationStrategy getPunchOutUserAuthenticationStrategy()
-
setPunchOutUserAuthenticationStrategy
public void setPunchOutUserAuthenticationStrategy(PunchOutUserAuthenticationStrategy punchOutUserAuthenticationStrategy)
-
getConfigurationService
public ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-