Mark,
<security-constraints><group-rules group="NonDeleted Only"><condition-rule resource="Property" class="Residential"><sql-constraint>status <> 'D'</sql-constraint></condition-rule><condition-rule resource="Property" class="Commercial"><sql-constraint>status <> 'D'</sql-constraint></condition-rule><condition-rule resource="Property" class="Land"><sql-constraint>status <> 'D'</sql-constraint></condition-rule></group-rules><group-rules group="HidePrivateFields"><exclude-rule resource="Property" class="Residential"><system-names>ExpirationDate AgentShowingInstructions</system-names></exclude-rule><exclude-rule resource="Property" class="Commercial"><system-names>ExpirationDate AgentShowingInstructions</system-names></exclude-rule><exclude-rule resource="Property" class="Land"><system-names>ExpirationDate AgentShowingInstructions</system-names></exclude-rule></group-rules></security-constraints>
My guy told me bug as well. It's been many years since I've worked with Java, but I'll dig in and see what I can come up with. Thank you for giving me a place to start looking. I'll post patches for any possible fixes I come up with.
Have a good trip and thanks for you help!
Joe
I need to do a little more testing and update the unit tests, but so far the attached patch appears to fix the problem. Let me know what you think.joe
--
You received this message because you are subscribed to the Google Groups "Variman RETS Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to variman-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<FixTableGroupFilterWithMultipleGroups.diff>
<FixTableGroupFilterWithMultipleGroups_20130415.diff>
Forgot to attach the patch.
On Monday, April 15, 2013 5:26:00 PM UTC-5, Joe wrote:Attached is an updated patch which I believe deals with all cases. I have tested it with both include only, exclude only, and both include and exclude rules. Here is an overview of what I did:
- TableGroupFilter.addRules now retains the MTable that correspond to rule entries in either a include or exclude Map
- TableGroupFilter.findTables collapses the include and exclude maps to a single Set of each based on the groups of interest
- Starting with all MTable entries for the given resource/class
- If there are include rules, perform a set intersection to eliminate fields not explicitly included
- If there are exclude rules, remove all fields in the excluded fields set.
Let me know what you think. I am working on updating the test suite for the hibernate project to fix failing tests and to test these new