fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web
Class FormErrors

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.FormErrors

public class FormErrors
extends Object

FormErrors


Constructor Summary
FormErrors()
          Constructor
 
Method Summary
 void addError(String strKey, String strMessage)
          Add error in the list
 void addLastValue(String strKey, Object lastValue)
          Add last value to the map
 Map<String,List<String>> getErrors()
          Get the map errors
 Object getLastValue(String strKey)
          Get the last value from a given key
 Map<String,Object> getLastValues()
          Get the map last values
 boolean hasError()
          Check if there are errors
 boolean hasError(String strKey)
          Check if the given key has error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormErrors

public FormErrors()
Constructor

Method Detail

hasError

public boolean hasError()
Check if there are errors

Returns:
true if there are errors, false otherwise

hasError

public boolean hasError(String strKey)
Check if the given key has error

Parameters:
strKey - the key
Returns:
true if there is an error, false otherwise

addError

public void addError(String strKey,
                     String strMessage)
Add error in the list

Parameters:
strKey - the key
strMessage - the message

addLastValue

public void addLastValue(String strKey,
                         Object lastValue)
Add last value to the map

Parameters:
strKey - the key
lastValue - the last value

getErrors

public Map<String,List<String>> getErrors()
Get the map errors

Returns:
the map errors

getLastValues

public Map<String,Object> getLastValues()
Get the map last values

Returns:
the map last values

getLastValue

public Object getLastValue(String strKey)
Get the last value from a given key

Parameters:
strKey - the key
Returns:
the last value


Copyright © 2014 Mairie de Paris. All Rights Reserved.