net~ UserUrlHelperMixin

A mixin class that adds SolarUser specific support to module:net~UrlHelper.

Members

userId

Get the default user ID.

This gets the first available user ID from the userIds property.

userId

Set the user ID.

This will set the userIds property to a new array of just the given value.

Methods

baseUrl() → {string}

Get the base URL to the SolarUser v1 REST API.

The returned URL uses the configured environment to resolve the hostUrl and a solarUserPath context path. If the context path is not available, it will default to /solaruser.

Returns:

the base URL to SolarUser

Type: 
string

nimAuthorizeUrl() → {string}

Generate a URL to get a Node Image Maker (NIM) session key.

Returns:

the URL to obtain a NIM session key

Type: 
string

updateNodeArchivedStatusUrl(nodeId, archived) → {string}

Generate a URL to update the archived status of a set of nodes via a POST request.

Parameters:
NameTypeDescription
nodeIdnumber | Array.<number> | null

a specific node ID, or array of node IDs, to update; if not provided the nodeIds property of this class will be used

archivedboolean

true to mark the nodes as archived; false to un-mark and return to normal status

Returns:

the URL to update the nodes archived status

Type: 
string

viewArchivedNodesUrl() → {string}

Generate a URL to get a list of all archived nodes for the user account.

Returns:

the URL to access the user's archived nodes

Type: 
string

viewNodesUrl() → {string}

Generate a URL to get a list of all active nodes for the user account.

Returns:

the URL to access the user's active nodes

Type: 
string

viewPendingNodesUrl() → {string}

Generate a URL to get a list of all pending nodes for the user account.

Returns:

the URL to access the user's pending nodes

Type: 
string

whoamiUrl() → {string}

Generate a URL to get information about the requesting authenticated user.

Returns:

the URL to view information about the authenticated user

Type: 
string