public class EcAlignment extends Relation
TODO: Test case where an absent relation is in the framework.
DESIRES, IS_ENABLED_BY, IS_EQUIVALENT_TO, IS_RELATED_TO, myType, NARROWS, relationType, REQUIRES, source, target, validFrom, validThroughabout, 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 |
|---|
EcAlignment() |
| Modifier and Type | Method and Description |
|---|---|
void |
_delete(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Deletes the alignment from the server corresponding to its ID
|
static void |
get(String id,
org.stjs.javascript.functions.Callback1<EcAlignment> success,
org.stjs.javascript.functions.Callback1<String> failure)
Retrieves the alignment specified with the ID from the server
|
static EcAlignment |
getBlocking(String id)
Retrieves an alignment from it's server synchronously, the call
blocks until it is successful or an error occurs
|
void |
save(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure,
EcRepository repo)
Saves this alignment details on the server corresponding to its ID
|
static void |
search(EcRepository repo,
String query,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository using the query and optional parameters provided
|
static void |
searchByCompetency(EcRepository repo,
String competencyId,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository for alignments with a specific ID in the target field
|
static void |
searchBySource(EcRepository repo,
String sourceId,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository for alignments with a specific ID in the source field
|
static void |
searchBySources(EcRepository repo,
org.stjs.javascript.Array<String> sourceIds,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository for alignments with one of an array of IDs in the source field
|
void |
setDescription(String description)
Setter for alignment description
|
void |
setName(String name)
Setter for alignment name
|
addOwner, 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<EcAlignment> success, org.stjs.javascript.functions.Callback1<String> failure)
{String} - id
ID of the alignment to retrieve{Callback1} - success
Callback triggered on successfully retrieving the alignment,
returns the alignment{Callback1} - [failure]
Callback triggered if error while retrieving alignmentpublic static EcAlignment getBlocking(String id)
{String} - id
ID of the alignment to retrievepublic static void search(EcRepository repo, String query, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search using the query provided{String} - query
The query to send to the search{Callback1>} - success
Callback triggered on successful search return{Callback1} - [failure]
Callback triggered if error searching{Object} - [paramObj]
Parameters to include in the searchstart - size - public static void searchBySource(EcRepository repo, String sourceId, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search for alignments with the source specified{String} - sourceId
ID in the source field of the alignments to find{Callback1>} - success
Callback triggered on successful search return{Callback1} - [failure]
Callback triggered if error searching{Object} - [paramObj]
Parameters to include in the searchstart - size - public static void searchBySources(EcRepository repo, org.stjs.javascript.Array<String> sourceIds, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search for alignments with the source specified{String} - sourceId
ID in the source field of the alignments to find{Callback1>} - success
Callback triggered on successful search return{Callback1} - [failure]
Callback triggered if error searching{Object} - [paramObj]
Parameters to include in the searchstart - size - public static void searchByCompetency(EcRepository repo, String competencyId, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcAlignment>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search for alignments with the source specified{String} - competencyId
ID in the target field of the alignments to find{Callback1>} - success
Callback triggered on successful search return{Callback1} - [failure]
Callback triggered if error searching{Object} - [paramObj]
Parameters to include in the searchpublic void setName(String name)
setName in class org.schema.Thing{String} - name
name to give this alignmentpublic void setDescription(String description)
setDescription in class org.schema.Thing{String} - description
description to give this alignmentpublic 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 alignment{Callback1} - [failure]
Callback triggered if error while saving alignmentpublic void _delete(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{Callback1} - success
Callback triggered on successfully deleting the alignment{Callback1} - [failure]
Callback triggered if error while deleting alignmentCopyright © 2018 Eduworks Corporation. All rights reserved.