public class GiftCenterContextImpl extends AbstractContextImpl implements GiftCenterContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
GiftCenterContextImpl()
Default constructor to create a gift center context.
|
Modifier and Type | Method and Description |
---|---|
void | addToGiftListExtIdAccessed(java.lang.String externalId, java.lang.Integer relationship)
Adds a gift list external identifier value to the list of identifiers for gift lists the user has accessed.
|
void | addToGiftListExtIdAccessedWithCoRegistrantRelationship(java.lang.String externalId)
Adds a gift list external identifier value to the list of identifiers for gift lists the user has accessed with a co-registrant relationship.
|
void | addToGiftListExtIdAccessedWithGiftGiverRelationship(java.lang.String externalId)
Adds a gift list external identifier value to the list of identifiers for gift lists the user has accessed with a gift giver relationship.
|
void | clearContext()
Resets the attributes specific to this context.
|
void | copyContext(Context ctx)
Copies the content of the specified context to this context.
|
java.lang.Object[] | getContextAttributes()
Returns an array of context attributes to be serialized and persisted.
|
java.lang.String | getContextName()
Returns the name of the context that is stored in the CTXDATA table.
|
java.lang.String | getGiftListBeingCompleted()
Returns the unique identifier for the gift list that the user is currently completing.
|
java.util.Vector | getGiftListExtIdsAccessed()
Returns a list of external identifiers for gift lists that the user has accessed with either the gift giver relationship or the co-registrant relationship.
|
java.util.Vector | getGiftListExtIdsByCoRegistrantRelationship()
Returns a list of external identifiers for gift lists that the user has a co-registrant relationship with.
|
java.util.Vector | getGiftListExtIdsByGiftGiverRelationship()
Returns a list of external identifiers for gift lists that the user has a gift giver relationship with.
|
java.lang.Integer | getGiftListRelationship(java.lang.String externalId)
Returns the relationship a user has to a gift list that was accessed.
|
java.util.Vector | getGiftRegistiesOwnedByUser()
Returns a vector of external identifiers for gift registries the user owns, if the user is not a guest or generic user.
|
java.util.Vector | getWishListsOwnedByUser()
Returns a vector of external identifiers for wish lists the user owns, if the user is not a guest or generic user.
|
void | initializeContext(ActivityData initData, Context ctx)
Initializes the context based on the context passed in as the argument by invoking the copyContext method.
|
void | preInvokeContext(ActivityData sessionData)
Performs context-specific tasks before request execution.
|
void | removeAllAccessedGiftListExtIds()
Removes all gift list external identifiers from the list of accessed gift lists for this user.
|
void | removeGiftListExtIdAccessed(java.lang.String externalId)
Removes a gift list external identifier from the list of accessed gift lists for this user.
|
void | setContextAttributes(java.lang.String[] ctxAttrs)
Initializes the context from the specified list of attributes.
|
void | setGiftListBeingCompleted(java.lang.String aGiftListBeingCompleted)
Sets the unique identifier for the gift list that the user is currently completing.
|
java.lang.String | toString()
Returns the string representation of the object.
|
boolean | validate()
Validates the context object.
|
public static final java.lang.String COPYRIGHT
public GiftCenterContextImpl()
public void clearContext()
public void initializeContext(ActivityData initData, Context ctx) throws BusinessContextException
public void copyContext(Context ctx)
public java.lang.Object[] getContextAttributes() throws BusinessContextException
public void preInvokeContext(ActivityData sessionData) throws BusinessContextException
public void setContextAttributes(java.lang.String[] ctxAttrs) throws BusinessContextException
public java.lang.String getContextName()
public boolean validate() throws BusinessContextException
public java.lang.String toString()
public java.util.Vector getGiftListExtIdsAccessed()
public java.util.Vector getGiftListExtIdsByCoRegistrantRelationship()
public java.util.Vector getGiftListExtIdsByGiftGiverRelationship()
public java.lang.Integer getGiftListRelationship(java.lang.String externalId)
public java.lang.String getGiftListBeingCompleted()
public java.util.Vector getGiftRegistiesOwnedByUser()
public java.util.Vector getWishListsOwnedByUser()
public void setGiftListBeingCompleted(java.lang.String aGiftListBeingCompleted)
public void addToGiftListExtIdAccessedWithCoRegistrantRelationship(java.lang.String externalId)
public void addToGiftListExtIdAccessedWithGiftGiverRelationship(java.lang.String externalId)
public void addToGiftListExtIdAccessed(java.lang.String externalId, java.lang.Integer relationship)
public void removeAllAccessedGiftListExtIds()
public void removeGiftListExtIdAccessed(java.lang.String externalId)