org.chorem.bow
Class BowUtils

java.lang.Object
  extended by org.chorem.bow.BowUtils

public class BowUtils
extends Object


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 User checkToken(BowSession session, String token)
           
static String generateToken()
           
static String redirectTo(String searchLine, String fullTextLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateToken

public static String generateToken()

redirectTo

public static String redirectTo(String searchLine,
                                String fullTextLine)

checkToken

public static User checkToken(BowSession session,
                              String token)

checkPermanentToken

protected static boolean checkPermanentToken(BowSession session,
                                             String token)
check if token exist, if true, put User associated with it, in BowSession

Parameters:
token - String which contains the MD5 encoding token
Returns:
null the token doesn't exist

checkTemporaryToken

protected static boolean checkTemporaryToken(BowSession session,
                                             String token)
Check token with temporary token

Parameters:
token - String which contains the MD5 encoding token
Returns:
null the token doesn't exist


Copyright © 2010-2011 CodeLutin. All Rights Reserved.