public final class DatabaseUserKeyService extends Object
Modifier and Type | Method and Description |
---|---|
DatabaseUserKey |
create(int nUserId)
Create a new user key from a given user id
|
DatabaseUserKey |
findByPrimaryKey(String strKey)
Find the key
|
DatabaseUserKey |
findKeyByLogin(String strLogin)
Get a key of a user by his login
|
String |
getReinitUrl(String strKey,
javax.servlet.http.HttpServletRequest request)
Get reinit url
|
static DatabaseUserKeyService |
getService()
Get the instance of the service
|
String |
getValidationUrl(String strKey,
javax.servlet.http.HttpServletRequest request)
Build the validation url
|
void |
remove(String strKey)
Remove a key
|
void |
removeByIdUser(int nUserId)
Remove a key from a given id user
|
public static DatabaseUserKeyService getService()
public DatabaseUserKey create(int nUserId)
nUserId
- the id userpublic DatabaseUserKey findByPrimaryKey(String strKey)
strKey
- the keypublic DatabaseUserKey findKeyByLogin(String strLogin)
strLogin
- The login of the userpublic void remove(String strKey)
strKey
- the keypublic void removeByIdUser(int nUserId)
nUserId
- the id userpublic String getValidationUrl(String strKey, javax.servlet.http.HttpServletRequest request)
strKey
- the keyrequest
- the HTTP requestCopyright © 2018 City of Paris. All rights reserved.