Oracle Personalization
REAPI_RT
v9.0.2

oracle.dmt.op.re.reapi.rt
Class IdentificationData

java.lang.Object
  |
  +--oracle.dmt.op.re.reapi.rt.IdentificationData

public class IdentificationData
extends Object

This class encapsulates the user identification information.

Since:
9.0.0

Method Summary
TypeMethod
static IdentificationData createSessionful(String sessionId)
          Creates a new ID object for a sessionful session.
static IdentificationData createSessionful(String sessionId, Enum.UserType userType)
          Creates a new ID object for a sessionful session.
static IdentificationData createSessionless(String userID)
          Creates a new sessionless session.
static IdentificationData createSessionless(String userID, Enum.UserType userType)
           
 String getAppSessionID()
          Returns the seesion ID given by the host app.
 String getUserID()
          Returns user ID.
 Enum.UserType getUserType()
          Returns the user type, Visitor or Customer, as defined in Enum.UserType.
 boolean validateIDPair()
          Checks if this IdentificationData object contains a valid pair of IDs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserID

public String getUserID()
Returns user ID.

getAppSessionID

public String getAppSessionID()
Returns the seesion ID given by the host app.

getUserType

public Enum.UserType getUserType()
Returns the user type, Visitor or Customer, as defined in Enum.UserType.

createSessionful

public static IdentificationData createSessionful(String sessionId)
                                           throws NullParameterException
Creates a new ID object for a sessionful session.
Parameters:
sessionId - session ID assigned by the host app

createSessionful

public static IdentificationData createSessionful(String sessionId,
                                                  Enum.UserType userType)
                                           throws NullParameterException
Creates a new ID object for a sessionful session.
Parameters:
sessionId - assigned by the host app
userType - Customer or Visitor; see Enum.UserType

createSessionless

public static IdentificationData createSessionless(String userID)
                                            throws NullParameterException
Creates a new sessionless session.
Parameters:
userID -  

createSessionless

public static IdentificationData createSessionless(String userID,
                                                   Enum.UserType userType)
                                            throws NullParameterException

validateIDPair

public boolean validateIDPair()
Checks if this IdentificationData object contains a valid pair of IDs.
Returns:
true if the ID pair is valid, false otherwise

Oracle Personalization
REAPI_RT
v9.0.2