Class: UserDelegationList

UserDelegationList

new UserDelegationList()

Create a new instance of Delegations
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.
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
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:

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
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:
Returns:
value - the return harcoded value
Type
String

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
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: