new UserDelegationList()
Create a new instance of Delegations
- Source:
- User/UserDelegationList.js, line 32
- See:
Properties:
Name | Type | Description |
---|---|---|
active |
Array | Array of active delegations. |
inactive |
Array | Array of inactive delegations. |
pending |
Array | Array of pending delegations. |
author |
Object | The author of the resource |
delegations |
Array | Array of delegations. |
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 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 status
string <optional>
status of delegation (will be set to PENDING if null) author
User user delegating contributor
User user delegated project
project <optional>
project associated startDate
Date expiration date - Source:
- User/UserDelegationList.js, line 158
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- User/UserDelegationList.js, line 55
- See:
-
harcodedValues(paramGroup, localID) → {String}
-
Retrieve harcoded values for the user class.
Parameters:
Name Type Description paramGroup
String group of parameters localID
String the local identifier - Source:
- User/UserDelegationList.js, line 204
Returns:
value - the return harcoded value- Type
- String
-
loadPreset()
-
Overrides Resource's loadPreset method.
- Source:
- User/UserDelegationList.js, line 49
- 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:
- User/UserDelegationList.js, line 65
- 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 status
string <optional>
status of delegation (will be set to PENDING if null) author
User user delegating contributor
User user delegated project
project <optional>
project associated startDate
Date expiration date - Source:
- User/UserDelegationList.js, line 141