com.ibm.commerce.marketingcenter.externalevent
Class WCSUserInfo

java.lang.Object
  |
  +--com.ibm.commerce.marketingcenter.externalevent.WCSUserInfo

public class WCSUserInfo
extends java.lang.Object

This class captures the information related to a WCS User.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String GENERIC_USER
          The GENERIC_USER type.
static java.lang.String GUEST_USER
          The GUEST_USER type.
static java.lang.String REGISTERED_USER
          The REGISTERED_USER type.
 
Constructor Summary
WCSUserInfo(java.lang.Long userId, java.lang.String userType, java.lang.String sessionTag)
          Constructor for WCSUserInfo.
 
Method Summary
 java.lang.String getUniqueSessionTag()
          Returns the unique session tag.
 java.lang.Long getUserId()
          Returns the user identifier.
 java.lang.String getUserType()
          Returns the user type (one of the predefined Strings).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

GENERIC_USER

public static final java.lang.String GENERIC_USER
The GENERIC_USER type. This user type is sent to the listener.

GUEST_USER

public static final java.lang.String GUEST_USER
The GUEST_USER type. This user type is sent to the listener.

REGISTERED_USER

public static final java.lang.String REGISTERED_USER
The REGISTERED_USER type. This user type is sent to the listener.
Constructor Detail

WCSUserInfo

public WCSUserInfo(java.lang.Long userId,
                   java.lang.String userType,
                   java.lang.String sessionTag)
Constructor for WCSUserInfo.
Parameters:
userId - java.lang.Long The WCS userId.
userType - java.lang.String The type of the user (ie. generic, guest, or registered)
sessionTag - java.lang.String The sessionTag, a unique identifier for guest users.
Method Detail

getUniqueSessionTag

public java.lang.String getUniqueSessionTag()
Returns the unique session tag. This value can be used to uniquely identify non-registered user.
Returns:
java.lang.String

getUserId

public java.lang.Long getUserId()
Returns the user identifier.
Returns:
java.lang.Long

getUserType

public java.lang.String getUserType()
Returns the user type (one of the predefined Strings).
Returns:
java.lang.String