Nowadays my attribute configuration is this one:

        <bean id="applicationAttributeRepository"
                
class="org.jasig.services.persondir.support.jdbc.MultiRowJdbcPersonAttributeDao">
                <constructor-arg index="0" ref="attributesDataSource" />        
        
                <constructor-arg index="1" value="select login, 
application_attribute.name as attribute_name, value from user 
                left outer join user_application_attribute on (user.login = 
user_application_attribute.user_login)
                inner join application_attribute on 
(user_application_attribute.application_attribute_id = application_attribute.id)
                inner join attribute_type on 
(application_attribute.attribute_type_id = attribute_type.id) 
                WHERE {0}" />
                <property name="nameValueColumnMappings">
                        <map>
                                <entry key="attribute_name" value="value" />    
                        
                        </map>
                </property>
                <property name="queryAttributeMapping">
                        <map>
                                <entry key="username" value="login" />
                        </map>
                </property>             
        </bean



As you might notice, queryattibute mapping is this one:

<property name="queryAttributeMapping">
                        <map>
                                <entry key="username" value="login" />
                        </map>
                </property>


As far as I know, the seed map only has username key/value pair. Is there any 
way I can pass another values to be used in the query as parameters? I want to 
add service as parameter in the query.

Thank you


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to