public class EcFramework extends Framework
| Modifier and Type | Field and Description |
|---|---|
static Object |
template |
competency, level, myType, relation, rollupRuleabout, accessibilityAPI, accessibilityControl, accessibilityFeature, accessibilityHazard, accessibilitySummary, accessMode, accessModeSufficient, accountablePerson, aggregateRating, alternativeHeadline, associatedMedia, audience, audio, author, award, awards, character, citation, comment, commentCount, contentLocation, contentRating, contributor, copyrightHolder, copyrightYear, creator, dateCreated, dateModified, datePublished, discussionUrl, editor, educationalAlignment, educationalUse, encoding, encodings, exampleOfWork, fileFormat, funder, genre, hasPart, headline, inLanguage, interactionStatistic, interactivityType, isAccessibleForFree, isBasedOn, isBasedOnUrl, isFamilyFriendly, isPartOf, keywords, learningResourceType, license, locationCreated, mainEntity, material, mentions, offers, position, producer, provider, publication, publisher, publishingPrinciples, recordedAt, releasedEvent, review, reviews, schemaVersion, sourceOrganization, spatialCoverage, sponsor, temporalCoverage, text, thumbnailUrl, timeRequired, translator, typicalAgeRange, version, video, workExampleadditionalType, alternateName, description, disambiguatingDescription, identifier, image, mainEntityOfPage, name, potentialAction, sameAs, url| Constructor and Description |
|---|
EcFramework() |
| Modifier and Type | Method and Description |
|---|---|
void |
_delete(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Deletes this framework from the server specified by it's ID
|
void |
addCompetency(String id)
Adds the competency ID specified to the frameworks list of competency IDs
|
void |
addLevel(String id)
Adds a level ID to the framework's list of levels
|
void |
addRelation(String id)
Adds a relation ID to the framework's list of relations
|
void |
addRollupRule(String id)
Adds a rollup rule ID to the framework's list of rollup rules
|
void |
asAsnJson(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
String fallbackServerUrl) |
static void |
get(String id,
org.stjs.javascript.functions.Callback1<EcFramework> success,
org.stjs.javascript.functions.Callback1<String> failure)
Retrieves a framework from the server, specified by the ID
|
static EcFramework |
getBlocking(String id)
Retrieves a framework from the server in a blocking fashion, specified by the ID
|
void |
removeCompetency(String id,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Removes a competency ID from the framework's list, also removes any
levels and relations associated with that competency
|
void |
removeLevel(String id)
Removes a level ID from the framework's list of levels
|
void |
removeRelation(String id)
Removes a relation ID from the framework's list of relations
|
void |
removeRollupRule(String id)
Removes a rollup rule ID from the framework's list of rollup rules
|
void |
save(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Saves this frameworks details on the server specified by it's ID
|
static void |
search(EcRepository repo,
String query,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcFramework>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository given for frameworks using the query passed in
|
getDescription, getDisplayStringFrom, getName, setDescription, setNameaddOwner, addReader, asNQuads, asRdfXml, assignId, assignIdAndVersion, asTurtle, canEdit, canEditAny, generateId, generateShortId, getDottedType, getGuid, getSearchStringByType, getServerBaseUrl, getTimestamp, hasOwner, hasReader, invalid, isId, removeOwner, removeReader, shortId, signWith, toSignableJson, trimVersionFromUrl, updateTimestamp, verify, veryShortIdpublic static Object template
public static void get(String id, org.stjs.javascript.functions.Callback1<EcFramework> success, org.stjs.javascript.functions.Callback1<String> failure)
{String} - id
ID of the framework to retrieve{Callback1} - success
Callback triggered after successfully retrieving the framework,
returns the retrieved framework{Callback1} - failure
Callback triggered if an error occurs while retrieving the frameworkpublic static EcFramework getBlocking(String id)
{String} - id
ID of the framework to retrieve{Callback1} - success
Callback triggered after successfully retrieving the framework,
returns the retrieved framework{Callback1} - failure
Callback triggered if an error occurs while retrieving the frameworkpublic static void search(EcRepository repo, String query, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcFramework>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search for frameworks{String} - query
Query string used to search for a framework{Callback1} - success
Callback triggered when the search successfully returns,
returns search results{Callback1} - failure
Callback triggered if an error occurs while searching{Object} - paramObj
Parameter object for searchpublic void addCompetency(String id)
{String} - id
ID of the competency to addpublic void removeCompetency(String id, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
TODO: remove rollup rules? should we add flag to remove these extras
{String} - id
ID of the competency to remove{Callback1} - success
Callback triggered after succesfully removing the competency and levels and relationships{Callback1} - failure
Callback triggered if error occurs when removing competency and levels and relationshipspublic void addRelation(String id)
{String} - id
ID to add to the framework's relation listpublic void removeRelation(String id)
{String} - id
ID to remove from the framework's relation listpublic void addLevel(String id)
{String} - id
ID of the level to add to framework's listpublic void removeLevel(String id)
{String} - id
ID to remove from framework's level listpublic void addRollupRule(String id)
{String} - id
ID of the rollup rule to addpublic void removeRollupRule(String id)
{String} - id
ID to remove from rollup rule listpublic void save(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure, EcRepository repo)
{Callback1} - success
Callback triggered after successfully saving the framework{Callback1} - failure
Callback triggered if error occurs while saving the frameworkpublic void _delete(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{Callback1} - success
Callback triggered if successfully deleted framework{Callback1} - failure
Callback triggered if error occurs when deleting the frameworkCopyright © 2018 Eduworks Corporation. All rights reserved.