Package org.opencms.jsp.userdata
Class CmsJspUserDataRequestBean
java.lang.Object
org.opencms.jsp.userdata.CmsJspUserDataRequestBean
Bean used by the dynamic function JSP for user data requests.
The dynamic function calls the action() method on this bean, which returns the new state for the JSP to render. Error/status messages are also available to the JSP via getters.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Action id.static final String
Action id.static final String
Action id.static final String
Request parameter for the action.static final String
Request parameter for the authorization code.static final String
Request parameter.static final String
Request parameter.static final String
Request parameter.static final String
Request parameter.static final String
Request parameter. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalled by the user data request function JSP to handle the user data request logic.Gets the user data download link.Gets the error HTML (this is only shown in the error state).Gets the user data HTML.getTexts()
Gets the lazy map used to access the configurable texts to display by the user data request dynamic function.boolean
isError()
Checks if the error HTML has been set.boolean
Checks if we need to confirm the user's email rather than their user name and password.
-
Field Details
-
ACTION_REQUEST
Action id.- See Also:
-
ACTION_VIEW
Action id.- See Also:
-
ACTION_VIEWAUTH
Action id.- See Also:
-
PARAM_ACTION
Request parameter for the action.- See Also:
-
PARAM_AUTH
Request parameter for the authorization code.- See Also:
-
PARAM_EMAIL
Request parameter.- See Also:
-
PARAM_PASSWORD
Request parameter.- See Also:
-
PARAM_ROOTPATH
Request parameter.- See Also:
-
PARAM_UDRID
Request parameter.- See Also:
-
PARAM_USER
Request parameter.- See Also:
-
-
Constructor Details
-
CmsJspUserDataRequestBean
public CmsJspUserDataRequestBean()Creates a new instance.
-
-
Method Details
-
action
Called by the user data request function JSP to handle the user data request logic. Returns the next state which should be shown by the JSP.- Parameters:
cms
- the CMS contextreqParameters
- the request parameters- Returns:
- the next state to render
- Throws:
CmsException
- if something goes wrong
-
getDownloadLink
Gets the user data download link.- Returns:
- the user data download link
-
getErrorHtml
Gets the error HTML (this is only shown in the error state).- Returns:
- the error HTML
-
getInfoHtml
Gets the user data HTML.- Returns:
- the user data HTML
-
getTexts
Gets the lazy map used to access the configurable texts to display by the user data request dynamic function.- Returns:
- the lazy map
-
isError
Checks if the error HTML has been set.- Returns:
- true if the error HTML has been set
-
isOnlyEmailRequired
Checks if we need to confirm the user's email rather than their user name and password.- Returns:
- true if we only need the email address
-