public class MedbiqImport extends Importer
| Constructor and Description |
|---|
MedbiqImport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
analyzeFile(Object file,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success,
org.stjs.javascript.functions.Callback1<String> failure)
Analyzes a Medbiquitous XML file for competencies and saves them for use in the import process
|
static void |
importCompetencies(String serverUrl,
org.cassproject.ebac.identity.EcIdentity owner,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success,
org.stjs.javascript.functions.Callback1<Object> failure,
org.stjs.javascript.functions.Callback1<Object> incremental,
org.cassproject.ebac.repository.EcRepository repo)
Method for actually creating the competencies in the CASS repository after a
Medbiquitous XML file has been parsed.
|
static void |
saveCompetency(org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success,
org.stjs.javascript.functions.Callback1<Object> failure,
org.stjs.javascript.functions.Callback1<Object> incremental,
EcCompetency comp,
org.cassproject.ebac.repository.EcRepository repo) |
public static void analyzeFile(Object file, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success, org.stjs.javascript.functions.Callback1<String> failure)
{Object} - file
Medbiquitous XML file{Callback1>} - success
Callback triggered on succesfully analyzing competencies,
returns an array of all of the competencies found{Callback1} - [failure]
Callback triggered on error analyzing filepublic static void importCompetencies(String serverUrl, org.cassproject.ebac.identity.EcIdentity owner, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success, org.stjs.javascript.functions.Callback1<Object> failure, org.stjs.javascript.functions.Callback1<Object> incremental, org.cassproject.ebac.repository.EcRepository repo)
{String} - serverUrl
URL Prefix for the created competencies (and relationships?){EcIdentity} - owner
EcIdentity that will own the created competencies (and relationships?){Callback1>} - success
Callback triggered after successfully creating the competencies from the XML file{Callback1 - [failure]
Callback triggered if there is an error while creating the competencies{Callback1 - [incremental]
Callback triggered incrementally while the competencies are being created to show progress,
returns an object indicating the number of competencies created so farpublic static void saveCompetency(org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success, org.stjs.javascript.functions.Callback1<Object> failure, org.stjs.javascript.functions.Callback1<Object> incremental, EcCompetency comp, org.cassproject.ebac.repository.EcRepository repo)
Copyright © 2019 Eduworks Corporation. All rights reserved.