usermemberrule with cache timeout

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC 'waveset.dtd' 'waveset.dtd'>
<Rule authType='userMembersRule' name='myUserMemberRule'>

<Comments>List all persons with LDAP attribute uvaBeCode equal to organization name. Timeout of the list-cache is one hour. We had to hardcode the cache timeout as version 8.0 did not respect the cache timeout in the organization form</Comments>

<block>
<dolist name='object'>
<invoke name='getResourceObjects' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<s>User</s>
<s>LDAP</s>
<map>
<s>searchContext</s>
<s>ou=Medewerkers,o=Universiteit van Amsterdam,c=NL</s>
<s>searchScope</s>
<s>subtree</s>
<s>searchAttrsToGet</s>
<list>
<s>dn</s>
</list>
<s>searchFilter</s>
<concat>
<s>(uvaBeCode=</s>
<ref>userMemberRuleOrganizationDisplayName</ref>
<s>)</s>
</concat>
</map>
<s>true</s>
<s>3600000</s>
<s>false</s>
</invoke>
<concat>
<get>
<ref>object</ref>
<s>dn</s>
</get>
<s>:LDAP</s>
</concat>
</dolist>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#All' name='All'/>
</MemberObjectGroups>
</Rule>

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License