fr.paris.lutece.plugins.mylutece.modules.parisconnect.service
public final class ParisConnectService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_ALREADY_SUBSCRIBE |
static String |
ERROR_DURING_SUBSCRIBE |
| Modifier and Type | Method and Description |
|---|---|
ParisConnectUser |
doLogin(javax.servlet.http.HttpServletRequest request,
String strUserName,
String strUserPassword,
ParisConnectAuthentication parisConnectAuthentication)
Process login
|
void |
doLogout(ParisConnectUser user)
Logout to paris connect
|
String |
getConnectionCookie(javax.servlet.http.HttpServletRequest request)
Extract the value of the connection cookie
|
ParisConnectUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request,
ParisConnectAuthentication parisConnectAuthentication)
Gets the authenticated user
|
static ParisConnectService |
getInstance()
Gets the instance
|
String |
getPcuidByEmail(String strMail)
get user pcuid by email
|
String |
getUidByPcuid(String strPcuid)
get User uid by Pcuid
|
void |
init()
Inits plugin.
|
String |
setAccountShadow(String strMail,
String strIdEmail)
create a Shadow account
|
boolean |
setAdresse(String strPCUID,
String strLocation,
String strZipCode,
String strCity)
Set the User adress
|
boolean |
setBirthday(String strPCUID,
String strBirthday)
Set the user birthday
|
void |
setConnectionCookie(String strPCUID,
javax.servlet.http.HttpServletResponse response)
set a paris connect cokkie in the HttpServletResponse
|
boolean |
setPatronyme(String strPCUID,
String strFirstName,
String strLastName)
Set the first name and the last name of the user
|
String |
subscribeUser(String strPCUID,
String strIdAlertes)
Subscribe user to a alert
|
boolean |
unSubscribeUser(String strPCUID,
String strIdAlertes)
Unsubscribe user to a alert
|
public static final String ERROR_ALREADY_SUBSCRIBE
public static final String ERROR_DURING_SUBSCRIBE
public static ParisConnectService getInstance()
public void init()
public ParisConnectUser doLogin(javax.servlet.http.HttpServletRequest request, String strUserName, String strUserPassword, ParisConnectAuthentication parisConnectAuthentication)
request - The HTTP requeststrUserName - The user's namestrUserPassword - The user's passwordparisConnectAuthentication - The authenticationpublic void doLogout(ParisConnectUser user)
user - the ParisConnectUserpublic ParisConnectUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request, ParisConnectAuthentication parisConnectAuthentication)
request - The HTTP requestparisConnectAuthentication - The Authenticationpublic String getConnectionCookie(javax.servlet.http.HttpServletRequest request)
request - The HTTP requestpublic void setConnectionCookie(String strPCUID, javax.servlet.http.HttpServletResponse response)
strPCUID - the user PCUIDresponse - The HTTP responsepublic boolean setBirthday(String strPCUID, String strBirthday)
strPCUID - The PCUIDstrBirthday - the Birthday datepublic boolean setPatronyme(String strPCUID, String strFirstName, String strLastName)
strPCUID - The PCUIDstrFirstName - the user first namestrLastName - the user last namepublic boolean setAdresse(String strPCUID, String strLocation, String strZipCode, String strCity)
strPCUID - The PCUIDstrLocation - the location adressstrZipCode - the user Zip CodestrCity - the city of the userpublic String subscribeUser(String strPCUID, String strIdAlertes)
strPCUID - the user pcuidstrIdAlertes - the alert idpublic boolean unSubscribeUser(String strPCUID, String strIdAlertes)
strPCUID - the user pcuidstrIdAlertes - the alert idpublic String getPcuidByEmail(String strMail)
strMail - the mailpublic String setAccountShadow(String strMail, String strIdEmail)
strMail - the mailstrIdEmail - the mail idCopyright © 2014 Mairie de Paris. All rights reserved.