Function
Static Public Summary | ||
public |
Enum(a: *): * |
|
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 |
getUserEmailFromURL(userURL: URL.URL): string Obtains the user email that corresponds to a given URL |
|
public |
getUserURLFromEmail(userEmail: string): URL.URL Obtains the user URL that corresponds to a given email |
|
public |
parseAttributes(path: *): * |
Static Public
public Enum(a: *): * source
import {Enum} from 'service-framework/src/message-factory/MessageBody.js'
Params:
Name | Type | Attribute | Description |
a | * |
Return:
* |
public checkAttribute(path: *): * source
import {checkAttribute} from 'service-framework/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
path | * |
Return:
* |
public convertToUserURL(identifier: string): string source
import {convertToUserURL} from 'service-framework/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 'service-framework/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 'service-framework/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
* |
Return:
* |
public divideURL(url: URL.URL): divideURL source
import {divideURL} from 'service-framework/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 'service-framework/src/utils/utils.js'
Check if an Object is empty
Params:
Name | Type | Attribute | Description |
object | Object | Object to be checked |
public getUserEmailFromURL(userURL: URL.URL): string source
import {getUserEmailFromURL} from 'service-framework/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 getUserURLFromEmail(userEmail: string): URL.URL source
import {getUserURLFromEmail} from 'service-framework/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 parseAttributes(path: *): * source
import {parseAttributes} from 'service-framework/src/utils/utils.js'
Params:
Name | Type | Attribute | Description |
path | * |
Return:
* |