@WebServlet(name="OrcidIntegrationController",
urlPatterns="/orcid/*")
public class OrcidIntegrationController
extends edu.cornell.mannlib.vitro.webapp.controller.freemarker.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.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EXTERNAL_ID_COMMON_NAME |
static String |
PATH_DEFAULT |
static String |
PROPERTY_EXTERNAL_ID_COMMON_NAME |
| 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 edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.ResponseValues |
processRequest(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
Look at the path info and delegate to a handler.
|
protected edu.cornell.mannlib.vitro.webapp.auth.requestedAction.AuthorizationRequest |
requiredActions(edu.cornell.mannlib.vitro.webapp.controller.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 edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServletIOExceptionjavax.servlet.ServletExceptionprotected edu.cornell.mannlib.vitro.webapp.auth.requestedAction.AuthorizationRequest requiredActions(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
requiredActions in class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServletprotected edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.ResponseValues processRequest(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
throws Exception
processRequest in class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServletExceptionCopyright © 2022. All rights reserved.