Class DatabaseUserKeyService
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.service.key.DatabaseUserKeyService
DatabaseUserKeyService
-
Method Summary
Modifier and TypeMethodDescriptioncreate(int nUserId) Create a new user key from a given user idfindByPrimaryKey(String strKey) Find the keyfindKeyByLogin(String strLogin) Get a key of a user by his logingetReinitUrl(String strKey, javax.servlet.http.HttpServletRequest request) Get reinit urlstatic DatabaseUserKeyServiceGet the instance of the servicegetValidationUrl(String strKey, javax.servlet.http.HttpServletRequest request) Build the validation urlvoidRemove a keyvoidremoveByIdUser(int nUserId) Remove a key from a given id user
-
Method Details
-
getService
Get the instance of the service- Returns:
- the instance of the service
-
create
Create a new user key from a given user id- Parameters:
nUserId- the id user- Returns:
- the key
-
findByPrimaryKey
Find the key- Parameters:
strKey- the key- Returns:
- the key
-
findKeyByLogin
Get a key of a user by his login- Parameters:
strLogin- The login of the user- Returns:
- A key associated to the user
-
remove
Remove a key- Parameters:
strKey- the key
-
removeByIdUser
public void removeByIdUser(int nUserId) Remove a key from a given id user- Parameters:
nUserId- the id user
-
getValidationUrl
Build the validation url- Parameters:
strKey- the keyrequest- the HTTP request- Returns:
- the validation url
-
getReinitUrl
Get reinit url- Parameters:
strKey- the keyrequest- the HTTP request- Returns:
- the url
-