|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.sql.SQLPeerDatum
com.tootsville.IBCUtil
public class IBCUtil
TODO: The documentation for this type (IBCUtil) is incomplete. (theys, Sep 23, 2009)
| Constructor Summary | |
|---|---|
IBCUtil(java.sql.ResultSet rs)
|
|
IBCUtil(java.lang.String productCode2)
|
|
| Method Summary | |
|---|---|
static void |
cancel(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
TODO: document this method (theys, Sep 25, 2009) |
void |
flush()
This is an overriding method. |
static void |
generate(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
This method should be called when the 'command' parameter is "generate". |
static java.lang.String |
getEnrolmentTitle(java.lang.String order_code)
TODO: document this method (theys, Oct 7, 2009) |
java.lang.String |
getOrderCode()
TODO: document this method (theys, Oct 13, 2009) |
java.lang.String |
getOrderSource()
TODO: document this method (theys, Oct 13, 2009) |
java.lang.String |
getOrderStatus()
TODO: document this method (theys, Oct 13, 2009) |
int |
getProductCode()
TODO: document this method (theys, Oct 13, 2009) |
int |
getRedeemedByUserID()
TODO: document this method (theys, Oct 13, 2009) |
static java.lang.String |
getSignatureKey()
TODO: document this method (theys, Sep 29, 2009) |
static void |
getStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
TODO: document this method (theys, Sep 25, 2009) |
static void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
TODO: document this method (theys, Sep 25, 2009) |
void |
insert()
|
static void |
redeemCode(java.lang.String codeUntrimmed,
User user)
TODO: document this method (theys, Sep 23, 2009) |
void |
setOrderStatus(java.lang.String orderStatus1)
TODO: document this method (theys, Sep 29, 2009) |
void |
setProductCode(int productCode1)
TODO: document this method (theys, Sep 29, 2009) |
void |
setRedeemedByUserID(int redeemedByUserID1)
TODO: document this method (theys, Sep 29, 2009) |
static boolean |
verifyCode(java.lang.String code)
TODO: document this method (theys, Sep 29, 2009) |
| Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
|---|
changed, get, prepare, set, toJSON |
| Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder |
|---|
deref, setRef |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IBCUtil(java.sql.ResultSet rs)
rs - WRITEME
public IBCUtil(java.lang.String productCode2)
throws DataException
productCode2 - WRITEME
DataException - WRITEME| Method Detail |
|---|
public static void cancel(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
request - request allows method to retrieve dataout - out allows method to display results
public static void generate(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
throws DataException
This method should be called when the 'command' parameter is "generate". This will create a JSON object with the keys result, error, orderSource, orderCode, and productCode and display the JSONObject as a string thru the JSPWriter object.
The parameters in the request object should be productCode and signature. productCode is a literal String that must equal "monthly", "trimonthly", "semiannual", or "annual". Signature is a literal string of a sha1 and hex code used for security.
request - request allows method to retrieve dataout - allows method to display results
DataException - if the parameters in the request object are
invalidpublic static java.lang.String getEnrolmentTitle(java.lang.String order_code)
order_code - WRITEME
public static java.lang.String getSignatureKey()
public static void getStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
request - request allows method to retrieve dataout - out allows method to display results
public static void handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
request - WRITEMEout - WRITEME
public static void redeemCode(java.lang.String codeUntrimmed,
User user)
throws DataException
codeUntrimmed - WRITEMEuser - WRITEME
DataException - WRITEME
public static boolean verifyCode(java.lang.String code)
throws DataException
code - WRITEME
DataException - WRITEMEpublic void flush()
flush in class SQLPeerDatumSQLPeerDatum.flush()public java.lang.String getOrderCode()
public java.lang.String getOrderSource()
public java.lang.String getOrderStatus()
public int getProductCode()
public int getRedeemedByUserID()
public void insert()
throws java.sql.SQLException
java.sql.SQLException - WRITEMEpublic void setOrderStatus(java.lang.String orderStatus1)
orderStatus1 - WRITEMEpublic void setProductCode(int productCode1)
productCode1 - WRITEMEpublic void setRedeemedByUserID(int redeemedByUserID1)
redeemedByUserID1 - WRITEME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||