public class ActivityToken
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
STR_CLASS_NAME
The name of the class
|
| Constructor and Description |
|---|
ActivityToken()
The do-nothing zero-argument constructor.
|
ActivityToken(com.ibm.commerce.component.contextservice.ActivityGUID guid,
java.lang.String strSignature)
Constructs an activity token from a given GUID and signature.
|
ActivityToken(java.lang.String str)
Constructs an activity token from a given string representation of an activity token.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkTransient()
Checks whether this token is a transient cloned token.
|
com.ibm.commerce.component.contextservice.ActivityGUID |
getActivityGUID()
Gets this token's activity GUID.
|
int |
getCloneCounter()
Reserved for IBM internal use.
|
java.lang.String |
getSignature()
Gets this token's signature.
|
boolean |
isTemporary()
Checks whether this token is temporary.
|
boolean |
isTemporaryLock()
Checks whether subsequent requests can change this token's temporary status.
|
void |
setActivityGUID(com.ibm.commerce.component.contextservice.ActivityGUID guid)
Sets this token's activity GUID.
|
void |
setCloneCounter(int count)
Reserved for IBM internal use.
|
void |
setSignature(java.lang.String strSignature)
Sets this token's signaure.
|
void |
setTemporary(boolean bool)
Sets whether this token is temporary.
|
void |
setTemporaryLock(boolean bool)
Sets whether subsequent requests can change this token's temporary status.
|
java.lang.String |
toString()
Returns the string representation of this activity token, which is its activity GUID and signature separated
by a colon (":").
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String STR_CLASS_NAME
public ActivityToken()
public ActivityToken(com.ibm.commerce.component.contextservice.ActivityGUID guid,
java.lang.String strSignature)
guid - the activity GUIDstrSignature - hashed signature of the GUIDpublic ActivityToken(java.lang.String str)
str - the string representation of an activity tokentoString()public com.ibm.commerce.component.contextservice.ActivityGUID getActivityGUID()
public java.lang.String getSignature()
public void setActivityGUID(com.ibm.commerce.component.contextservice.ActivityGUID guid)
guid - the GUID valuepublic void setSignature(java.lang.String strSignature)
strSignature - the hashed signature valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setTemporary(boolean bool)
bool - true for temporary; false otherwisepublic boolean isTemporary()
true if the token is temporary; false otherwisesetTemporary(boolean)public void setTemporaryLock(boolean bool)
bool - true if they can't (the status is locked); false otherwisepublic boolean isTemporaryLock()
true if they can't (the status is locked); false otherwisepublic void setCloneCounter(int count)
Sets the clone counter to the specified value.
count - The clone number.public int getCloneCounter()
Returns the number of clones that exist for this activity.
public boolean checkTransient()
true if it is; false otherwise