Home Reference Source Test

Function

Static Public Summary
public

Enum(a: *): *

public

checkAttribute(path: *): *

public

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

divideURL(url: URL.URL): divideURL

Divide an url in type, domain and identity

public

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

Params:

NameTypeAttributeDescription
a *

Return:

*

public checkAttribute(path: *): * source

import {checkAttribute} from 'service-framework/src/utils/utils.js'

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
identifier string

user identifier

Return:

string

userURL the user URL

public deepClone(obj: Object): Object source

import {deepClone} from 'service-framework/src/utils/utils.js'

Make a COPY of the original data

Params:

NameTypeAttributeDescription
obj Object

object to be cloned

Return:

Object

public divideEmail(email: *): * source

import {divideEmail} from 'service-framework/src/utils/utils.js'

Params:

NameTypeAttributeDescription
email *

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:

NameTypeAttributeDescription
url URL.URL

url address

Return:

divideURL

the result of divideURL

public emptyObject(object: Object): Boolean source

import {emptyObject} from 'service-framework/src/utils/utils.js'

Check if an Object is empty

Params:

NameTypeAttributeDescription
object Object

Object to be checked

Return:

Boolean

status of Object, empty or not (true|false);

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:

NameTypeAttributeDescription
userURL URL.URL

The user URL

Return:

string

userEmail The user email

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:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
path *

Return:

*