pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.accesscontrol
Class SignUpControllerResult

java.lang.Object
  extended by org.torweg.pulse.component.core.accesscontrol.SignUpControllerResult
All Implemented Interfaces:
JDOMable, Result

public class SignUpControllerResult
extends java.lang.Object
implements Result

the Result of the SignUpController.

Version:
$Revision: 1448 $
Author:
Daniel Dietz

Constructor Summary
SignUpControllerResult()
           
 
Method Summary
 void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
          adds a attribute to the root-container of this result.
 void addError(java.lang.String e)
          adds a new error-identifier to the errors of the result.
 org.jdom.Element deserializeToJDOM()
          returns the result of the SignUpController.
 void setErrors(java.util.Map<java.lang.String,java.lang.String> signUpVs, java.util.Map<java.lang.String,java.lang.String> es)
          sets the values for the result, in case one/multiple sign-up-error/s has/have occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignUpControllerResult

public SignUpControllerResult()
Method Detail

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
returns the result of the SignUpController.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the result of the SignUpController
See Also:
JDOMable.deserializeToJDOM()

setErrors

public final void setErrors(java.util.Map<java.lang.String,java.lang.String> signUpVs,
                            java.util.Map<java.lang.String,java.lang.String> es)
sets the values for the result, in case one/multiple sign-up-error/s has/have occurred.

Parameters:
signUpVs - a map of the current values
es - a map of the current errors

addError

public final void addError(java.lang.String e)
adds a new error-identifier to the errors of the result.

Parameters:
e - the error-identifier

addAttribute

public final void addAttribute(java.lang.String attributeName,
                               java.lang.String attributeValue)
adds a attribute to the root-container of this result.

Parameters:
attributeName - the name of the attribute
attributeValue - the value of the attribute