ar.soaf.soaf-classification-security-module.1.0.0.source-code.classification-module-config.xml Maven / Gradle / Ivy
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" > <!-- sample ClassificationMongoQueryFilter config the ClassificationMongoQueryFilter will build a mongo query where clause using security attrubutes associated with the document being sought and the user doing the seeking (userdetails) databaseLabel is the security context attribute associated with the document attributeConfig is the classification attribute config which defines the classification attr name in the document and the userdetails --> <bean id="classificationPreQueryFilter" class="mil.navy.spawar.soaf.security.filters.ClassificationMongoQueryFilter" > <property name="databaseLabel" ref="securityContext" /> <property name="attributeConfig" ref="classificationConfig" /> </bean> <!-- sample ClassificationMongoRecordFilter config the ClassificationMongoRecordFilter will examine a mongo query result set (documents) and filter out any entries that do no satisfy the user security attribute (userdetails) databaseLabel is the security context attribute associated with the document attributeConfig is the classification attribute config which defines the classification attr name in the document and the userdetails --> <bean id="classificationPostQueryFilter" class="mil.navy.spawar.soaf.security.filters.ClassificationMongoRecordFilter" > <property name="databaseLabel" ref="securityContext" /> <property name="attributeConfig" ref="classificationConfig" /> </bean> </beans>