com.vbs.views
Class UserView

java.lang.Object
  |
  +--com.vbs.views.UserView
All Implemented Interfaces:
java.io.Serializable

public class UserView
extends java.lang.Object
implements java.io.Serializable

UserRegistrationVO wrapper for use in UIs

Author:
Mike Whitfield
See Also:
Serialized Form

Field Summary
static java.lang.String KEY
           
 
Constructor Summary
UserView()
           
UserView(com.vbs.vos.UserRegistrationVO vo)
           
 
Method Summary
 java.lang.String getEmail()
           
 java.lang.String getFullName()
           
 boolean getIsCustomer()
           
 boolean getIsSupplier()
           
 com.vbs.vos.UserRegistrationVO getValueObject()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
Constructor Detail

UserView

public UserView()

UserView

public UserView(com.vbs.vos.UserRegistrationVO vo)
Method Detail

getFullName

public java.lang.String getFullName()
Returns:
Concatenation of first name and last name, separated by a space.

getEmail

public java.lang.String getEmail()

getIsCustomer

public boolean getIsCustomer()
Returns:
True if the underlying registration has a CUSTOMER role

getIsSupplier

public boolean getIsSupplier()
Returns:
True if the underlying registration has a SUPPLIER role

getValueObject

public com.vbs.vos.UserRegistrationVO getValueObject()
Returns:
The underlying com.vbs.vos.UserRegistrationVO