Interface: User

User

Methods

addCartItem(entityType, entityId, options) → {Promise.<Cart>}

Parameters:
Name Type Description
entityType string
entityId number
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

addCartItem(entityType, entityId, timeout) → {Promise.<Cart>}

Parameters:
Name Type Description
entityType string
entityId number
timeout Promise if resolved will cancel the request
Source:
Returns:
Type
Promise.<Cart>

addCartItem(entityType, entityId) → {Promise.<Cart>}

Parameters:
Name Type Description
entityType string
entityId number
Source:
Returns:
Type
Promise.<Cart>

addCartItems(items, options) → {Promise.<Cart>}

Parameters:
Name Type Description
items array
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

addCartItems(timeout, items) → {Promise.<Cart>}

Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
items array
Source:
Returns:
Type
Promise.<Cart>

addCartItems(items) → {Promise.<Cart>}

Parameters:
Name Type Description
items array
Source:
Returns:
Type
Promise.<Cart>

cart(options) → {Promise.<Cart>}

Parameters:
Name Type Description
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

cart(timeout) → {Promise.<Cart>}

Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
Source:
Returns:
Type
Promise.<Cart>

cart() → {Promise.<Cart>}

Source:
Returns:
Type
Promise.<Cart>

deleteAllCartItems(options) → {Promise.<Cart>}

Parameters:
Name Type Description
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

deleteAllCartItems(timeout) → {Promise.<Cart>}

Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
Source:
Returns:
Type
Promise.<Cart>

deleteAllCartItems() → {Promise.<Cart>}

Source:
Returns:
Type
Promise.<Cart>

deleteCartItem(id, options) → {Promise.<Cart>}

Parameters:
Name Type Description
id string | number
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

deleteCartItem(id, timeout) → {Promise.<Cart>}

Parameters:
Name Type Description
id string | number
timeout Promise if resolved will cancel the request
Source:
Returns:
Type
Promise.<Cart>

deleteCartItem(id) → {Promise.<Cart>}

Parameters:
Name Type Description
id string | number
Source:
Returns:
Type
Promise.<Cart>

deleteCartItems(items, options) → {Promise.<Cart>}

Parameters:
Name Type Description
items array
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

deleteCartItems(timeout, items) → {Promise.<Cart>}

Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
items array
Source:
Returns:
Type
Promise.<Cart>

deleteCartItems(items) → {Promise.<Cart>}

Parameters:
Name Type Description
items array
Source:
Returns:
Type
Promise.<Cart>

deleteDownload(id, options) → {Promise}

Parameters:
Name Type Description
id string | number
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise

deleteDownload(id, timeout) → {Promise}

Parameters:
Name Type Description
id string | number
timeout Promise if resolved will cancel the request
Source:
Returns:
Type
Promise

deleteDownload(id) → {Promise}

Parameters:
Name Type Description
id string | number
Source:
Returns:
Type
Promise

downloads(queryOffset, options) → {Promise.<Array.<object>>}

Returns the current user's downloads.
Parameters:
Name Type Description
queryOffset array any JPQL from the where clause onwards
options object as specified in the Angular documentation
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

downloads(timeout, queryOffset) → {Promise.<Array.<object>>}

Returns the current user's downloads.
Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
queryOffset array any JPQL from the where clause onwards
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

downloads(queryOffset) → {Promise.<Array.<object>>}

Returns the current user's downloads.
Parameters:
Name Type Description
queryOffset array any JPQL from the where clause onwards
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

downloads(timeout, queryOffset) → {Promise.<Array.<object>>}

Returns the current user's downloads.
Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
queryOffset string any JPQL from the where clause onwards
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

downloads(queryOffset) → {Promise.<Array.<object>>}

Returns the current user's downloads.
Parameters:
Name Type Description
queryOffset string any JPQL from the where clause onwards
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

downloads(timeout) → {Promise.<Array.<object>>}

Returns the current user's downloads.
Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

downloads() → {Promise.<Array.<object>>}

Returns the current user's downloads.
Source:
Returns:
a deferred list of downloads
Type
Promise.<Array.<object>>

getDownloadTypeStatus(downloadType, options) → {Promise.<object>}

Parameters:
Name Type Description
downloadType string download type as defined in topcat.json (e.g. 'globus')
options object as specified in the Angular documentation
Source:
Returns:
a deferred object containing disabled flag and string message
Type
Promise.<object>

getDownloadTypeStatus(downloadType, timeout) → {Promise.<object>}

Parameters:
Name Type Description
downloadType string download type as defined in topcat.json (e.g. 'globus')
timeout Promise if resolved will cancel the request
Source:
Returns:
a deferred object containing disabled flag and string message
Type
Promise.<object>

getDownloadTypeStatus(downloadType) → {Promise.<object>}

Parameters:
Name Type Description
downloadType string download type as defined in topcat.json (e.g. 'globus')
Source:
Returns:
a deferred object containing disabled flag and string message
Type
Promise.<object>

setDownloadStatus(id, status, options) → {Promise}

Parameters:
Name Type Description
id string | number the ID of the download
status string can be 'ONLINE', 'ARCHIVE' or 'RESTORING'
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise

setDownloadStatus(timeout, id, status) → {Promise}

Parameters:
Name Type Description
timeout Promise if resolved will cancel the request
id string | number the ID of the download
status string can be 'ONLINE', 'ARCHIVE' or 'RESTORING'
Source:
Returns:
Type
Promise

setDownloadStatus(id, status) → {Promise}

Parameters:
Name Type Description
id string | number the ID of the download
status string can be 'ONLINE', 'ARCHIVE' or 'RESTORING'
Source:
Returns:
Type
Promise

submitCart(fileName, transport, email, options) → {Promise.<Cart>}

Parameters:
Name Type Description
fileName string name of file into which the cart will be downloaded
transport string transport mechanism
email string optional address to send email when download is available
options object as specified in the Angular documentation
Source:
Returns:
Type
Promise.<Cart>

submitCart(fileName, transport, email, timeout) → {Promise.<Cart>}

Parameters:
Name Type Description
fileName string name of file into which the cart will be downloaded
transport string transport mechanism
email string optional address to send email when download is available
timeout Promise if resolved will cancel the request
Source:
Returns:
Type
Promise.<Cart>

submitCart(fileName, transport, email) → {Promise.<Cart>}

Parameters:
Name Type Description
fileName string name of file into which the cart will be downloaded
transport string transport mechanism
email string optional address to send email when download is available
Source:
Returns:
Type
Promise.<Cart>