public interface GiftRegistryContext extends Context
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_NAME
This is the name of the context that will identify it in the CTXDATA table.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentExternalId()
Returns the current gift registry externalId that this shopper has accessed or managed
|
java.util.Vector |
getExternalIdsAccessed()
Returns a vector of all the gift registry externalId's this user accessed this session
|
java.util.Vector |
getExternalIdsAccessedByRelationship(java.lang.Integer relationship)
Returns a list of gift registry externalId's that this user has accessed or managed recently
for which they have a particular relationship with.
|
java.util.Vector |
getExternalIdsByRegistrantRelationship()
Returns a list of gift registry externalId's that this user has the Registrant or
Co-Registrant relationship with.
|
java.lang.String |
getGiftRegistryBeingManaged()
If
isUserManagingARegistry() is true, it means that a gift registry is being
managed by a shopper. |
java.lang.String |
getLastExternalIdAccessed()
Returns the last gift registry externalId that this shopper has accessed or managed
|
java.lang.Integer |
getRegistryRelationship(java.lang.String externalId)
Returns the relationship of a registrant with regards to a known registry they
accessed.
|
boolean |
isUserManagingARegistry() |
void |
removeAllAccessedExternalIds()
Removes all externalId's from the list of accessed registries for this user
|
java.lang.String |
removeExternalIdAccessed(java.lang.String externalId)
Removes an externalId from the list of accessed registries for this user
|
void |
setExternalIdAccessed(java.lang.String externalId)
Adds to a list of gift registry externalId's this user has accessed.
|
void |
setExternalIdAccessed(java.lang.String externalId,
java.lang.Integer relationship)
Adds to a list of gift registry externalId's this user has accessed.
|
void |
setUserManagingARegistry(boolean managing,
java.lang.String externalId)
Sets if the user is currently managing a particular registry.
|
copyContext, getActivityToken, getContextName, validate
static final java.lang.String COPYRIGHT
static final java.lang.String CONTEXT_NAME
java.util.Vector getExternalIdsAccessed()
java.lang.String getLastExternalIdAccessed()
java.lang.String getCurrentExternalId()
void setExternalIdAccessed(java.lang.String externalId, java.lang.Integer relationship)
the
- external ID of the registry that is to be setrelationship
- the relation of the user to the registryvoid setExternalIdAccessed(java.lang.String externalId)
ExternalId
- the external ID that is to be addedjava.util.Vector getExternalIdsByRegistrantRelationship()
java.util.Vector getExternalIdsAccessedByRelationship(java.lang.Integer relationship)
relationship
- boolean isUserManagingARegistry()
getGiftRegistryBeingManaged()
.void setUserManagingARegistry(boolean managing, java.lang.String externalId)
managing
- true if the user is managing the registry. False otherwise.ExternalId
- the externalId of the registryjava.lang.String getGiftRegistryBeingManaged()
isUserManagingARegistry()
is true, it means that a gift registry is being
managed by a shopper. This method can then be called to retrieve the gift registry
ExternalId that the user is managing.java.lang.Integer getRegistryRelationship(java.lang.String externalId)
getExternalIdsAccessed()
Vector.the
- externalId of the registryjava.lang.String removeExternalIdAccessed(java.lang.String externalId)
the
- externalId that is to be removedvoid removeAllAccessedExternalIds()