org.sakaiproject.profile2.conversion
Class ProfileConverter

java.lang.Object
  extended by org.sakaiproject.profile2.conversion.ProfileConverter

public class ProfileConverter
extends Object

Handles the conversion and import of profiles and images. This is not part of the public API.

Author:
Steve Swinsburg (steve.swinsburg@gmail.com)

Constructor Summary
ProfileConverter()
           
 
Method Summary
 void convertProfileImages()
          Convert profile images
 void importProfiles(String path)
          Import profiles from the given CSV file
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileConverter

public ProfileConverter()
Method Detail

init

public void init()

convertProfileImages

public void convertProfileImages()
Convert profile images


importProfiles

public void importProfiles(String path)
Import profiles from the given CSV file

The CSV file may contain any of the following headings, in any order:

Column headings must match EXACTLY the list above. They do not need to be in the same order, or even all present.

Fields must be comma separated and each field surrounded with double quotes. There must be no spaces between fields.

Only users that do not currently have a profile will be imported.

Parameters:
path - path to CSV file on the server


Copyright © 2008-2013 The Sakai Foundation. All Rights Reserved.