fr.paris.lutece.plugins.selfregistration.utils
Class SelfRegistrationUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.selfregistration.utils.SelfRegistrationUtils

public final class SelfRegistrationUtils
extends java.lang.Object

The SelfRegistrationUtils classe


Method Summary
static fr.paris.lutece.util.ReferenceList buildRefList(javax.servlet.http.HttpServletRequest request, java.lang.String strPropertiesItemsNumber, java.lang.String strPropertiesLabel)
          Build a reference list
static boolean checkPassword(java.lang.String strPassword, java.lang.String strConfirmation)
          Check the password with the password confirmation string Check if password is empty
static boolean checkValueOnPattern(java.lang.String strPattern, java.lang.String strValue)
          Check a given string against a given pattern
static java.lang.String getCodeOfLabel(javax.servlet.http.HttpServletRequest request, java.lang.String strPropertiesItemsNumber, java.lang.String strPropertiesLabel, java.lang.String strLabel)
          Get the code of strLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkPassword

public static boolean checkPassword(java.lang.String strPassword,
                                    java.lang.String strConfirmation)
Check the password with the password confirmation string Check if password is empty

Parameters:
strPassword - The password
strConfirmation - The password confirmation
Returns:
true if password is equal to confirmation password and not empty

checkValueOnPattern

public static boolean checkValueOnPattern(java.lang.String strPattern,
                                          java.lang.String strValue)
Check a given string against a given pattern

Parameters:
strPattern - the pattern to match
strValue - the value to check
Returns:
true if pattern matches, false otherwise.

buildRefList

public static fr.paris.lutece.util.ReferenceList buildRefList(javax.servlet.http.HttpServletRequest request,
                                                              java.lang.String strPropertiesItemsNumber,
                                                              java.lang.String strPropertiesLabel)
Build a reference list

Parameters:
request - the request
strPropertiesItemsNumber - the properties item number
strPropertiesLabel - the properties label
Returns:
a reference list

getCodeOfLabel

public static java.lang.String getCodeOfLabel(javax.servlet.http.HttpServletRequest request,
                                              java.lang.String strPropertiesItemsNumber,
                                              java.lang.String strPropertiesLabel,
                                              java.lang.String strLabel)
Get the code of strLabel

Parameters:
request - the request
strPropertiesItemsNumber - the properties item number
strPropertiesLabel - the properties label
strLabel - the label to compare
Returns:
the code corresponding to the strLabel


Copyright © 2008 Mairie de Paris. All Rights Reserved.