use of org.orcid.pojo.ajaxForm.KeywordsForm in project ORCID-Source by ORCID.
the class WorkspaceController method getKeywordsFormJson.
@RequestMapping(value = "/my-orcid/keywordsForms.json", method = RequestMethod.GET)
@ResponseBody
public KeywordsForm getKeywordsFormJson(HttpServletRequest request) throws NoSuchRequestHandlingMethodException {
Keywords keywords = profileKeywordManager.getKeywords(getCurrentUserOrcid());
KeywordsForm form = KeywordsForm.valueOf(keywords);
// Set the default visibility
ProfileEntity profile = profileEntityCacheManager.retrieve(getCurrentUserOrcid());
if (profile != null && profile.getActivitiesVisibilityDefault() != null) {
form.setVisibility(Visibility.valueOf(profile.getActivitiesVisibilityDefault()));
}
return form;
}
Aggregations