Project Wonder 5.0

er.extensions.eof
Interface ERXKeyFilter.Delegate

Enclosing class:
ERXKeyFilter

public static interface ERXKeyFilter.Delegate

ERXKeyFilter.Delegate defines an interface for receiving notifications when your filter is applied to an object graph. This gives you the opportunity to do some validation and security checks for more complex scenarios.

Author:
mschrag

Method Summary
 void didSkipValueForKey(java.lang.Object target, java.lang.Object value, java.lang.String key)
          Called after skipping a key.
 void didTakeValueForKey(java.lang.Object target, java.lang.Object value, java.lang.String key)
          Called after pushing the given value into obj.key.
 void willTakeValueForKey(java.lang.Object target, java.lang.Object value, java.lang.String key)
          Called prior to pushing the given value into obj.key.
 

Method Detail

willTakeValueForKey

void willTakeValueForKey(java.lang.Object target,
                         java.lang.Object value,
                         java.lang.String key)
                         throws java.lang.SecurityException
Called prior to pushing the given value into obj.key.

Parameters:
target - the target object
value - the value it will be set on
key - the key that will be set
Throws:
java.lang.SecurityException - if you shouldn't be doing this

didTakeValueForKey

void didTakeValueForKey(java.lang.Object target,
                        java.lang.Object value,
                        java.lang.String key)
                        throws java.lang.SecurityException
Called after pushing the given value into obj.key. Most filters will be applied to EO's inside an editing context, and it may be more convenient to do security validation after the fact (before commit) than enforcing it in willTakeValue. This is your chance.

Parameters:
target - the target object
value - the value that was set
key - the key that was set
Throws:
java.lang.SecurityException - if someone was naughty

didSkipValueForKey

void didSkipValueForKey(java.lang.Object target,
                        java.lang.Object value,
                        java.lang.String key)
                        throws java.lang.SecurityException
Called after skipping a key. You could choose to enforce more strict security and throw an exception in this case (rather than a silent skip default behavior).

Parameters:
target - the target object
value - the value that was skipped
key - the key that was skipped
Throws:
java.lang.SecurityException - if someone was naughty

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.