new CustomerDomainList()
A List of a customer domains
- Source:
- Customer/CustomerDomainList.js, line 28
- See:
Properties:
Name | Type | Description |
---|---|---|
domains |
Array | Array of domains. |
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:
- Customer/CustomerDomainList.js, line 126
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- Customer/CustomerDomainList.js, line 47
- See:
-
generateUrl()
-
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
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:
- 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: