RegistrationActionsMixin Class
Controller mixin that implements common actions performed on registrations (and registration drafts).
Item Index
Methods
Methods
_generateRegistrationPayload
-
draft
-
registrationChoice
-
liftEmbargo
Build the request payload used when creating a registration from a draft.
Parameters:
Returns:
Returns the attributes portion of the payload for creating a registration.
_updateMetadata
-
currentMetadata
-
newMetadata
Update the current registration metadata with new responses. Takes the currentMetadata and recursively merges in the newMetadata.
Parameters:
Returns:
Returns merge of currentMetadata and newMetadata
createDraft
-
schemaId
Create a draft registration of the node.
Parameters:
-
schemaId
StringID of the chosen registration schema
Returns:
Returns a promise that resolves to the updated node - with the newly created draft registration.
deleteDraft
-
draft
Delete a draft registration of the node.
Parameters:
-
draft
ObjectDraft to be deleted
Returns:
Returns a promise that resolves after the deletion of the draft.
editDraft
-
updatedMetadata
Edit a draft registration of the node
Parameters:
-
updatedMetadata
ObjectResponses to questions in the registration schema, nested in the format the registration schema expects to questions in the registration schema
Returns:
Returns a promise that resolves to the updated draft