com.atlassian.crowd.importer.mappers.jdbc
Class UserMapper

java.lang.Object
  extended by com.atlassian.crowd.importer.mappers.jdbc.UserMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper

public class UserMapper
extends Object
implements org.springframework.jdbc.core.RowMapper

Will map a row from a JDBC ResultSet to a User. Populates missing name information as required.

See Also:
UserUtils.populateNames(com.atlassian.crowd.model.user.User)

Constructor Summary
UserMapper(Configuration configuration, PasswordHelper passwordHelper, String name, String email, String fullname, String password)
           
 
Method Summary
 Object mapRow(ResultSet rs, int rowNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserMapper

public UserMapper(Configuration configuration,
                  PasswordHelper passwordHelper,
                  String name,
                  String email,
                  String fullname,
                  String password)
Method Detail

mapRow

public Object mapRow(ResultSet rs,
                     int rowNum)
              throws SQLException
Specified by:
mapRow in interface org.springframework.jdbc.core.RowMapper
Throws:
SQLException


Copyright © 2013 Atlassian. All Rights Reserved.