fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key
Interface IMyluteceDirectoryUserKeyService

All Known Implementing Classes:
MyluteceDirectoryUserKeyService

public interface IMyluteceDirectoryUserKeyService

IMyluteceDirectoryUserKeyService


Method Summary
 MyluteceDirectoryUserKey create(int nIdRecord)
          Create a new user key from a given user id
 MyluteceDirectoryUserKey findByPrimaryKey(String strKey)
          Find the key
 MyluteceDirectoryUserKey findKeyByLogin(String strLogin)
          Get a key of a user by his login
 String getReinitUrl(String strKey, javax.servlet.http.HttpServletRequest request)
          Get reinit url
 String getValidationUrl(String strKey, javax.servlet.http.HttpServletRequest request)
          Build the validation url
 void remove(String strKey)
          Remove a key
 void removeByIdRecord(int nIdRecord)
          Remove a key from a given id user
 

Method Detail

create

MyluteceDirectoryUserKey create(int nIdRecord)
Create a new user key from a given user id

Parameters:
nIdRecord - the id record
Returns:
the key

findByPrimaryKey

MyluteceDirectoryUserKey findByPrimaryKey(String strKey)
Find the key

Parameters:
strKey - the key
Returns:
the key

findKeyByLogin

MyluteceDirectoryUserKey findKeyByLogin(String strLogin)
Get a key of a user by his login

Parameters:
strLogin - The login of the user
Returns:
A key associated to the user

remove

void remove(String strKey)
Remove a key

Parameters:
strKey - the key

removeByIdRecord

void removeByIdRecord(int nIdRecord)
Remove a key from a given id user

Parameters:
nIdRecord - the id record

getValidationUrl

String getValidationUrl(String strKey,
                        javax.servlet.http.HttpServletRequest request)
Build the validation url

Parameters:
strKey - the key
request - the HTTP request
Returns:
the validation url

getReinitUrl

String getReinitUrl(String strKey,
                    javax.servlet.http.HttpServletRequest request)
Get reinit url

Parameters:
strKey - the key
request - the HTTP request
Returns:
the url


Copyright © 2013 Mairie de Paris. All Rights Reserved.