com.uwyn.rife.authentication.remembermanagers
Class DatabaseRemember

java.lang.Object
  extended by com.uwyn.rife.database.DbQueryManager
      extended by com.uwyn.rife.authentication.remembermanagers.DatabaseRemember
All Implemented Interfaces:
RememberManager, Cloneable

public abstract class DatabaseRemember
extends DbQueryManager
implements RememberManager


Constructor Summary
protected DatabaseRemember(Datasource datasource)
           
 
Method Summary
protected  String _createRememberId(Insert createRememberId, long userId, String hostIp)
           
protected  void _eraseAllRememberIds(Delete eraseAllRememberIds)
           
protected  boolean _eraseRememberId(Delete eraseRememberId, String rememberId)
           
protected  boolean _eraseUserRememberIds(Delete eraseUserRememberIds, long userId)
           
protected  long _getRememberedUserId(Select getRememberedUserId, String rememberId)
           
protected  boolean _install(CreateTable createRemember, String createRememberMomentIndex)
           
protected  void _purgeRememberIds(Delete purgeRememberIds)
           
protected  boolean _remove(DropTable removeRemember, String removeRememberMomentIndex)
           
 long getRememberDuration()
          Obtains the maximum time that a remember ID can be used before it becomes invalid.
abstract  boolean install()
           
abstract  boolean remove()
           
 void setRememberDuration(long milliseconds)
          Sets the maximum time that a remember ID can be used before it becomes invalid.
 
Methods inherited from class com.uwyn.rife.database.DbQueryManager
clone, executeFetchAll, executeFetchAll, executeFetchAllBeans, executeFetchAllBeans, executeFetchFirst, executeFetchFirst, executeFetchFirstBean, executeFetchFirstBean, executeGetFirstBoolean, executeGetFirstBoolean, executeGetFirstByte, executeGetFirstByte, executeGetFirstBytes, executeGetFirstBytes, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDouble, executeGetFirstDouble, executeGetFirstFloat, executeGetFirstFloat, executeGetFirstInt, executeGetFirstInt, executeGetFirstLong, executeGetFirstLong, executeGetFirstShort, executeGetFirstShort, executeGetFirstString, executeGetFirstString, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeHasResultRows, executeHasResultRows, executeQuery, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUseFirstAsciiStream, executeUseFirstAsciiStream, executeUseFirstBinaryStream, executeUseFirstBinaryStream, executeUseFirstCharacterStream, executeUseFirstCharacterStream, fetch, fetch, fetchAll, getConnection, getDatasource, inTransaction, reserveConnection
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.uwyn.rife.authentication.RememberManager
createRememberId, eraseAllRememberIds, eraseRememberId, eraseUserRememberIds, getRememberedUserId, purgeRememberIds
 

Constructor Detail

DatabaseRemember

protected DatabaseRemember(Datasource datasource)
Method Detail

getRememberDuration

public long getRememberDuration()
Description copied from interface: RememberManager
Obtains the maximum time that a remember ID can be used before it becomes invalid.

Specified by:
getRememberDuration in interface RememberManager
Returns:
The maximum lifetime in milliseconds.

setRememberDuration

public void setRememberDuration(long milliseconds)
Description copied from interface: RememberManager
Sets the maximum time that a remember ID can be used before it becomes invalid.

Specified by:
setRememberDuration in interface RememberManager
Parameters:
milliseconds - The lifetime in milliseconds.

install

public abstract boolean install()
                         throws RememberManagerException
Throws:
RememberManagerException

remove

public abstract boolean remove()
                        throws RememberManagerException
Throws:
RememberManagerException

_install

protected boolean _install(CreateTable createRemember,
                           String createRememberMomentIndex)

_remove

protected boolean _remove(DropTable removeRemember,
                          String removeRememberMomentIndex)

_createRememberId

protected String _createRememberId(Insert createRememberId,
                                   long userId,
                                   String hostIp)
                            throws RememberManagerException
Throws:
RememberManagerException

_eraseRememberId

protected boolean _eraseRememberId(Delete eraseRememberId,
                                   String rememberId)
                            throws RememberManagerException
Throws:
RememberManagerException

_eraseUserRememberIds

protected boolean _eraseUserRememberIds(Delete eraseUserRememberIds,
                                        long userId)
                                 throws RememberManagerException
Throws:
RememberManagerException

_eraseAllRememberIds

protected void _eraseAllRememberIds(Delete eraseAllRememberIds)
                             throws RememberManagerException
Throws:
RememberManagerException

_getRememberedUserId

protected long _getRememberedUserId(Select getRememberedUserId,
                                    String rememberId)
                             throws RememberManagerException
Throws:
RememberManagerException

_purgeRememberIds

protected void _purgeRememberIds(Delete purgeRememberIds)
                          throws RememberManagerException
Throws:
RememberManagerException


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.