com.ibm.commerce.rfq.utils
Class RFQResProdHelper

java.lang.Object
  |
  +--com.ibm.commerce.rfq.utils.RFQResProdHelper

public class RFQResProdHelper
extends java.lang.Object

The class RFQResProdHelper includes static methods for getting products for an RFQ response ,personzalized attributes and freeform comments for an rfq response product.


Constructor Summary
RFQResProdHelper()
          RFQResProdHelper constructor
 
Method Summary
static boolean checkProdComment(java.lang.String reqTCId, java.lang.String mandatory, java.lang.String changable, java.lang.String value, java.lang.String pattributeId)
          fix to check the product's comment to avoid hackers attack system using fake xml file check the values in xml with the data in database.
static RFQResProdAttributes[] getResAllAttributes(java.lang.String RFQId, java.lang.String RFQResId, java.lang.Long catalogEntryId, java.lang.Integer langId, java.lang.String valueDelimiter)
          Gets the product specifications and comments on an RFQ Response product
static RFQResNewProd[] getResAllProds(java.lang.String RFQId, java.lang.String RFQResId, java.lang.Integer languageId)
          Gets all products related to an RFQ Response.
static RFQResCommentsPair[] getRFQLevelCommentsPair(java.lang.String ReqId, java.lang.String ResId, java.lang.Integer langId)
          Gets the response comments pairs for an RFQ response.
static void outputUnitAndDesc(java.lang.Integer langId)
          Get all the qtUnit and corresponding desc in a specified lang.
Outputs two arrays that contain the unit and desc for the UI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFQResProdHelper

public RFQResProdHelper()
RFQResProdHelper constructor
Method Detail

checkProdComment

public static boolean checkProdComment(java.lang.String reqTCId,
                                       java.lang.String mandatory,
                                       java.lang.String changable,
                                       java.lang.String value,
                                       java.lang.String pattributeId)
fix to check the product's comment to avoid hackers attack system using fake xml file check the values in xml with the data in database. Creation date: (12/19/2001 10:37:42 AM)
Parameters:
reqTCId - java.lang.String
mandatory - java.lang.String
changable - java.lang.String
value - java.lang.String
pattributeId - java.lang.String
Returns:
boolean

getResAllAttributes

public static RFQResProdAttributes[] getResAllAttributes(java.lang.String RFQId,
                                                         java.lang.String RFQResId,
                                                         java.lang.Long catalogEntryId,
                                                         java.lang.Integer langId,
                                                         java.lang.String valueDelimiter)
Gets the product specifications and comments on an RFQ Response product
Returns:
RFQResProdAttributes array if successful or null if any error happen.

getResAllProds

public static RFQResNewProd[] getResAllProds(java.lang.String RFQId,
                                             java.lang.String RFQResId,
                                             java.lang.Integer languageId)
Gets all products related to an RFQ Response. Returns RFQResNewProd array if successfule, or null if any error occurs.

getRFQLevelCommentsPair

public static RFQResCommentsPair[] getRFQLevelCommentsPair(java.lang.String ReqId,
                                                           java.lang.String ResId,
                                                           java.lang.Integer langId)
Gets the response comments pairs for an RFQ response.
Returns:
RFQResCommentsPair array if successful or null if error happen

outputUnitAndDesc

public static void outputUnitAndDesc(java.lang.Integer langId)
Get all the qtUnit and corresponding desc in a specified lang.
Outputs two arrays that contain the unit and desc for the UI.
Parameters:
langId - java.lang.Integer