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
ParseExceptionpublic static Document parseXml(String xml) throws ParserConfigurationException
ParserConfigurationExceptionpublic static int importUsers(Document document) throws ParseException
ParseExceptionpublic 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
ParseExceptionCopyright © 2018 OpenMRS LLC.. All Rights Reserved.