com.pow2.acl.dbforms.interceptors
Class UserInterceptor

java.lang.Object
  extended byorg.dbforms.event.DbEventInterceptorSupport
      extended bycom.pow2.dbforms.Interceptor
          extended bycom.pow2.acl.dbforms.interceptors.UserInterceptor
All Implemented Interfaces:
org.dbforms.event.DbEventInterceptor

public class UserInterceptor
extends com.pow2.dbforms.Interceptor

DbForm interceptor (hook up class) for User table.

Author:
Luca Fossato

Field Summary
protected static String KEY_USERINTERCEPTOR_NEWKEY
          key for the session entry that holds the new user table key
 
Fields inherited from class com.pow2.dbforms.Interceptor
cat
 
Fields inherited from interface org.dbforms.event.DbEventInterceptor
DENY_OPERATION, GRANT_OPERATION, POST_DELETE, POST_INSERT, POST_SELECT, POST_UPDATE, PRE_DELETE, PRE_INSERT, PRE_SELECT, PRE_UPDATE
 
Constructor Summary
UserInterceptor()
           
 
Method Summary
 void postInsert(HttpServletRequest request, org.dbforms.DbFormsConfig config, Connection con)
          Remove the user key session attribute previously added by preInsert().
 int preDelete(HttpServletRequest request, Hashtable fieldValues, org.dbforms.DbFormsConfig config, Connection con)
          Delete all the related records from ACL_USER_GROUP_ROLE table;
 int preInsert(HttpServletRequest request, Hashtable fieldValues, org.dbforms.DbFormsConfig config, Connection con)
          Get a new key for the new User entry.
 
Methods inherited from class com.pow2.dbforms.Interceptor
delete, getNewKey
 
Methods inherited from class org.dbforms.event.DbEventInterceptorSupport
postDelete, postSelect, postUpdate, preSelect, preUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_USERINTERCEPTOR_NEWKEY

protected static final String KEY_USERINTERCEPTOR_NEWKEY
key for the session entry that holds the new user table key

See Also:
Constant Field Values
Constructor Detail

UserInterceptor

public UserInterceptor()
Method Detail

postInsert

public void postInsert(HttpServletRequest request,
                       org.dbforms.DbFormsConfig config,
                       Connection con)
Remove the user key session attribute previously added by preInsert().

Parameters:
request - Description of the Parameter
config - Description of the Parameter
con - Description of the Parameter

preDelete

public int preDelete(HttpServletRequest request,
                     Hashtable fieldValues,
                     org.dbforms.DbFormsConfig config,
                     Connection con)
              throws org.dbforms.event.ValidationException
Delete all the related records from ACL_USER_GROUP_ROLE table;

Parameters:
request - Description of the Parameter
fieldValues - Description of the Parameter
config - Description of the Parameter
con - Description of the Parameter
Returns:
Description of the Return Value
Throws:
org.dbforms.event.ValidationException - Description of the Exception

preInsert

public int preInsert(HttpServletRequest request,
                     Hashtable fieldValues,
                     org.dbforms.DbFormsConfig config,
                     Connection con)
              throws org.dbforms.event.ValidationException
Get a new key for the new User entry.

Parameters:
request - Description of the Parameter
fieldValues - Description of the Parameter
config - Description of the Parameter
con - Description of the Parameter
Returns:
Description of the Return Value
Throws:
org.dbforms.event.ValidationException - Description of the Exception


Copyright © 2002-2003 Power Of Two S.R.L. All Rights Reserved.