public class EcCompetency extends Competency
myType, scopeabout, 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 |
|---|
EcCompetency() |
| Modifier and Type | Method and Description |
|---|---|
void |
_delete(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Deletes the competency from the server
|
EcAlignment |
addAlignment(EcCompetency target,
String alignmentType,
EcPpk owner,
String serverUrl,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Adds a new alignment on the server specified with this competency as its
source and the specified target competency
|
EcLevel |
addLevel(String name,
String description,
EcPpk owner,
String serverUrl,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Adds a new level on the server specified for this competency.
|
EcRollupRule |
addRollupRule(String name,
String description,
EcPpk owner,
String serverUrl,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Adds a new rollup rule on the server specified for this competency
|
static void |
get(String id,
org.stjs.javascript.functions.Callback1<EcCompetency> success,
org.stjs.javascript.functions.Callback1<String> failure)
Retrieves a competency from it's server asynchronously
|
static EcCompetency |
getBlocking(String id)
Retrieves a competency from it's server synchronously, the call
blocks until it is successful or an error occurs
|
void |
levels(EcRepository repo,
org.stjs.javascript.functions.Callback1<EcLevel> success,
org.stjs.javascript.functions.Callback1<String> failure,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcLevel>> successAll)
Searches the repository given for any levels of this competency
|
void |
relations(EcRepository repo,
org.stjs.javascript.functions.Callback1<EcAlignment> eachSuccess,
org.stjs.javascript.functions.Callback1<String> failure,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> successAll)
Searches the repository given for any relationships that contain this competency
|
void |
relationships(EcRepository repo,
org.stjs.javascript.functions.Callback1<EcAlignment> eachSuccess,
org.stjs.javascript.functions.Callback1<String> failure,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> successAll)
Deprecated.
|
void |
rollupRules(EcRepository repo,
org.stjs.javascript.functions.Callback1<EcRollupRule> success,
org.stjs.javascript.functions.Callback1<String> failure,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcRollupRule>> successAll)
Searches the repository given for any rollup rules of this competency
|
void |
save(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Saves the competency details to the server
|
static void |
search(EcRepository repo,
String query,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches a repository for competencies that match the search query
|
void |
setScope(String scope)
Method to set competency scope
|
getTypes, upgradegetDescription, 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 void get(String id, org.stjs.javascript.functions.Callback1<EcCompetency> success, org.stjs.javascript.functions.Callback1<String> failure)
{String} - id
ID of the competency to retrieve from the server{Callback1} - success
Callback triggered after retrieving the competency,
returns the competency retrieved{Callback1} - failure
Callback triggered if error retrieving competencypublic static EcCompetency getBlocking(String id)
{String} - id
ID of the competency to retrievepublic static void search(EcRepository repo, String query, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcCompetency>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search using the query{String} - query
Query string to pass to the search web service{Callback1> - success
Callback triggered after completing the search, returns the results{Callback1} - failure
Callback triggered if error searching{Object} - paramObj
Parameter object for searchstart - size - public EcAlignment addAlignment(EcCompetency target, String alignmentType, EcPpk owner, String serverUrl, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure, EcRepository repo)
{EcCompetency} - target
Competency to be related with{String} - alignmentType
String defining the relationship type{EcPpk} - owner
Private Key that will own the relationship created{String} - server
URL Prefix of the new relationship (Server it will be saved on){Callback1} - success
Callback triggered after successfully creating and saving the relationship{Callback1} - [failure]
Callback triggered if error creating and saving relationshippublic void relations(EcRepository repo, org.stjs.javascript.functions.Callback1<EcAlignment> eachSuccess, org.stjs.javascript.functions.Callback1<String> failure, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> successAll)
{EcRepository} - repo
Repository to search for relationships{Callback1} - eachSuccess
Callback triggered for each relationship found{Callback1} - failure
Callback triggered if an error finding relationships{Callback1>} - successAll
Callback triggered once all of the relationships have been found@Deprecated public void relationships(EcRepository repo, org.stjs.javascript.functions.Callback1<EcAlignment> eachSuccess, org.stjs.javascript.functions.Callback1<String> failure, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> successAll)
{EcRepository} - repo
Repository to search for relationships{Callback1} - eachSuccess
Callback triggered for each relationship found{Callback1} - failure
Callback triggered if an error finding relationships{Callback1>} - successAll
Callback triggered once all of the relationships have been foundpublic EcLevel addLevel(String name, String description, EcPpk owner, String serverUrl, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure, EcRepository repo)
{String} - name
Name of the new level to create{String} - description
Description of the new level to create{String} - owner
Private key of the owner of the new level{String} - server
URL Prefix for the new level's ID (Server saved on){Callback1} - success
Callback triggered after successfully creating and saving the level{Callback1} - failure
Callback triggered if an error creating and saving the levelpublic void levels(EcRepository repo, org.stjs.javascript.functions.Callback1<EcLevel> success, org.stjs.javascript.functions.Callback1<String> failure, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcLevel>> successAll)
{EcRepository} - repo
Repository to search for levels{Callback1} - success
Callback triggered for each level found{Callback1} - failure
Callback triggered if an error finding levels{Callback1>} - successAll
Callback triggered once all of the levels have been foundpublic EcRollupRule addRollupRule(String name, String description, EcPpk owner, String serverUrl, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure, EcRepository repo)
{String} - name
Name of the rollup rule to create{String} - description
Description of the rollup rule to create{EcPpk} - owner
Private key that will own the new rollup rule{String} - server
URL Prefix for the new rollup rule's ID (Server that it will be saved on){Callback1} - success
Callback triggered if successfully save the rollup rule{Callback1} - failure
Callback triggered fi error during save of rollup rulepublic void rollupRules(EcRepository repo, org.stjs.javascript.functions.Callback1<EcRollupRule> success, org.stjs.javascript.functions.Callback1<String> failure, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcRollupRule>> successAll)
{EcRepository} - repo
Repository to search for levels{Callback1} - success
Callback triggered for each rollup rule found{Callback1} - failure
Callback triggered if an error finding rollup rule{Callback1} - successAll
Callback triggered once all of the rollup rules have been foundpublic void setScope(String scope)
{String} - scope
Scope to set for its competencypublic void save(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure, EcRepository repo)
{Callback1} - success
Callback triggered on successfully saving the competency{Callback1} - failure
Callback triggered if error saving competencypublic void _delete(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure, EcRepository repo)
TODO: Delete rollup rules?
{Callback1} - success
Callback triggered on successful deleting the competency{Callback1} - failure
Callback triggered if error deleting the competency{EcRepository} - repo
Repository to delete from and to check for levels or relationships to deleteCopyright © 2018 Eduworks Corporation. All rights reserved.