fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key
Class MyluteceDirectoryUserKeyService

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key.MyluteceDirectoryUserKeyService
All Implemented Interfaces:
IMyluteceDirectoryUserKeyService

public class MyluteceDirectoryUserKeyService
extends Object
implements IMyluteceDirectoryUserKeyService

MyluteceDirectoryUserKeyService


Field Summary
static String BEAN_SERVICE
           
 
Constructor Summary
MyluteceDirectoryUserKeyService()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

public static final String BEAN_SERVICE
See Also:
Constant Field Values
Constructor Detail

MyluteceDirectoryUserKeyService

public MyluteceDirectoryUserKeyService()
Method Detail

create

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

Specified by:
create in interface IMyluteceDirectoryUserKeyService
Parameters:
nIdRecord - the id record
Returns:
the key

findByPrimaryKey

public MyluteceDirectoryUserKey findByPrimaryKey(String strKey)
Find the key

Specified by:
findByPrimaryKey in interface IMyluteceDirectoryUserKeyService
Parameters:
strKey - the key
Returns:
the key

findKeyByLogin

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

Specified by:
findKeyByLogin in interface IMyluteceDirectoryUserKeyService
Parameters:
strLogin - The login of the user
Returns:
A key associated to the user

remove

public void remove(String strKey)
Remove a key

Specified by:
remove in interface IMyluteceDirectoryUserKeyService
Parameters:
strKey - the key

removeByIdRecord

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

Specified by:
removeByIdRecord in interface IMyluteceDirectoryUserKeyService
Parameters:
nIdRecord - the id record

getValidationUrl

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

Specified by:
getValidationUrl in interface IMyluteceDirectoryUserKeyService
Parameters:
strKey - the key
request - the HTTP request
Returns:
the validation url

getReinitUrl

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

Specified by:
getReinitUrl in interface IMyluteceDirectoryUserKeyService
Parameters:
strKey - the key
request - the HTTP request
Returns:
the url


Copyright © 2013 Mairie de Paris. All Rights Reserved.