|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
com.tootsville.IBCUtil
public class IBCUtil
TODO: The documentation for this type (IBCUtil) is incomplete. (twheys@gmail.com, Sep 23, 2009)
| Field Summary | |
|---|---|
private static String |
AVAILABLE
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) AVAILABLE (IBCUtil) |
private static String |
CANCELED
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) CANCELED (IBCUtil) |
private static String |
FAIL
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) FAIL (IBCUtil) |
private static String |
ORDER_SOURCE_IBC
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) ORDER_SOURCE_IBC (IBCUtil) |
private String |
orderCode
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) orderCode (IBCUtil) |
private static char[] |
orderCodeChars
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) orderCodeChars (IBCUtil) |
private String |
orderSource
Order Source must be one of the following values "avl, cncl, or rdmd" |
private String |
orderStatus
WRITEME |
private int |
productCode
WRITEME |
private static String |
REDEEMED
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) REDEEMED (IBCUtil) |
private int |
redeemedByUserID
WRITEME |
private static long |
serialVersionUID
WRITEME: document this field (twheys@gmail.com, Oct 7, 2009) serialVersionUID (long) |
private static String |
signatureKey
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) signatureKey (IBCUtil) |
private static String |
SUCCESS
WRITEME: document this field (twheys@gmail.com, Nov 3, 2009) SUCCESS (IBCUtil) |
| Constructor Summary | |
|---|---|
|
IBCUtil(ResultSet rs)
|
|
IBCUtil(String productCode2)
|
private |
IBCUtil(String order_source,
String order_code)
|
| Method Summary | |
|---|---|
static void |
cancel(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
WRITEME: document this method (twheys@gmail.com, Sep 25, 2009) |
private static void |
checkSignature(String signature)
Verify the signature parameter as a sha1 and hex code. |
private static void |
displayJSON(org.json.JSONObject json,
javax.servlet.jsp.JspWriter out)
Display the JSONObject created as output. |
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". |
private static String |
generateRandomCode()
WRITEME: document this method (twheys@gmail.com, Sep 29, 2009) |
protected String |
getCacheUniqueID()
This is an overriding method. |
static String |
getEnrolmentTitle(String order_code)
WRITEME: document this method (twheys@gmail.com, Oct 7, 2009) |
String |
getOrderCode()
WRITEME: document this method (twheys@gmail.com, Oct 13, 2009) |
String |
getOrderSource()
WRITEME: document this method (twheys@gmail.com, Oct 13, 2009) |
String |
getOrderStatus()
WRITEME: document this method (twheys@gmail.com, Oct 13, 2009) |
int |
getProductCode()
WRITEME: document this method (twheys@gmail.com, Oct 13, 2009) |
int |
getRedeemedByUserID()
WRITEME: document this method (twheys@gmail.com, Oct 13, 2009) |
static String |
getSignatureKey()
WRITEME: document this method (twheys@gmail.com, Sep 29, 2009) |
static void |
getStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
WRITEME: document this method (twheys@gmail.com, Sep 25, 2009) |
static void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.JspWriter out)
WRITEME: document this method (twheys@gmail.com, Sep 25, 2009) |
void |
insert()
|
static void |
redeemCode(String codeUntrimmed,
AbstractUser sessionUser)
WRITEME: document this method (twheys@gmail.com, Sep 23, 2009) |
protected void |
set(ResultSet rs)
This is an overriding method. |
void |
setOrderStatus(String orderStatus1)
WRITEME: document this method (twheys@gmail.com, Sep 29, 2009) |
void |
setProductCode(int productCode1)
WRITEME: document this method (twheys@gmail.com, Sep 29, 2009) |
void |
setRedeemedByUserID(int redeemedByUserID1)
WRITEME: document this method (twheys@gmail.com, Sep 29, 2009) |
static boolean |
verifyCode(String code)
WRITEME: document this method (twheys@gmail.com, Sep 29, 2009) |
| Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
|---|
changed, compareTo, findInCache, saveInCache, set, toJSON |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String AVAILABLE
private static final String CANCELED
private static final String FAIL
private static final String ORDER_SOURCE_IBC
private static final char[] orderCodeChars
private static final String REDEEMED
private static final long serialVersionUID
private static final String signatureKey
private static final String SUCCESS
private String orderCode
private String orderSource
private String orderStatus
private int productCode
private int redeemedByUserID
| Constructor Detail |
|---|
public IBCUtil(ResultSet rs)
rs - WRITEME
public IBCUtil(String productCode2)
throws DataException
productCode2 - WRITEME
DataException - WRITEME
private IBCUtil(String order_source,
String order_code)
throws NotFoundException
order_source - WRITEMEorder_code - WRITEME
NotFoundException - 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
private static void checkSignature(String signature)
throws DataException
Verify the signature parameter as a sha1 and hex code. Throw DataException if the code is invalid.
signature - is a literal string of a sha1 and hex code used
for security.
DataException - WRITEME
private static void displayJSON(org.json.JSONObject json,
javax.servlet.jsp.JspWriter out)
Display the JSONObject created as output.
BRP: Say what? TODO: explain why anyone would call this?
json - json is the JSON to be displayedout - is the JSPWriter to display json
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
invalidprivate static String generateRandomCode()
public static String getEnrolmentTitle(String order_code)
order_code - WRITEME
public static 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(String codeUntrimmed,
AbstractUser sessionUser)
throws DataException
codeUntrimmed - WRITEMEsessionUser - WRITEME
DataException - WRITEME
public static boolean verifyCode(String code)
throws DataException
code - WRITEME
DataException - WRITEMEpublic void flush()
flush in class SQLPeerDatumSQLPeerDatum.flush()protected String getCacheUniqueID()
getCacheUniqueID in class SQLPeerDatumSQLPeerDatum.getCacheUniqueID()public String getOrderCode()
public String getOrderSource()
public String getOrderStatus()
public int getProductCode()
public int getRedeemedByUserID()
public void insert()
throws SQLException
SQLException - WRITEME
protected void set(ResultSet rs)
throws SQLException
set in class SQLPeerDatumrs - The result of an SQL query, with the cursor already
pointed at the row describing this specific instance
of the object.
SQLException - if the database fails somehowSQLPeerDatum.set(java.sql.ResultSet)public void setOrderStatus(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 | |||||||||