ERXKeyFilter.Delegate Interface Reference
List of all members.
Detailed Description
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
Member Function Documentation
| void didSkipValueForKey |
( |
Object |
target, |
|
|
Object |
value, |
|
|
String |
key | |
|
) |
| | throws 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 |
- Exceptions:
-
| SecurityException | if someone was naughty |
| void didTakeValueForKey |
( |
Object |
target, |
|
|
Object |
value, |
|
|
String |
key | |
|
) |
| | throws 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 |
- Exceptions:
-
| SecurityException | if someone was naughty |
| void willTakeValueForKey |
( |
Object |
target, |
|
|
Object |
value, |
|
|
String |
key | |
|
) |
| | throws 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 |
- Exceptions:
-
| SecurityException | if you shouldn't be doing this |
The documentation for this interface was generated from the following file:
- /opt/source/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXKeyFilter.java