public class ExtContent extends 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, urlid, owner, reader, signatureatProperties, context, type| Constructor and Description |
|---|
ExtContent()
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 content from the server corresponding to its ID
|
static void |
get(String id,
org.stjs.javascript.functions.Callback1<ExtContent> success,
org.stjs.javascript.functions.Callback1<String> failure)
Retrieves the content specified with the ID from the server
|
Person |
getAuthor()
Returns the author of the content
|
static ExtContent |
getBlocking(String id)
Retrieves a content from the server synchronously, the call
blocks until it is successful or an error occurs
|
String |
getCategory()
Returns the genre/category of the content
|
String |
getDescription()
Returns the description of the content
|
String |
getId()
Returns the ID of the content
|
Organization |
getInstitution()
Returns the institution of the content
|
String |
getLaunchURL()
Returns the content's launch URL
|
String |
getLegacyId()
Returns the legacyId of the content
|
String |
getTitle()
Returns the title of the content
|
String |
getUrl()
Returns the content object URL
|
String |
save(org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Saves this content on the server corresponding to its ID
|
static void |
search(EcRepository repo,
String query,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<ExtContent>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches the repository using the query and optional parameters provided
|
void |
setAuthor(Person creator)
Sets the author of the content
|
void |
setCategory(String name)
Sets the genre/category of the content
|
void |
setDescription(String description)
Sets the description of the content
|
void |
setId(String id)
Sets the ID of the content
|
void |
setInstitution(Organization institution)
Sets the institution of the content
|
void |
setLaunchURL(String page)
Sets the web page URL of the content
|
void |
setLegacyId(String id)
Sets the legacyId of the content
|
void |
setTitle(String title)
Sets the title of the content
|
void |
setUrl(String url)
Sets the content 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, veryShortIdatIfy, atIfyArray, atIfyObject, compact, copyFrom, deAtify, getFullType, getTypes, isA, isAny, isAtProperty, isProbablyJson, setContextAndType, toJson, upgradepublic String legacyId
public ExtContent()
public static void get(String id, org.stjs.javascript.functions.Callback1<ExtContent> success, org.stjs.javascript.functions.Callback1<String> failure)
{String} - id
ID of the content to retrieve{Callback1} - success
Callback triggered on successfully retrieving the content,
returns the content{Callback1} - [failure]
Callback triggered if error while retrieving contentpublic static ExtContent getBlocking(String id)
{String} - id
ID of the content to retrievepublic static void search(EcRepository repo, String query, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<ExtContent>> 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 ExtContent{Callback1} - [failure]
Callback triggered if error while saving ExtContentpublic void _delete(org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{Callback1} - success
Callback triggered on successfully deleting the content{Callback1} - [failure]
Callback triggered if error while deleting contentpublic String getId()
public void setId(String id)
{String} - id
ID of the contentpublic String getLegacyId()
public void setLegacyId(String id)
{String} - id
legacyId of the contentpublic Person getAuthor()
public void setAuthor(Person creator)
{Person} - creatorpublic String getTitle()
public void setTitle(String title)
{String} - title
title of the contentpublic String getDescription()
getDescription in class Thingpublic void setDescription(String description)
setDescription in class Thing{String} - description
description of the contentpublic String getCategory()
public void setCategory(String name)
{String} - name
category of the contentpublic Organization getInstitution()
public void setInstitution(Organization institution)
{Organization} - institution
institution of the contentpublic String getLaunchURL()
public void setLaunchURL(String page)
{String} - page
Launch url of the contentpublic String getUrl()
public void setUrl(String url)
{String} - url
url of the content objectCopyright © 2018 Eduworks Corporation. All rights reserved.