Class UserAccountsFirstTimeExternalPage
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.AbstractPageHandler
-
- edu.cornell.mannlib.vitro.webapp.controller.accounts.UserAccountsPage
-
- edu.cornell.mannlib.vitro.webapp.controller.accounts.user.UserAccountsFirstTimeExternalPage
-
public class UserAccountsFirstTimeExternalPage extends UserAccountsPage
Handle the first-time login of an Externally Authenticated user who has no UserAccount - let's create one! If they get here from the login, there should be an ExternalLoginInfo waiting in the session. Otherwise, they should get here by submitting the form, which will have the info in hidden fields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.accounts.UserAccountsPage
UserAccountsPage.ProfileInfo
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.AbstractPageHandler
AbstractPageHandler.InvalidParametersException, AbstractPageHandler.Message
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.accounts.UserAccountsPage
DAYS_TO_USE_PASSWORD_LINK
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.AbstractPageHandler
ctx, dpsDao, i18n, indDao, opsDao, unionModel, userAccountsDao, userAccountsModel, vclassDao, vreq
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserAccountsFirstTimeExternalPage(VitroRequest vreq)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAccountcreateAccount()StringgetAfterLoginUrl()If the afterLoginUrl is missing, go to the home page.StringgetBogusMessage()booleanisBogus()booleanisSubmit()booleanisValid()static voidsetExternalLoginInfo(javax.servlet.http.HttpServletRequest req, String externalAuthId, String afterLoginUrl)Let some other request set the External Auth ID and the afterLogin URL before redirecting to here.ResponseValuesshowPage()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.accounts.UserAccountsPage
buildListOfSelectableRoles, buildProfileInfo, buildProfileTypesList, buildUrlsMap, checkPasswordLength, editAccountUrl, figureExpirationDate, getSiteName, isEmailEnabled
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.AbstractPageHandler
applyMessage, getIntegerParameter, getStringParameter, getStringParameters, isFlagOnRequest, isParameterAsExpected
-
-
-
-
Constructor Detail
-
UserAccountsFirstTimeExternalPage
protected UserAccountsFirstTimeExternalPage(VitroRequest vreq)
-
-
Method Detail
-
setExternalLoginInfo
public static void setExternalLoginInfo(javax.servlet.http.HttpServletRequest req, String externalAuthId, String afterLoginUrl)Let some other request set the External Auth ID and the afterLogin URL before redirecting to here.
-
isBogus
public boolean isBogus()
-
getBogusMessage
public String getBogusMessage()
-
isSubmit
public boolean isSubmit()
-
isValid
public boolean isValid()
-
showPage
public final ResponseValues showPage()
-
createAccount
public UserAccount createAccount()
-
getAfterLoginUrl
public String getAfterLoginUrl()
If the afterLoginUrl is missing, go to the home page. If it is relative, make sure it doesn't start with the cotext path.
-
-