Skip to content

Class: CustomerDomainList

CustomerDomainList

new CustomerDomainList()

A List of a customer domains

Properties:

Name Type Description
domains Array Array of domains.

Source: Customer/CustomerDomainList.js, line 28

See:


Methods

generate_xml(options)

Generates a save/update xml to be posted to the server

Parameters:

Name Type Description
options object options to be used during the call

options Properties:

Name Type Argument Description
domain Domain the domain object with the values to create a new domain
baseUrl String \ base URL. If not set the current base URL will be used

Source: Customer/CustomerDomainList.js, line 126


generateUrl()

Overrides Resource's generateUrl method to return the request url

Source: Customer/CustomerDomainList.js, line 47

See:


generateUrl() (save)

Overrides Resource's generateUrl method to return the Post url

Source: Customer/CustomerDomainList.js, line 82

See:


loadPreset()

Overrides Resource's loadPreset method.

Source: Customer/CustomerDomainList.js, line 41

See:


loadSet(rObject)

Overrides Resource's loadSet method to set local variables after request.

Parameters:

Name Type Description
rObject json JSON representation of the loaded data.

Source: Customer/CustomerDomainList.js, line 57

See:


save(options)

Creates a new Delegation.

Parameters:

Name Type Description
options object options to be used during the call

options Properties:

Name Type Argument Description
onSuccess Resource~onSuccess a callback function called in case of a success
onFailure Resource~onFailure \ a callback function called in case of a failure
baseUrl String \ base URL. If not set the current base URL will be used
domain Domain the domain object with the values to create a new domain

domain Properties:

Name Type Argument Description
title String the title of the
allowSDC String \ allows SWC true/false defaults to false
defaultVal String \ is default true/false defaults to false
SDCLogin String \ SDC login user
SDCPassword String \ SDC password

Source: Customer/CustomerDomainList.js, line 115

Example

Create a Domain
function createDelegation(delegationList){//delegation list object
    var new_domain = new Domain;
    new_domain.title = 'test_domain';
    new_domain.allowSDC = 'true';
    new_domain.defaultVal = 'false';
    new_domain.SDCLogin = 'foo';
    new_domain.SDCPassword = 'bar'
    delegationList.save({
        onSuccess:function(){
            alert("CREATED!");
        },
        domain:new_domain
    })
}

savePreset()

Overrides Resource's savePreset method.

Source: Customer/CustomerDomainList.js, line 76

See: