use of org.orcid.pojo.ajaxForm.MemberDetailsForm in project ORCID-Source by ORCID.
the class ResultContainer method findConsortium.
@RequestMapping(value = "/find-consortium.json", method = RequestMethod.GET)
@ResponseBody
public MemberDetailsForm findConsortium(@RequestParam("id") String id) {
MemberDetails memberDetails = salesForceManager.retrieveFreshDetails(id);
MemberDetailsForm consortiumForm = MemberDetailsForm.fromMemberDetails(memberDetails);
List<Contact> contactsList = salesForceManager.retrieveFreshContactsByAccountId(id);
salesForceManager.addOrcidsToContacts(contactsList);
salesForceManager.addAccessInfoToContacts(contactsList, memberDetails.getMember().getId());
consortiumForm.setContactsList(contactsList);
consortiumForm.setRoleMap(generateSalesForceRoleMap());
return consortiumForm;
}
use of org.orcid.pojo.ajaxForm.MemberDetailsForm in project ORCID-Source by ORCID.
the class SelfServiceController method getConsortium.
@RequestMapping(value = "/get-member-details.json", method = RequestMethod.GET)
@ResponseBody
public MemberDetailsForm getConsortium(@RequestParam("accountId") String accountId) {
checkAccess(accountId);
MemberDetails memberDetails = salesForceManager.retrieveDetails(accountId);
MemberDetailsForm consortiumForm = MemberDetailsForm.fromMemberDetails(memberDetails);
consortiumForm.setAllowedFullAccess(isAllowedFullAccess(accountId));
return consortiumForm;
}
Aggregations