br.com.arsmachina.example.web.encoder.activationcontext
Class UserActivationContextEncoder

java.lang.Object
  extended by br.com.arsmachina.example.web.encoder.activationcontext.UserActivationContextEncoder
All Implemented Interfaces:
br.com.arsmachina.tapestrycrud.encoder.ActivationContextEncoder<br.com.arsmachina.authentication.entity.User>

public class UserActivationContextEncoder
extends Object
implements br.com.arsmachina.tapestrycrud.encoder.ActivationContextEncoder<br.com.arsmachina.authentication.entity.User>

An UserActivationContextEncoder implementation that uses the login as the activation context value.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
UserActivationContextEncoder(br.com.arsmachina.authentication.controller.UserController userController)
          Single constructor of this class.
 
Method Summary
 Object toActivationContext(br.com.arsmachina.authentication.entity.User object)
           
 br.com.arsmachina.authentication.entity.User toObject(EventContext eventContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserActivationContextEncoder

public UserActivationContextEncoder(br.com.arsmachina.authentication.controller.UserController userController)
Single constructor of this class.

Parameters:
userController - an UserController. It cannot be null.
Method Detail

toActivationContext

public Object toActivationContext(br.com.arsmachina.authentication.entity.User object)
Specified by:
toActivationContext in interface br.com.arsmachina.tapestrycrud.encoder.ActivationContextEncoder<br.com.arsmachina.authentication.entity.User>

toObject

public br.com.arsmachina.authentication.entity.User toObject(EventContext eventContext)
Specified by:
toObject in interface br.com.arsmachina.tapestrycrud.encoder.ActivationContextEncoder<br.com.arsmachina.authentication.entity.User>


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.