public class MigrationHelper
extends java.lang.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(org.w3c.dom.Document document)
Takes XML like:
|
static int |
importProgramsAndStatuses(java.util.List<java.lang.String> programWorkflow) |
static int |
importRelationships(java.util.Collection<java.lang.String> relationships,
boolean autoCreateUsers,
boolean autoAddRole)
Takes a list of Strings of the format RELATIONSHIP:
|
static int |
importUsers(org.w3c.dom.Document document)
Takes XML like:
|
static java.util.Date |
parseDate(java.lang.String s) |
static org.w3c.dom.Document |
parseXml(java.lang.String xml) |
public static java.util.Date parseDate(java.lang.String s)
throws java.text.ParseException
java.text.ParseExceptionpublic static org.w3c.dom.Document parseXml(java.lang.String xml)
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic static int importUsers(org.w3c.dom.Document document)
throws java.text.ParseException
java.text.ParseExceptionpublic static int importLocations(org.w3c.dom.Document document)
public static int importRelationships(java.util.Collection<java.lang.String> relationships,
boolean autoCreateUsers,
boolean autoAddRole)
public static int importProgramsAndStatuses(java.util.List<java.lang.String> programWorkflow)
throws java.text.ParseException
java.text.ParseExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.