new UserSupportAuthList()
Create a new instance of Support_auths
- Source:
- User/UserSupportAuthList.js, line 28
- See:
Properties:
| Name | Type | Description |
|---|---|---|
authorizations |
Array | Array of authorizations. |
Methods
-
generate_xml(email, expires, baseUrl)
-
Generates a save/update xml to be posted to the server.
Parameters:
Name Type Description emailString The email of the user for the support authorization. expiresDate The expiering date of the support authorization. baseUrlString base URL. If not set the current base URL will be used. - Source:
- User/UserSupportAuthList.js, line 102
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- User/UserSupportAuthList.js, line 47
- See:
-
loadPreset()
-
Overrides Resource's loadPreset method.
- Source:
- User/UserSupportAuthList.js, line 41
- See:
-
loadSet(rObject)
-
Overrides Resource's loadSet method to set local variables after request.
Parameters:
Name Type Description rObjectjson JSON representation of the loaded data. - Source:
- User/UserSupportAuthList.js, line 57
- See:
-
save(options)
-
Create new support authorizations for a specific user.
Parameters:
Name Type Description optionsobject options to be used during the call
Properties
Name Type Argument Description onSuccessResource~onSuccess a callback function called in case of a success onFailureResource~onFailure <optional>
a callback function called in case of a failure baseUrlString <optional>
base URL. If not set the current base URL will be used emailString email of the user to authorize expiresDate expiration daate - Source:
- User/UserSupportAuthList.js, line 91