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 SignUpController

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.accesscontrol.SignUpController
All Implemented Interfaces:
DeprecatedConfigurable

public class SignUpController
extends Controller
implements DeprecatedConfigurable

TODO: refactor to this to NotLoggedInUserSelfEditor performs the sign-up-process.

Version:
$Revision: 2055 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
SignUpController()
           
 
Method Summary
protected static java.util.Map<java.lang.String,java.lang.String> emailCheck(java.util.Map<java.lang.String,java.lang.String> signUpValues)
          checks email for validity.
 void init(ConfigBean c)
          initializes this Controller with a given ConfigBean.
protected static java.util.Map<java.lang.String,java.lang.String> performPreliminaryUserChecks(java.util.Map<java.lang.String,java.lang.String> valuesMap, org.hibernate.Session s, boolean externalCall)
          checks values (name/email) against PreliminaryUsers if in passed map.
protected static java.util.Map<java.lang.String,java.lang.String> performUserChecks(java.util.Map<java.lang.String,java.lang.String> valuesMap, org.hibernate.Session s)
          checks values (name/email) against Users if in passed map.
 SignUpControllerResult resetPassword(Bundle bundle, ServiceRequest request)
          produces the reset-password screen.
 SignUpControllerResult signUp(Bundle bundle, ServiceRequest request)
          starts the sign-up-process.
 SignUpControllerResult signUpActivate(Bundle bundle, ServiceRequest request)
          starts the sign-up-process.
 SignUpControllerResult signUpResetPassword(Bundle bundle, ServiceRequest request)
          starts the reset-password-process.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignUpController

public SignUpController()
Method Detail

signUp

@Action(value="signUp", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="signUp")
public final SignUpControllerResult signUp(Bundle bundle, ServiceRequest request)
starts the sign-up-process.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to initialize the sign-up-process

performPreliminaryUserChecks

protected static final java.util.Map<java.lang.String,java.lang.String> performPreliminaryUserChecks(java.util.Map<java.lang.String,java.lang.String> valuesMap,
                                                                                                     org.hibernate.Session s,
                                                                                                     boolean externalCall)
checks values (name/email) against PreliminaryUsers if in passed map.

Parameters:
valuesMap - the received values
s - the current session
externalCall - a boolean indicating call from different controller/class
Returns:
an error-Map&lt;String, String&gt;

performUserChecks

protected static final java.util.Map<java.lang.String,java.lang.String> performUserChecks(java.util.Map<java.lang.String,java.lang.String> valuesMap,
                                                                                          org.hibernate.Session s)
checks values (name/email) against Users if in passed map.

Parameters:
valuesMap - the received values
s - the current session
Returns:
an error-Map&lt;String, String&gt;

emailCheck

protected static final java.util.Map<java.lang.String,java.lang.String> emailCheck(java.util.Map<java.lang.String,java.lang.String> signUpValues)
checks email for validity.

Parameters:
signUpValues - the current sign-up-values
Returns:
an error-Map&lt;String, String&gt;

signUpActivate

@Action(value="signUpActivate", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="signUp")
public final SignUpControllerResult signUpActivate(Bundle bundle, ServiceRequest request)
starts the sign-up-process.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to initialize the sign-up-process

signUpResetPassword

@Action(value="signUpResetPassword", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="resetPassword")
public final SignUpControllerResult signUpResetPassword(Bundle bundle, ServiceRequest request)
starts the reset-password-process.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to initialize the reset-password-process

resetPassword

@Action(value="resetPassword", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="resetPassword")
public final SignUpControllerResult resetPassword(Bundle bundle, ServiceRequest request)
produces the reset-password screen.

Parameters:
bundle - the bundle
request - the current request
Returns:
the result to produce the reset-password screen

init

public void init(ConfigBean c)
initializes this Controller with a given ConfigBean.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the ConfigBean