fr.paris.lutece.plugins.mylutece.modules.database.authentication.service.key
Class DatabaseUserKeyService

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.database.authentication.service.key.DatabaseUserKeyService

public final class DatabaseUserKeyService
extends java.lang.Object

DatabaseUserKeyService


Method Summary
 DatabaseUserKey create(int nUserId)
          Create a new user key from a given user id
 DatabaseUserKey findByPrimaryKey(java.lang.String strKey)
          Find the key
 java.lang.String getReinitUrl(java.lang.String strKey, javax.servlet.http.HttpServletRequest request)
          Get reinit url
static DatabaseUserKeyService getService()
          Get the instance of the service
 java.lang.String getValidationUrl(java.lang.String strKey, javax.servlet.http.HttpServletRequest request)
          Build the validation url
 void remove(java.lang.String strKey)
          Remove a key
 void removeByIdUser(int nUserId)
          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
 

Method Detail

getService

public static DatabaseUserKeyService getService()
Get the instance of the service

Returns:
the instance of the service

create

public DatabaseUserKey create(int nUserId)
Create a new user key from a given user id

Parameters:
nUserId - the id user
Returns:
the key

findByPrimaryKey

public DatabaseUserKey findByPrimaryKey(java.lang.String strKey)
Find the key

Parameters:
strKey - the key
Returns:
the key

remove

public void remove(java.lang.String strKey)
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

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

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

getReinitUrl

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

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.