org.kuali.rice.kim.config.KIMLdapSpringBeans.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2005-2016 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> <bean id="rice.kim.ldap.import.parameterService" class="org.kuali.rice.core.framework.resourceloader.GlobalResourceLoaderServiceFactoryBean" p:serviceName="parameterService"/> <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource"> <property name="url" value="${rice.ldap.url}" /> <property name="base" value="${rice.ldap.base}" /> <property name="authenticationSource" ref="authenticationSource" /> </bean> <bean id="kimPlatformAwareDao" abstract="true" class="org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb"> <property name="jcdAlias" value="kimDataSource" /> <property name="dbPlatform" ref="dbPlatform" /> </bean> <bean id="authenticationSource" class="org.springframework.ldap.authentication.DefaultValuesAuthenticationSourceDecorator"> <property name="target" ref="springSecurityAuthenticationSource" /> <property name="defaultUser" value="${rice.ldap.username}" /> <property name="defaultPassword" value="${rice.ldap.password}" /> </bean> <bean id="springSecurityAuthenticationSource" class="org.springframework.security.ldap.authentication.SpringSecurityAuthenticationSource" /> <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate"> <constructor-arg ref="contextSource" /> </bean> <!-- //////////////////////////////////////////////////////////////// --> <!-- // Start of Mappings // --> <!-- //////////////////////////////////////////////////////////////// --> <bean id="ContextMapper-EntityAddress" parent="ContextMapper-EntityAddress-parentBean" /> <bean id="ContextMapper-EntityAddress-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityAddressMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-EntityAffiliation" parent="ContextMapper-EntityAffiliation-parentBean" /> <bean id="ContextMapper-EntityAffiliation-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityAffiliationMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-EntityDefault" parent="ContextMapper-EntityDefault-parentBean" /> <bean id="ContextMapper-EntityDefault-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityDefaultMapper" > <property name="constants" ref="kimConstants" /> <property name="affiliationMapper" ref="ContextMapper-EntityAffiliation" /> <property name="defaultNameMapper" ref="ContextMapper-EntityName" /> <property name="employmentMapper" ref="ContextMapper-EntityEmployment" /> <property name="entityTypeContactInfoDefaultMapper" ref="ContextMapper-EntityTypeContactInfoDefault" /> </bean> <bean id="ContextMapper-EntityEmail" parent="ContextMapper-EntityEmail-parentBean" /> <bean id="ContextMapper-EntityEmail-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityEmailMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-EntityEmployment" parent="ContextMapper-EntityEmployment-parentBean" /> <bean id="ContextMapper-EntityEmployment-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityEmploymentMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-EntityTypeContactInfoDefault" parent="ContextMapper-EntityTypeContactInfoDefault-parentBean" /> <bean id="ContextMapper-EntityTypeContactInfoDefault-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityTypeContactInfoDefaultMapper" > <property name="constants" ref="kimConstants" /> <property name="addressMapper" ref="ContextMapper-EntityAddress" /> <property name="phoneMapper" ref="ContextMapper-EntityPhone" /> <property name="emailMapper" ref="ContextMapper-EntityEmail" /> </bean> <bean id="ContextMapper-EntityTypeContactInfo" parent="ContextMapper-EntityTypeContactInfo-parentBean" /> <bean id="ContextMapper-EntityTypeContactInfo-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityTypeContactInfoMapper" > <property name="constants" ref="kimConstants" /> <property name="addressMapper" ref="ContextMapper-EntityAddress" /> <property name="phoneMapper" ref="ContextMapper-EntityPhone" /> <property name="emailMapper" ref="ContextMapper-EntityEmail" /> </bean> <bean id="ContextMapper-Entity" parent="ContextMapper-Entity-parentBean" /> <bean id="ContextMapper-Entity-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityMapper" > <property name="constants" ref="kimConstants" /> <property name="affiliationMapper" ref="ContextMapper-EntityAffiliation" /> <property name="defaultNameMapper" ref="ContextMapper-EntityName" /> <property name="employmentMapper" ref="ContextMapper-EntityEmployment" /> <property name="entityTypeContactInfoMapper" ref="ContextMapper-EntityTypeContactInfo" /> </bean> <bean id="ContextMapper-EntityName" parent="ContextMapper-EntityName-parentBean" /> <bean id="ContextMapper-EntityName-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityNameMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-EntityNamePrincipalName" parent="ContextMapper-EntityNamePrincipalName-parentBean" /> <bean id="ContextMapper-EntityNamePrincipalName-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityNamePrincipalNameMapper" > <property name="constants" ref="kimConstants" /> <property name="defaultNameMapper" ref="ContextMapper-EntityName" /> </bean> <bean id="ContextMapper-EntityPhone" parent="ContextMapper-EntityPhone-parentBean" /> <bean id="ContextMapper-EntityPhone-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityPhoneMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-EntityPrivacyPreferences" parent="ContextMapper-EntityPrivacyPreferences-parentBean" /> <bean id="ContextMapper-EntityPrivacyPreferences-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.EntityPrivacyPreferencesMapper" > <property name="constants" ref="kimConstants" /> </bean> <bean id="ContextMapper-Principal" parent="ContextMapper-Principal-parentBean" /> <bean id="ContextMapper-Principal-parentBean" abstract="true" class="org.kuali.rice.kim.ldap.PrincipalMapper" > <property name="constants" ref="kimConstants" /> <property name="parameterService" ref="rice.kim.ldap.import.parameterService" /> </bean> <!-- //////////////////////////////////////////////////////////////// --> <!-- // End of Mappings // --> <!-- //////////////////////////////////////////////////////////////// --> <bean id="kimConstants" class="org.kuali.rice.kim.util.ConstantsImpl"> <property name="kimLdapIdProperty" value="uaid" /> <property name="kimLdapNameProperty" value="uid" /> <property name="snLdapProperty" value="sn" /> <property name="givenNameLdapProperty" value="givenName" /> <property name="entityIdKimProperty" value="entityId" /> <property name="employeeMailLdapProperty" value="mail" /> <property name="employeePhoneLdapProperty" value="employeePhone" /> <property name="defaultCountryCode" value="1" /> <property name="mappedParameterName" value="KIM_TO_LDAP_FIELD_MAPPINGS" /> <property name="mappedValuesName" value="KIM_TO_LDAP_VALUE_MAPPINGS" /> <property name="parameterNamespaceCode" value="KR-SYS" /> <property name="parameterDetailTypeCode" value="Config" /> <property name="personEntityTypeCode" value="PERSON" /> <property name="employeeIdProperty" value="emplId" /> <property name="departmentLdapProperty" value="employeePrimaryDept" /> <property name="employeeTypeProperty" value="employeeType" /> <property name="employeeStatusProperty" value="employeeStatus" /> <property name="affiliationLdapProperty" value="affiliationProperty" /> <property name="primaryAffiliationLdapProperty" value="eduPersonPrimaryAffiliation" /> <property name="defaultCampusCode" value="MC" /> <property name="defaultChartCode" value="UA" /> <property name="taxExternalIdTypeCode" value="TAX" /> <property name="externalIdProperty" value="externalIdentifiers.externalId" /> <property name="externalIdTypeProperty" value="externalIdentifiers.externalIdentifierTypeCode" /> <property name="affiliationMappings" value="staff=STAFF,faculty=FCLTY,employee=STAFF,student=STDNT,affilate=AFLT"/> <property name="employeeAffiliationCodes" value="STAFF,FCLTY" /> </bean> <bean id="ldapPrincipalDao" class="org.kuali.rice.kim.dao.impl.LdapPrincipalDaoImpl"> <property name="ldapTemplate" ref="ldapTemplate" /> <property name="parameterService" ref="rice.kim.ldap.import.parameterService" /> <property name="kimConstants" ref="kimConstants" /> <property name="contextMappers"> <map> <entry key="Principal" value-ref="ContextMapper-Principal" /> <entry key="EntityAddress" value-ref="ContextMapper-EntityAddress" /> <entry key="EntityAffiliation" value-ref="ContextMapper-EntityAffiliation" /> <entry key="EntityDefault" value-ref="ContextMapper-EntityDefault" /> <entry key="EntityEmail" value-ref="ContextMapper-EntityEmail" /> <entry key="EntityEmploymentInformation" value-ref="ContextMapper-EntityEmployment" /> <entry key="EntityTypeContactInfo" value-ref="ContextMapper-EntityTypeContactInfo" /> <entry key="EntityTypeContactInfoDefault" value-ref="ContextMapper-EntityTypeContactInfoDefault" /> <entry key="Entity" value-ref="ContextMapper-Entity" /> <entry key="EntityName" value-ref="ContextMapper-EntityName" /> <entry key="EntityNamePrincipalName" value-ref="ContextMapper-EntityNamePrincipalName" /> <entry key="EntityPhone" value-ref="ContextMapper-EntityPhone" /> <entry key="EntityPrivacyPreferences" value-ref="ContextMapper-EntityPrivacyPreferences" /> </map> </property> </bean> <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl" p:businessObjectService-ref="rice.kim.import.businessObjectService" p:criteriaLookupService-ref="rice.kim.import.criteriaLookupService"> <property name="principalDao" ref="ldapPrincipalDao" /> </bean> <!-- <bean id="kimUiDocumentService" class="org.kuali.rice.kim.service.impl.LdapUiDocumentServiceImpl" /> --> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy