|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.bow.BowUtils
public class BowUtils
| Field Summary | |
|---|---|
static String |
BOW_DATE_SHORT_PATTERN
|
| Method Summary | |
|---|---|
protected static boolean |
checkPermanentToken(BowSession session,
String token)
check if token exist, if true, put User associated with it, in BowSession |
protected static boolean |
checkTemporaryToken(BowSession session,
String token)
Check token with temporary token |
static BowUser |
checkToken(BowSession session,
String token)
Retrieves the user by the temporary or the permanent token |
static String |
formatDate(Date date)
|
static String |
generateToken()
Generates a random token |
static String |
redirectTo(String searchLine,
String fullTextLine)
Redirects the user either on the home page or on the search page |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BOW_DATE_SHORT_PATTERN
| Method Detail |
|---|
public static String formatDate(Date date)
public static String generateToken()
public static String redirectTo(String searchLine,
String fullTextLine)
searchLine - search linefullTextLine - full text search
public static BowUser checkToken(BowSession session,
String token)
session - the sessiontoken - either the temporary or the permanent token
protected static boolean checkPermanentToken(BowSession session,
String token)
session - bow sessiontoken - which contains the MD5 encoding token
protected static boolean checkTemporaryToken(BowSession session,
String token)
session - bow sessiontoken - which contains the MD5 encoding token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||