Search in sources :

Example 1 with ConsortiumForm

use of org.orcid.pojo.ajaxForm.ConsortiumForm in project ORCID-Source by ORCID.

the class ManageConsortiumController method getConsortium.

@RequestMapping(value = "/get-consortium.json", method = RequestMethod.GET)
@ResponseBody
public ConsortiumForm getConsortium() {
    String accountId = salesForceManager.retrieveAccountIdByOrcid(getCurrentUserOrcid());
    MemberDetails memberDetails = salesForceManager.retrieveDetails(accountId);
    ConsortiumForm consortiumForm = ConsortiumForm.fromMemberDetails(memberDetails);
    return consortiumForm;
}
Also used : ConsortiumForm(org.orcid.pojo.ajaxForm.ConsortiumForm) MemberDetails(org.orcid.core.salesforce.model.MemberDetails) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

MemberDetails (org.orcid.core.salesforce.model.MemberDetails)1 ConsortiumForm (org.orcid.pojo.ajaxForm.ConsortiumForm)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1