public class OrcidIntegrationController extends FreemarkerHttpServlet
Default: clear status for both readProfile and addExternalIDs
show intro screen orcidOffer.ftl
The click "do it", goes to /getProfileAuth
Or "return to profile"
/getProfileAuth: If already authorized, redirect to /readProfile
Else, do the dance, ending with /readProfile callback
Denied? show orcidDenied.ftl
Failed? show orcidFailed.ftl
/readProfile: read the profile, store in status
figure external ID options, show orcidOfferIds.ftl
If they click "do it", goes /authExternalIds
If they click "nah", return to profile
/authExternalIds: if already authorized, redirect to /addExternalIds
Else, do the dance, ending with /addExternalIds callback
/addExternalIds add one or both IDs, store new profile in status
show orcidSuccess.ftl with "return to profile" and "view profile" links.
FreemarkerHttpServlet.TemplateVitroHttpServlet.PickListSorter| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EXTERNAL_ID_COMMON_NAME |
static String |
PATH_DEFAULT |
static String |
PROPERTY_EXTERNAL_ID_COMMON_NAME |
BODY_TEMPLATE_TYPE, PAGE_TEMPLATE_TYPEHTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE| Constructor and Description |
|---|
OrcidIntegrationController() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Get in before FreemarkerHttpServlet for special handling.
|
protected ResponseValues |
processRequest(VitroRequest vreq)
Look at the path info and delegate to a handler.
|
protected AuthorizationRequest |
requiredActions(VitroRequest vreq)
We return AUTHORIZED here, but we want the LogoutRedirector to know that
the user should not remain on this page after logging out.
|
doException, doForward, doPost, doRdf, doRedirect, doResponse, doTemplate, getBeansWrapper, getDisplayModelMenu, getFreemarkerComponentsForJsp, getPageTemplateName, getPageTemplateValues, getThemeDir, getTitle, handleException, processTemplate, processTemplateToString, wrap, wrap, write, writePage, writeTemplate, writeTemplatedumpRequestParameters, isAuthorizedToDisplayPage, maximumMultipartFileSize, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickList, stashFileSizeExceptiondoDelete, doHead, doOptions, doPut, doTrace, getLastModified, servicepublic static final String PATH_DEFAULT
public static final String PROPERTY_EXTERNAL_ID_COMMON_NAME
public static final String DEFAULT_EXTERNAL_ID_COMMON_NAME
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException,
javax.servlet.ServletException
doGet in class FreemarkerHttpServletIOExceptionjavax.servlet.ServletExceptionprotected AuthorizationRequest requiredActions(VitroRequest vreq)
requiredActions in class FreemarkerHttpServletprotected ResponseValues processRequest(VitroRequest vreq) throws Exception
processRequest in class FreemarkerHttpServletExceptionCopyright © 2016. All rights reserved.