Class: CustomerDomainList

CustomerDomainList

new CustomerDomainList()

A List of a customer domains
Properties:
Name Type Description
domains Array Array of domains.
Source:
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
Properties
Name Type Argument Description
domain Domain the domain object with the values to create a new domain
baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
See:

generateUrl()

Overrides Resource's generateUrl method to return the Post url
Source:
See:

loadPreset()

Overrides Resource's loadPreset method.
Source:
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:
See:

save(options)

Creates a new Delegation.
Parameters:
Name Type Description
options object options to be used during the call
Properties
Name Type Argument Description
onSuccess Resource~onSuccess a callback function called in case of a success
onFailure Resource~onFailure <optional>
a callback function called in case of a failure
baseUrl String <optional>
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
Properties
Name Type Argument Description
title String the title of the
allowSDC String <optional>
allows SWC true/false defaults to false
defaultVal String <optional>
is default true/false defaults to false
SDCLogin String <optional>
SDC login user
SDCPassword String <optional>
SDC password
Source:
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:
See: