public class GiftRegistryUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
The name of this class
|
static java.lang.String | COPYRIGHT
The IBM Copyright notice field.
|
Constructor and Description |
---|
GiftRegistryUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean | addToCollection(java.lang.Object collection, java.lang.Object element)
Adds an element into a collection object.
|
static void | checkConfirmBODAndThrowExceptionOnError(ConfirmBOD confirmBOD, java.lang.String className, java.lang.String methodName)
Inspects a ConfirmBOD and throws an ECApplicationException that the StoreErrorDataBean know how to handle, if the ConfirmBOD fails
|
static java.lang.Object | convertStringToAtomicType(java.lang.String value, java.lang.Class type)
Converts a string to a given atomic type.
|
static BusinessObjectDocument | createBOD(java.lang.Class klass, CommandContext context, Verb verb, BaseVO noun)
Creates a concrete instance of the BusinessObjectDocument.
|
static BusinessObjectDocument | createBOD(java.lang.Class klass, CommandContext context, Verb verb, BaseVO[] nouns)
Creates a concrete instance of the BusinessObjectDocument.
|
static ActivityToken | getActivityToken()
Gets the ActivityToken to be used in a request
|
static java.lang.Class[] | getAtomicTypes() |
static com.ibm.commerce.giftregistry.util.ECEncryptionCmd | getECEncryptionCmd(CommandContext context)
Gets an instance of ECEncryptionCmd's implementation, and assign the given command context to the command.
|
static TypedProperty | getRequestProperties(javax.servlet.http.HttpServletRequest request)
Retrieves the request properties from the given HttpServletRequest object.
|
static java.lang.String | getStackTrace(java.lang.Throwable e)
Converts the stack trace of a throwable instance to a string
|
static VerbPath | getVerbPath(BaseVO aNode, java.lang.String attribute)
Constructs a verb path starting from the leaf
|
static boolean | isAtomicType(java.lang.Class klass)
Determines if a class is one of the types returned by getAtomicTypes().
|
static boolean | isCollection(java.lang.Object value)
Determines if a given object is a collection.
|
static boolean | isEmpty(java.util.Collection c)
Determines if a given collection is empty.
|
static java.lang.String | join(java.lang.String[] strings)
Joins a list of strings into one string.
|
static java.lang.String | makeParameterName(java.lang.String name, java.lang.Integer index)
Constructs an HTTP request parameter name based on given name and index.
|
static java.util.Map | resolveValues(java.lang.String name, TypedProperty aRequestProperty, boolean isArray)
A wrapper for ResolveParameter.resolveValues.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public static java.util.Map resolveValues(java.lang.String name, TypedProperty aRequestProperty, boolean isArray)
public static VerbPath getVerbPath(BaseVO aNode, java.lang.String attribute)
public static BusinessObjectDocument createBOD(java.lang.Class klass, CommandContext context, Verb verb, BaseVO[] nouns) throws ECException
public static BusinessObjectDocument createBOD(java.lang.Class klass, CommandContext context, Verb verb, BaseVO noun) throws ECException
public static ActivityToken getActivityToken()
public static boolean isEmpty(java.util.Collection c)
public static boolean isCollection(java.lang.Object value)
public static java.lang.String join(java.lang.String[] strings)
public static boolean addToCollection(java.lang.Object collection, java.lang.Object element)
public static boolean isAtomicType(java.lang.Class klass)
public static java.lang.Class[] getAtomicTypes()
public static java.lang.Object convertStringToAtomicType(java.lang.String value, java.lang.Class type)
public static void checkConfirmBODAndThrowExceptionOnError(ConfirmBOD confirmBOD, java.lang.String className, java.lang.String methodName) throws ECApplicationException
public static com.ibm.commerce.giftregistry.util.ECEncryptionCmd getECEncryptionCmd(CommandContext context) throws ECException
public static java.lang.String makeParameterName(java.lang.String name, java.lang.Integer index)
public static java.lang.String getStackTrace(java.lang.Throwable e)
public static TypedProperty getRequestProperties(javax.servlet.http.HttpServletRequest request)