public final class GiftRegistryCmdHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
Name of this class
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
GiftRegistryCmdHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String | decrypt(java.lang.String value)
decrypts a given string.
|
static java.lang.String | encrypt(java.lang.String value)
Encrypts a given string.
|
static GiftRegistryItemAccessBean | findItem(GiftRegistryPurchaseRecordVO record)
Finds the gift item that is associated with a purchase record.
|
static GiftRegistryItemAccessBean | findItem(java.lang.Long giftRegistryId, GiftRegistryItemVO item)
Finds the item that exactly matches the given item value object.
|
static GiftRegistryItemAccessBean | findItem(java.lang.Long giftRegistryId, java.lang.String partNumber, java.lang.String partAuxKey, java.util.Collection personalizations)
This method finds an item access bean with the given giftRegistryId, part number, and part auxiliary key.
|
static java.lang.Long | getGiftRegistryId(java.lang.String externalId)
Finds the gift registry id whose externalId is as given.
|
static com.ibm.commerce.component.giftregistry.commands.GenerateGiftRegistrySearchKeyValuesCmd | getGiftRegistrySearchKeyValueGenerator(CommandContext context)
Gets an instance of GenerateGiftRegistrySearchKeyValuesCmd's implementation, and assign the given command context to the command.
|
static boolean | isToAdd(GiftRegistryAddressVO vo, BusinessObjectDocument bod)
Determines if an address value object to be created.
|
static boolean | isToAdd(GiftRegistryPurchaseRecordVO record)
This is a helper method that is called when only the gift registry purchase record value object is available.
|
static boolean | isToAdd(GiftRegistryVO giftRegistry) |
static boolean | isToAdd(GiftRegistryVO giftRegistry, GiftRegistryItemVO item)
This is a helper method that is called when only the gift registry value object and gift item is available.
|
static boolean | isToAdd(java.lang.Long giftRegistryId, GiftRegistryItemVO item)
Determines if a gift item is to be created into the database.
|
static void | updateItemRequestQuantity(CommandContext context, GiftRegistryItemVO item, GiftRegistryItemAccessBean itemAB)
Updates the quantity of an item in database.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public static final void updateItemRequestQuantity(CommandContext context, GiftRegistryItemVO item, GiftRegistryItemAccessBean itemAB) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, ECException
public static final GiftRegistryItemAccessBean findItem(java.lang.Long giftRegistryId, GiftRegistryItemVO item) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public static final GiftRegistryItemAccessBean findItem(java.lang.Long giftRegistryId, java.lang.String partNumber, java.lang.String partAuxKey, java.util.Collection personalizations) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public static final GiftRegistryItemAccessBean findItem(GiftRegistryPurchaseRecordVO record) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public static java.lang.Long getGiftRegistryId(java.lang.String externalId) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public static boolean isToAdd(GiftRegistryAddressVO vo, BusinessObjectDocument bod)
public static boolean isToAdd(GiftRegistryVO giftRegistry) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public static boolean isToAdd(java.lang.Long giftRegistryId, GiftRegistryItemVO item) throws java.rmi.RemoteException, javax.naming.NamingException
public static boolean isToAdd(GiftRegistryVO giftRegistry, GiftRegistryItemVO item) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException
public static boolean isToAdd(GiftRegistryPurchaseRecordVO record) throws java.rmi.RemoteException, javax.naming.NamingException
public static java.lang.String encrypt(java.lang.String value)
public static java.lang.String decrypt(java.lang.String value)
public static com.ibm.commerce.component.giftregistry.commands.GenerateGiftRegistrySearchKeyValuesCmd getGiftRegistrySearchKeyValueGenerator(CommandContext context) throws ECException