org.benow.web.security
Class JoinHandler

java.lang.Object
  extended by org.benow.web.security.JoinHandler
Direct Known Subclasses:
EmailConfirmJoinHandler

public abstract class JoinHandler
extends java.lang.Object

JoinHandlers are called after a user is added to the system via SecurityWebService.addUser. The join handler implements behaviour for joining.

Author:
andy

Field Summary
protected  org.benow.repository.security.UserImpl user
           
 
Constructor Summary
JoinHandler(org.benow.repository.security.UserImpl user)
           
 
Method Summary
protected abstract  java.lang.String doJoin()
          Performed on join of user
 void onJoin()
          Called on join of a user, calls doJoin and sets the message as the session message, if not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

protected org.benow.repository.security.UserImpl user
Constructor Detail

JoinHandler

public JoinHandler(org.benow.repository.security.UserImpl user)
Method Detail

onJoin

public void onJoin()
            throws RedirectException,
                   java.lang.Exception
Called on join of a user, calls doJoin and sets the message as the session message, if not null.

Throws:
RedirectException - if a redirect is requested
java.lang.Exception - on error

doJoin

protected abstract java.lang.String doJoin()
                                    throws RedirectException,
                                           java.lang.Exception
Performed on join of user

Returns:
message to show to user, if any
Throws:
RedirectException - if a redirect is requested
java.lang.Exception - on error