Skip to content

Commit

Permalink
Switch to entity attribute blacklist for test aggregate
Browse files Browse the repository at this point in the history
First phase of ukf/ukf-meta#10.
  • Loading branch information
iay committed Jan 27, 2017
1 parent 15a92cc commit 193c193
Showing 1 changed file with 45 additions and 25 deletions.
70 changes: 45 additions & 25 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,48 @@
</property>
</bean>

<bean id="entityAttributes.blacklist" parent="EntityAttributeFilteringStage">
<property name="whitelisting" value="false"/>
<property name="rules">
<list>
<!-- Deny "InCommon registration" attribute (duplicates mdrpi:registrationAuthority) -->
<bean parent="EntityCategoryMatcher"
c:category="http://id.incommon.org/category/registered-by-incommon"/>

<!-- Deny InCommon "supports InCommon R+S" attribute (duplicates REFEDS variant) -->
<bean parent="EntityCategorySupportMatcher"
c:category="http://id.incommon.org/category/research-and-scholarship"/>
</list>
</property>
</bean>

<bean id="entityAttributes.whitelist" parent="EntityAttributeFilteringStage">
<property name="whitelisting" value="true"/>
<property name="rules">
<list>
<!-- Permit GÉANT CoC category from any eduGAIN participant. -->
<bean parent="EntityCategoryMatcher"
c:category="http://www.geant.net/uri/dataprotection-code-of-conduct/v1"/>

<!-- Permit REFEDS Hide From Discovery category from any eduGAIN participant. -->
<bean parent="EntityCategoryMatcher"
c:category="http://refeds.org/category/hide-from-discovery"/>

<!-- Permit REFEDS R&S category from any eduGAIN participant. -->
<bean parent="EntityCategoryMatcher"
c:category="http://refeds.org/category/research-and-scholarship"/>

<!-- Permit REFEDS R&S category *support* from any eduGAIN participant. -->
<bean parent="EntityCategorySupportMatcher"
c:category="http://refeds.org/category/research-and-scholarship"/>

<!-- Permit SIRTFI entity attribute from any eduGAIN participant -->
<ref bean="SIRTFI.entity.attribute.matcher"/>

</list>
</property>
</bean>

<bean id="uk_int_edugain_importPipeline" parent="SimplePipeline">
<property name="stages">
<list>
Expand All @@ -251,31 +293,7 @@
<!--
Entity Attribute policy for entities from eduGAIN participants.
-->
<bean id="entityAttributes" parent="EntityAttributeFilteringStage">
<property name="rules">
<list>
<!-- Permit GÉANT CoC category from any eduGAIN participant. -->
<bean parent="EntityCategoryMatcher"
c:category="http://www.geant.net/uri/dataprotection-code-of-conduct/v1"/>

<!-- Permit REFEDS Hide From Discovery category from any eduGAIN participant. -->
<bean parent="EntityCategoryMatcher"
c:category="http://refeds.org/category/hide-from-discovery"/>

<!-- Permit REFEDS R&S category from any eduGAIN participant. -->
<bean parent="EntityCategoryMatcher"
c:category="http://refeds.org/category/research-and-scholarship"/>

<!-- Permit REFEDS R&S category *support* from any eduGAIN participant. -->
<bean parent="EntityCategorySupportMatcher"
c:category="http://refeds.org/category/research-and-scholarship"/>

<!-- Permit SIRTFI entity attribute from any eduGAIN participant -->
<ref bean="SIRTFI.entity.attribute.matcher"/>

</list>
</property>
</bean>
<ref bean="entityAttributes.blacklist"/>

<ref bean="importCommonTail"/>
</list>
Expand Down Expand Up @@ -316,6 +334,7 @@
<ref bean="check_dup_display"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="entityAttributes.whitelist"/>
<ref bean="uk_assemble"/>
<ref bean="stripWayfNamespace"/>
<ref bean="fixup_keyuse"/>
Expand Down Expand Up @@ -556,6 +575,7 @@
<ref bean="check_dup_display"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="entityAttributes.whitelist"/>
<ref bean="uk_assemble"/>
<ref bean="stripWayfNamespace"/>
<ref bean="fixup_keyuse"/>
Expand Down

0 comments on commit 193c193

Please sign in to comment.