Function
Static Public Summary | ||
public |
activate(runtimeProtoStubURL: URL.RuntimeURL, busPostMessage: Message.Message, configuration: ProtoStubDescriptor.ConfigurationDataList): Object To activate this protocol stub, using the same method for all protostub. |
|
public |
assign(obj: *, keyPath: *, value: *) |
|
public |
buildURL(configuration: object, component: string, resource: string, type: string, useFallback: boolean): string Build a full url with the runtime configuration; |
|
public |
checkAttribute(path: *): * |
|
public |
convertToUserURL(identifier: string): string Check if the user identifier is already in the URL format, if not, convert to URL format |
|
public |
Make a COPY of the original data |
|
public |
divideEmail(email: *): * |
|
public |
Divide an url in type, domain and identity |
|
public |
emptyObject(object: Object): Boolean Check if an Object is empty |
|
public |
generateGUID(): * Generate a Global Unique ID |
|
public |
getConfigurationResources(configuration: object, component: string, resource: string): object get information relative each component configured on runtime configuration; |
|
public |
getUserEmailFromURL(userURL: URL.URL): string Obtains the user email that corresponds to a given URL |
|
public |
getUserIdentityDomain(url: *): * |
|
public |
getUserURLFromEmail(userEmail: string): URL.URL Obtains the user URL that corresponds to a given email |
|
public |
isBackendServiceURL(url: string): boolean Check if URL is from a backend service |
|
public |
isDataObjectURL(url: *): * |
|
public |
isHypertyURL(url: *): * |
|
public |
|
|
public |
isURL(url: *): * |
|
public |
isUserURL(url: *): * |
|
public |
parseAttributes(path: *): * |
|
public |
removePathFromURL(url: *): * |
|
public |
schemaValidation(scheme: *, descriptor: *, value: *) |
|
public |
splitObjectURL(dataObjectURL: *): * |
Static Public
public activate(runtimeProtoStubURL: URL.RuntimeURL, busPostMessage: Message.Message, configuration: ProtoStubDescriptor.ConfigurationDataList): Object source
import activate from 'runtime-core/src/protostub/ProtoStub.js'
To activate this protocol stub, using the same method for all protostub.
Params:
Name | Type | Attribute | Description |
runtimeProtoStubURL | URL.RuntimeURL | runtimeProtoSubURL |
|
busPostMessage | Message.Message | configuration |
|
configuration | ProtoStubDescriptor.ConfigurationDataList | configuration |
public assign(obj: *, keyPath: *, value: *) source
import {assign} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
obj | * | ||
keyPath | * | ||
value | * |
public buildURL(configuration: object, component: string, resource: string, type: string, useFallback: boolean): string source
import {buildURL} from 'runtime-core/src/utils/utils.js'
Build a full url with the runtime configuration;
Params:
Name | Type | Attribute | Description |
configuration | object | object with all configuration |
|
component | string | string with the component to get the configuration, like, runtimeURLS, catalogueURLs, msgNodeURL, domainRegistryURL; |
|
resource | string | type of resource to get, like, catalogue, runtimeUA, protocolstub, idpProxy |
|
type | string | resource to get, like a hyperty name or protocolstub name; |
|
useFallback | boolean | if true the function will check if have a fallback url; |
public checkAttribute(path: *): * source
import {checkAttribute} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
path | * |
Return:
* |
public convertToUserURL(identifier: string): string source
import {convertToUserURL} from 'runtime-core/src/utils/utils.js'
Check if the user identifier is already in the URL format, if not, convert to URL format
Params:
Name | Type | Attribute | Description |
identifier | string | user identifier |
public deepClone(obj: Object): Object source
import {deepClone} from 'runtime-core/src/utils/utils.js'
Make a COPY of the original data
Params:
Name | Type | Attribute | Description |
obj | Object | object to be cloned |
public divideEmail(email: *): * source
import {divideEmail} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
* |
Return:
* |
public divideURL(url: URL.URL): divideURL source
import {divideURL} from 'runtime-core/src/utils/utils.js'
Divide an url in type, domain and identity
Params:
Name | Type | Attribute | Description |
url | URL.URL | url address |
public emptyObject(object: Object): Boolean source
import {emptyObject} from 'runtime-core/src/utils/utils.js'
Check if an Object is empty
Params:
Name | Type | Attribute | Description |
object | Object | Object to be checked |
public generateGUID(): * source
import {generateGUID} from 'runtime-core/src/utils/utils.js'
Generate a Global Unique ID
Return:
* | String; |
public getConfigurationResources(configuration: object, component: string, resource: string): object source
import {getConfigurationResources} from 'runtime-core/src/utils/utils.js'
get information relative each component configured on runtime configuration;
Params:
Name | Type | Attribute | Description |
configuration | object | object with all configuration |
|
component | string | string with the component to get the configuration, like, runtimeURLS, catalogueURLs, msgNodeURL, domainRegistryURL; |
|
resource | string | type of resource to get, like, catalogue, runtimeUA, protocolstub, idpProxy |
public getUserEmailFromURL(userURL: URL.URL): string source
import {getUserEmailFromURL} from 'runtime-core/src/utils/utils.js'
Obtains the user email that corresponds to a given URL
Params:
Name | Type | Attribute | Description |
userURL | URL.URL | The user URL |
public getUserIdentityDomain(url: *): * source
import {getUserIdentityDomain} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
Return:
* |
public getUserURLFromEmail(userEmail: string): URL.URL source
import {getUserURLFromEmail} from 'runtime-core/src/utils/utils.js'
Obtains the user URL that corresponds to a given email
Params:
Name | Type | Attribute | Description |
userEmail | string | The user email |
Return:
URL.URL | userURL The user URL |
public isBackendServiceURL(url: string): boolean source
import {isBackendServiceURL} from 'runtime-core/src/utils/utils.js'
Check if URL is from a backend service
Params:
Name | Type | Attribute | Description |
url | string | URL to be processed |
public isDataObjectURL(url: *): * source
import {isDataObjectURL} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
Return:
* |
public isHypertyURL(url: *): * source
import {isHypertyURL} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
Return:
* |
public isLegacy(url: *): boolean source
import {isLegacy} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
public isURL(url: *): * source
import {isURL} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
Return:
* |
public isUserURL(url: *): * source
import {isUserURL} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
Return:
* |
public parseAttributes(path: *): * source
import {parseAttributes} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
path | * |
Return:
* |
public removePathFromURL(url: *): * source
import {removePathFromURL} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
url | * |
Return:
* |
public schemaValidation(scheme: *, descriptor: *, value: *) source
import {schemaValidation} from 'runtime-core/src/utils/schemaValidation.js'
Params:
Name | Type | Attribute | Description |
scheme | * | ||
descriptor | * | ||
value | * |
public splitObjectURL(dataObjectURL: *): * source
import {splitObjectURL} from 'runtime-core/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
dataObjectURL | * |
Return:
* |