public class MigrationHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
MigrationHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
importLocations(Document document)
Takes XML like:
|
static int |
importProgramsAndStatuses(List<String> programWorkflow) |
static int |
importRelationships(Collection<String> relationships,
boolean autoCreateUsers,
boolean autoAddRole)
Takes a list of Strings of the format RELATIONSHIP:
|
static int |
importUsers(Document document)
Takes XML like:
|
static Date |
parseDate(String s) |
static Document |
parseXml(String xml) |
public static Date parseDate(String s) throws ParseException
ParseException
public static Document parseXml(String xml) throws ParserConfigurationException
ParserConfigurationException
public static int importUsers(Document document) throws ParseException
ParseException
public static int importLocations(Document document)
public static int importRelationships(Collection<String> relationships, boolean autoCreateUsers, boolean autoAddRole)
public static int importProgramsAndStatuses(List<String> programWorkflow) throws ParseException
ParseException
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.