import RuntimeCatalogue from 'service-framework/src/runtime-catalogue/RuntimeCatalogue.js'
RuntimeCatalogue
Constructor Summary
Public Constructor | ||
public |
constructor(runtimeFactory: *) |
Member Summary
Public Members | ||
public |
atob: * |
|
public |
httpRequest: * |
|
public set |
runtimeURL: * |
|
public get |
runtimeURL: * |
|
public |
|
Method Summary
Public Methods | ||
public |
attachRawSourcePackage(descriptor: CatalogueDataObject, constraints: JSON): Promise Uses the sourcePackageURL from the descriptor, requests the sourcePackage and attaches it to the descriptor. |
|
public |
createDataSchema(rawSchema: *): DataObjectSchema Create DataObjectSchema based on raw object that contains its attributes |
|
public |
createHyperty(rawHyperty: JSON): HypertyDescriptor Create HypertyDescriptor based on raw object that contains its attributes |
|
public |
createIdpProxy(rawProxy: *): ProtocolStubDescriptor Create ProtocolStubDescriptor based on raw object that contains its attributes |
|
public |
createRuntimeDescriptor(rawRuntime: *): HypertyRuntimeDescriptor Create HypertyRuntimeDescriptor based on raw object that contains its attributes |
|
public |
createSourcePackage(sp: *): * |
|
public |
createStub(rawStub: *): ProtocolStubDescriptor Create ProtocolStubDescriptor based on raw object that contains its attributes |
|
public |
deleteFromPM(url: *): * |
|
public |
getDataSchemaDescriptor(dataSchemaURL: *, getFull: boolean, constraints: JSON): Promise Get DataSchemaDescriptor |
|
public |
getDescriptor(descriptorURL: String, createFunc: function, getFull: boolean, constraints: JSON): Promise Get a Catalogue Data Object (Descriptor) from a URL, and construct it using the provided function |
|
public |
getHypertyDescriptor(hypertyURL: *, getFull: boolean, constraints: JSON): Promise Get HypertyDescriptor |
|
public |
getIdpProxyDescriptor(idpProxyURL: *, getFull: boolean, constraints: JSON): Promise Get IDPProxyDescriptor |
|
public |
getRuntimeDescriptor(runtimeURL: *, getFull: boolean, constraints: JSON): Promise Get RuntimeDescriptor |
|
public |
getSourceCodeFromDescriptor(descriptor: CatalogueDataObject): Promise Returns the sourceCode of a given descriptor |
|
public |
getSourcePackageFromURL(sourcePackageURL: *): Promise Get source Package from a URL |
|
public |
getStubDescriptor(stubURL: *, getFull: boolean, constraints: JSON): Promise Get StubDescriptor |
|
public |
getTypeList(typeURL: *, constraints: JSON): Promise Returns the list of available catalogue objects for the given "type URL", i.e. |
Public Constructors
public constructor(runtimeFactory: *) source
Params:
Name | Type | Attribute | Description |
runtimeFactory | * |
Public Members
public atob: * source
public httpRequest: * source
public set runtimeURL: * source
public get runtimeURL: * source
public storageManager: * source
Public Methods
public attachRawSourcePackage(descriptor: CatalogueDataObject, constraints: JSON): Promise source
Uses the sourcePackageURL from the descriptor, requests the sourcePackage and attaches it to the descriptor.
Params:
Name | Type | Attribute | Description |
descriptor | CatalogueDataObject | ||
constraints | JSON | constraints object |
public createDataSchema(rawSchema: *): DataObjectSchema source
Create DataObjectSchema based on raw object that contains its attributes
Params:
Name | Type | Attribute | Description |
rawSchema | * |
public createHyperty(rawHyperty: JSON): HypertyDescriptor source
Create HypertyDescriptor based on raw object that contains its attributes
Params:
Name | Type | Attribute | Description |
rawHyperty | JSON |
public createIdpProxy(rawProxy: *): ProtocolStubDescriptor source
Create ProtocolStubDescriptor based on raw object that contains its attributes
Params:
Name | Type | Attribute | Description |
rawProxy | * |
public createRuntimeDescriptor(rawRuntime: *): HypertyRuntimeDescriptor source
Create HypertyRuntimeDescriptor based on raw object that contains its attributes
Params:
Name | Type | Attribute | Description |
rawRuntime | * |
public createStub(rawStub: *): ProtocolStubDescriptor source
Create ProtocolStubDescriptor based on raw object that contains its attributes
Params:
Name | Type | Attribute | Description |
rawStub | * |
public getDataSchemaDescriptor(dataSchemaURL: *, getFull: boolean, constraints: JSON): Promise source
Get DataSchemaDescriptor
public getDescriptor(descriptorURL: String, createFunc: function, getFull: boolean, constraints: JSON): Promise source
Get a Catalogue Data Object (Descriptor) from a URL, and construct it using the provided function
Return:
Promise | Promise that fulfills with the requested descriptor in the appropriate type. If constraints were provided, a descriptor is only returned if it meets the constraints, otherwise the promise will be rejected. |
public getHypertyDescriptor(hypertyURL: *, getFull: boolean, constraints: JSON): Promise source
Get HypertyDescriptor
public getIdpProxyDescriptor(idpProxyURL: *, getFull: boolean, constraints: JSON): Promise source
Get IDPProxyDescriptor
public getRuntimeDescriptor(runtimeURL: *, getFull: boolean, constraints: JSON): Promise source
Get RuntimeDescriptor
public getSourceCodeFromDescriptor(descriptor: CatalogueDataObject): Promise source
Returns the sourceCode of a given descriptor
Params:
Name | Type | Attribute | Description |
descriptor | CatalogueDataObject | Catalogue Object that was retrieved using e.g. getHypertyDescriptor() |
public getSourcePackageFromURL(sourcePackageURL: *): Promise source
Get source Package from a URL
Params:
Name | Type | Attribute | Description |
sourcePackageURL | * | e.g. mydomain.com/.well-known/hyperty/MyHyperty/sourcePackage |
public getStubDescriptor(stubURL: *, getFull: boolean, constraints: JSON): Promise source
Get StubDescriptor
public getTypeList(typeURL: *, constraints: JSON): Promise source
Returns the list of available catalogue objects for the given "type URL", i.e. a catalogue URL that specifies a type, but no catalogue object name.
Params:
Name | Type | Attribute | Description |
typeURL | * | URL pointing to the catalogue object type you want a list of available objects for, e.g. hyperty-catalogue://catalogue.fokus.fraunhofer.de/.well-known/idp-proxy |
|
constraints | JSON | constraints object |
Return:
Promise | typeListPromise - Promise that fulfills with the list of available catalogue object names for the requested type, rejects on HTTP error or if the HTTP response is not in JSON. If constraints were provided, then the list only contains those objects that meet the constraints |