public class ASNImport extends Importer
| Constructor and Description |
|---|
ASNImport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
analyzeFile(Object file,
org.stjs.javascript.functions.Callback1<Object> success,
org.stjs.javascript.functions.Callback1<Object> failure)
Analyzes an ASN File for competencies and relationships.
|
static void |
importCompetencies(String serverUrl,
org.cassproject.ebac.identity.EcIdentity owner,
boolean createFramework,
org.stjs.javascript.functions.Callback2<org.stjs.javascript.Array<EcCompetency>,EcFramework> success,
org.stjs.javascript.functions.Callback1<Object> failure,
org.stjs.javascript.functions.Callback1<Object> incremental,
org.cassproject.ebac.repository.EcRepository repo)
Method to import the competencies from an ASN JSON file,
should be called after analyzing the file
|
public static void analyzeFile(Object file, org.stjs.javascript.functions.Callback1<Object> success, org.stjs.javascript.functions.Callback1<Object> failure)
This should be called before import, the success callback returns an object indicating the number of competencies and relationships found.
{Object} - file
ASN JSON file{Callback1 - success
Callback triggered on successful analysis of file{Callback1 - [failure]
Callback triggered if there is an error during analysis of the filepublic static void importCompetencies(String serverUrl, org.cassproject.ebac.identity.EcIdentity owner, boolean createFramework, org.stjs.javascript.functions.Callback2<org.stjs.javascript.Array<EcCompetency>,EcFramework> 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 competencies to be imported{EcIdentity} - owner
EcIdentity that will own the new competencies{boolean} - createFramework
Flag to create a framework and include the competencies and relationships created{Callback2, - EcFramework>} success
Callback triggered after the competencies (and framework?) are created{Callback1 - failure
Callback triggered if an error occurs while creating the competencies{Callback1 - [incremental]
Callback triggered incrementally during the creation of competencies to indicate progress,
returns an object indicating the number of competencies (and relationships?) created so farCopyright © 2019 Eduworks Corporation. All rights reserved.