public class ExtResource
extends org.schema.CreativeWork
| Modifier and Type | Field and Description |
|---|---|
String |
legacyId |
about, 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 |
|---|
ExtResource()
Constructor, automatically sets @context and @type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_delete(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Deletes the resource from the server corresponding to its ID
|
static void |
get(String id,
org.stjs.javascript.functions.Callback1<ExtResource> success,
org.stjs.javascript.functions.Callback1<String> failure)
Retrieves the resource specified with the ID from the server
|
String |
getAdditionalType()
Returns the additionalType of the resource
|
org.schema.Person |
getAuthor()
Returns the author of the resource
|
String |
getAuthoringURL()
Returns the resource's authoring URL
|
static ExtResource |
getBlocking(String id)
Retrieves a resource from the server synchronously, the call
blocks until it is successful or an error occurs
|
String |
getCategory()
Returns the genre/category of the resource
|
org.schema.Organization |
getCommunity()
Returns the community of the resource
|
String |
getDescription()
Returns the description of the resource
|
String |
getId()
Returns the ID of the resource
|
org.schema.Organization |
getInstitution()
Returns the institution of the resource
|
String |
getKeywords()
Returns the keywords of the resource
|
String |
getLaunchURL()
Returns the resource's launch URL
|
String |
getLegacyId()
Returns the legacyId of the resource
|
String |
getText()
Returns the text of the resource
|
String |
getTitle()
Returns the title of the resource
|
String |
getUrl()
Returns the resource object URL
|
String |
save(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Saves this resource on the server corresponding to its ID
|
static void |
search(EcRepository repo,
String query,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<ExtResource>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository using the query and optional parameters provided
|
void |
setAdditionalType(String name)
Sets the additionalType of the resource
|
void |
setAuthor(org.schema.Person creator)
Sets the author of the resource
|
void |
setAuthoringURL(String page)
Sets the authoring URL of the resource
|
void |
setCategory(String name)
Sets the genre/category of the resource
|
void |
setCommunity(org.schema.Organization community)
Sets the community of the resource
|
void |
setDescription(String description)
Sets the description of the resource
|
void |
setId(String id)
Sets the ID of the resource
|
void |
setInstitution(org.schema.Organization institution)
Sets the institution of the resource
|
void |
setKeywords(String name)
Sets the keywords of the resource
|
void |
setLaunchURL(String page)
Sets the launch URL of the resource
|
void |
setLegacyId(String id)
Sets the legacyId of the resource
|
void |
setText(String text)
Sets the text of the resource
|
void |
setTitle(String title)
Sets the title of the resource
|
void |
setUrl(String url)
Sets the resource object URL
|
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 String legacyId
public ExtResource()
public static void get(String id, org.stjs.javascript.functions.Callback1<ExtResource> success, org.stjs.javascript.functions.Callback1<String> failure)
{String} - id
ID of the resource to retrieve{Callback1} - success
Callback triggered on successfully retrieving the resource,
returns the resource{Callback1} - [failure]
Callback triggered if error while retrieving resourcepublic static ExtResource getBlocking(String id)
{String} - id
ID of the resource to retrievepublic static void search(EcRepository repo, String query, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<ExtResource>> 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 String save(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{Callback1} - success
Callback triggered on successfully saving the ExtResource{Callback1} - [failure]
Callback triggered if error while saving ExtResourcepublic void _delete(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{Callback1} - success
Callback triggered on successfully deleting the resource{Callback1} - [failure]
Callback triggered if error while deleting resourcepublic String getId()
public void setId(String id)
{String} - id
ID of the resourcepublic String getLegacyId()
public void setLegacyId(String id)
{String} - id
legacyId of the resourcepublic org.schema.Person getAuthor()
public void setAuthor(org.schema.Person creator)
{Person} - creatorpublic String getTitle()
public void setTitle(String title)
{String} - title
title of the resourcepublic String getDescription()
getDescription in class org.schema.Thingpublic void setDescription(String description)
setDescription in class org.schema.Thing{String} - description
description of the resourcepublic String getText()
public void setText(String text)
{String} - text
text of the resourcepublic String getCategory()
public void setCategory(String name)
{String} - name
category of the resourcepublic String getAdditionalType()
public void setAdditionalType(String name)
{String} - name
additionalType of the resourcepublic String getKeywords()
public void setKeywords(String name)
{String} - name
keywords of the resourcepublic org.schema.Organization getInstitution()
public void setInstitution(org.schema.Organization institution)
{Organization} - institution
institution of the resourcepublic org.schema.Organization getCommunity()
public void setCommunity(org.schema.Organization community)
{Organization} - community
community of the resourcepublic String getLaunchURL()
public void setLaunchURL(String page)
{String} - page
Launch url of the resourcepublic String getAuthoringURL()
public void setAuthoringURL(String page)
{String} - page
Authoring url of the resourcepublic String getUrl()
public void setUrl(String url)
{String} - url
url of the resource objectCopyright © 2018 Eduworks Corporation. All rights reserved.