use of org.orcid.pojo.ajaxForm.ContactsForm in project ORCID-Source by ORCID.
the class ManageConsortiumController method getContacts.
@RequestMapping(value = "/get-contacts.json", method = RequestMethod.GET)
@ResponseBody
public ContactsForm getContacts() {
String accountId = salesForceManager.retrieveAccountIdByOrcid(getCurrentUserOrcid());
ContactsForm contactsForm = new ContactsForm();
List<Contact> contactsList = salesForceManager.retrieveContactsByAccountId(accountId);
salesForceManager.addOrcidsToContacts(contactsList);
contactsForm.setContactsList(contactsList);
contactsForm.setRoleMap(generateSalesForceRoleMap());
return contactsForm;
}
Aggregations