com.pow2.acl.dbforms.interceptors
Class PermissionInterceptor

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

public class PermissionInterceptor
extends com.pow2.dbforms.Interceptor

DbForm interceptor (hook up class) for ACL Group table.


Field Summary
 
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
PermissionInterceptor()
           
 
Method Summary
 int preDelete(HttpServletRequest request, Hashtable fieldValues, org.dbforms.DbFormsConfig config, Connection con)
          Delete all the permission related records from ACL_ROLE_PERMISSION table.
 int preInsert(HttpServletRequest request, Hashtable fieldValues, org.dbforms.DbFormsConfig config, Connection con)
          Calculate and set a new key for the new Permission entry.
 
Methods inherited from class com.pow2.dbforms.Interceptor
delete, getNewKey
 
Methods inherited from class org.dbforms.event.DbEventInterceptorSupport
postDelete, postInsert, postSelect, postUpdate, preSelect, preUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionInterceptor

public PermissionInterceptor()
Method Detail

preDelete

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

Throws:
org.dbforms.event.ValidationException

preInsert

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

Throws:
org.dbforms.event.ValidationException


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