com.filenet.wcm.toolkit.server.ui
Class WcmSignInModule
- java.lang.Object
com.filenet.wcm.toolkit.server.base.WcmDpContainer
com.filenet.wcm.toolkit.server.base.WcmModule
com.filenet.wcm.toolkit.server.base.GlobalEventModule
com.filenet.wcm.toolkit.server.base.WcmUiModule
com.filenet.wcm.toolkit.server.ui.WcmSignInModule
All implemented interfaces:
- public class WcmSignInModule
- extends WcmUiModule
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
controller
|
|
CREDENTIALS_EXCEPTION
|
|
ERR_LABEL
|
|
GUEST_LABEL
|
|
guestAllowed
|
|
guestPassword
|
|
guestUserName
|
|
HELP_LABEL
|
|
isClientTimeZoneDefined
|
|
isLocal
|
|
PASSWORD_LABEL
|
|
RESET_LABEL
|
|
signInParameters
|
|
signInProcessor
|
|
SUBMIT_LABEL
|
|
targetHelpUrl
|
|
TYPE_GUEST
|
|
USER_LABEL
|
| Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule |
|---|
locale, NAME_DELIMITER |
Constructor Summary
| Constructor and Description |
|---|
WcmSignInModule()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
areRequiredParametersPresent(WcmController controller,javax.servlet.http.HttpServletRequest request)
|
|
getErrorMessage()
If the last sign-in was unsuccessful, this method will return the error
message string related to the exception that was caught.
|
|
getErrorPage()
|
|
getFormName()
Returns the form name used by WcmSignInModule.
|
|
getGuestConfiguration()
Override, initializes guest information
|
|
getHiddenFields()
Return a set of hidden fields that can optionally be written into the sign-in
form.
|
|
getLastUser()
If the last sign-in was unsuccessful, this method will return the
username that signin was attempted on - assuming it wasn't a guest
sign-in.
|
|
getMaxErrorLength()
Returns the recommended maximimum length of the error message's
length to show on the sign-in page.
|
|
getSignInParameters(javax.servlet.http.HttpServletRequest request)
|
|
getSignInProcessor(javax.servlet.http.HttpServletRequest request)
|
|
getTargetBase()
Get the value of the target base.
|
|
getTargetUrl()
Get the value of the target URL.
|
|
initialize()
Override, and initialize this UI module.
|
|
isGuestAllowed()
Return true or false value that specifies whether or not
this application is configured to allow guest sign ins.
|
|
isSessionLocal()
|
|
isSessionLocal(javax.servlet.http.HttpServletRequest request)
Returns true if the session is local
|
|
isTokenException()
|
|
onGuestSignIn(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Event handler for GuestSignIn event.
|
|
onReset(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Event handler for the Reset event, which causes any displayed error
messages to be cleared, causes "getErrorMessage()" to return null.
|
|
onSignIn(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Event handler for SignIn event - when the user has entered credentials,
and submits the form.
|
|
onStartPage(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Event handler for the Reset event, which causes any displayed error
messages to be cleared, causes "getErrorMessage()" to return null.
|
|
render(java.io.Writer w)
Renders the module
|
|
returnToPage()
Redirect to the start page as specified either by targetBase and
targetUrl.
|
|
setDefaultUser(java.lang.String value)
|
|
setErrorMessage(java.lang.String value)
|
|
setErrorPage(java.lang.String value)
|
|
setLastUser(java.lang.String value)
|
|
setTokenException(boolean value)
|
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmUiModule |
|---|
getActive, getBasePath, getBaseUrl, getBaseURLBuilder, getControllerEventUrl, getControllerEventUrl, getEventFormFields, getEventFormFields, getEventFormTag, getEventFormTag, getEventUrl, getEventUrl, getEventUrl, getEventUrl, getFormSubmitUrl, getFormSubmitUrl, getGlobalEventUrl, getGlobalEventUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getUiParent, peekEvent, renderJSP, routeEvent, routeEvent, serverSideInclude, serverSideInclude, setActive, setJSP |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.GlobalEventModule |
|---|
subscribeGlobalEvent |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmModule |
|---|
addChild, addChild, addChild, cleanup, debugTrace, getClassProperty, getClassProperty, getClassPropertyKeys, getConfiguration, getController, getDataStore, getModuleProperty, getModuleProperty, getModuleProperty, getModuleProperty, getModulePropertyKeys, getName, getParent, getWindowProperty, getWindowProperty, persist, queryDataProvider, setClassProperty, setClassProperty, setController, setModuleProperty, setModuleProperty, setName, setParent, setPortletParent, setWindowProperty |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmDpContainer |
|---|
addDataProvider, addDataProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface |
|---|
addDataProvider, cleanup, getDataStore, getModuleProperty, getName, getParent, persist, queryDataProvider, setController, setModuleProperty, setName, setParent |
Field Detail
TYPE_GUEST
- public static final java.lang.String TYPE_GUEST
See Also:
SUBMIT_LABEL
- public static final WcmString SUBMIT_LABEL
RESET_LABEL
- public static final WcmString RESET_LABEL
GUEST_LABEL
- public static final WcmString GUEST_LABEL
HELP_LABEL
- public static final WcmString HELP_LABEL
USER_LABEL
- public static final WcmString USER_LABEL
PASSWORD_LABEL
- public static final WcmString PASSWORD_LABEL
ERR_LABEL
- public static final WcmString ERR_LABEL
CREDENTIALS_EXCEPTION
- public static final WcmString CREDENTIALS_EXCEPTION
guestAllowed
- protected boolean guestAllowed
guestUserName
- protected java.lang.String guestUserName
guestPassword
- protected java.lang.String guestPassword
targetHelpUrl
- protected java.lang.String targetHelpUrl
signInProcessor
- protected WcmSignInProcessor signInProcessor
isLocal
- protected java.lang.Boolean isLocal
controller
- protected WcmController controller
signInParameters
- protected java.util.HashMap signInParameters
isClientTimeZoneDefined
- protected boolean isClientTimeZoneDefined
Constructor Detail
WcmSignInModule
- public WcmSignInModule()
Method Detail
initialize
- public void initialize()
- throws java.lang.Exception
Override, and initialize this UI module.
Throws:
java.lang.ExceptiononStartPage
- public void onStartPage(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Event handler for the Reset event, which causes any displayed error
messages to be cleared, causes "getErrorMessage()" to return null.
Specified by:
onStartPage in interface WcmUiModuleInterface
Overrides:
onStartPage in class GlobalEventModule
Parameters:
request - HttpServletRequest response - HttpServletResponse Throws:
java.lang.ExceptionisSessionLocal
- public boolean isSessionLocal()
isSessionLocal
- public boolean isSessionLocal(javax.servlet.http.HttpServletRequest request)
- throws java.lang.Exception
Returns true if the session is local
Parameters:
request - Returns:
Throws:
java.lang.ExceptiongetFormName
- public java.lang.String getFormName( )
Returns the form name used by WcmSignInModule.
Specified by:
getFormName in interface WcmUiModuleInterface
Overrides:
getFormName in class WcmUiModule
Returns:
The form name, returns null if no form is used.
getMaxErrorLength
- public int getMaxErrorLength()
Returns the recommended maximimum length of the error message's
length to show on the sign-in page.
Returns:
int
getHiddenFields
- public java.lang.String getHiddenFields( )
Return a set of hidden fields that can optionally be written into the sign-in
form. These include the sign-in page parameters, so that they are persisted
in the browser, and hidden fields to support retrieval of the browser machine's
timezone information (when required).
Returns:
A String of HTML.
getGuestConfiguration
- protected void getGuestConfiguration( )
- throws java.lang.Exception
Override, initializes guest information
Throws:
java.lang.ExceptiongetSignInParameters
- public java.util.HashMap getSignInParameters( javax.servlet.http.HttpServletRequest request)
getSignInProcessor
- protected WcmSignInProcessor getSignInProcessor( javax.servlet.http.HttpServletRequest request)
- throws java.lang.Exception
Throws:
java.lang.ExceptionareRequiredParametersPresent
- public static boolean areRequiredParametersPresent( WcmController controller,
- javax.servlet.http.HttpServletRequest request)
isGuestAllowed
- public boolean isGuestAllowed()
Return true or false value that specifies whether or not
this application is configured to allow guest sign ins.
If this method returns true, you can provide a click when
rendering the module for the "onGuestSignIn" event.
Returns:
boolean true/false
getTargetBase
- public java.lang.String getTargetBase( )
Get the value of the target base. This is the "base" portion
of the URL that the sign in page routes to after a successful
sign in.
Returns:
The target base value.
getTargetUrl
- public java.lang.String getTargetUrl( )
Get the value of the target URL. This is the "page" portion
of the URL that the sign in page routes to after a successful
sign in.
Returns:
The target base value.
returnToPage
- protected void returnToPage()
- throws java.lang.Exception
Redirect to the start page as specified either by targetBase and
targetUrl. If targetUrl is not passed in as a page parameter to
the sign in page, use the URL returned from signInLocal or
signInRemote.
Override if you want to customize this behavior.
Throws:
java.lang.ExceptiononSignIn
- public void onSignIn(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Event handler for SignIn event - when the user has entered credentials,
and submits the form.
Parameters:
request - HttpServletRequest response - HttpServletResponse Throws:
java.lang.ExceptiononGuestSignIn
- public void onGuestSignIn(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Event handler for GuestSignIn event.
Parameters:
request - HttpServletRequest response - HttpServletResponse Throws:
java.lang.ExceptiononReset
- public void onReset(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Event handler for the Reset event, which causes any displayed error
messages to be cleared, causes "getErrorMessage()" to return null.
Parameters:
request - HttpServletRequest response - HttpServletResponse Throws:
java.lang.ExceptiongetLastUser
- public java.lang.String getLastUser( )
- throws java.lang.Exception
If the last sign-in was unsuccessful, this method will return the
username that signin was attempted on - assuming it wasn't a guest
sign-in.
Returns:
User name from last failed attempt to sign-in.
Throws:
java.lang.ExceptionsetLastUser
- protected void setLastUser(java.lang.String value)
- throws java.lang.Exception
Throws:
java.lang.ExceptionsetDefaultUser
- protected void setDefaultUser(java.lang.String value)
getErrorMessage
- public java.lang.String getErrorMessage( )
- throws java.lang.Exception
If the last sign-in was unsuccessful, this method will return the error
message string related to the exception that was caught.
Returns:
Error message from last failed attempt to sign-in.
Throws:
java.lang.ExceptionsetErrorMessage
- protected void setErrorMessage( java.lang.String value)
- throws java.lang.Exception
Throws:
java.lang.ExceptiongetErrorPage
- public java.lang.String getErrorPage( )
- throws java.lang.Exception
Throws:
java.lang.ExceptionsetErrorPage
- protected void setErrorPage(java.lang.String value)
- throws java.lang.Exception
Throws:
java.lang.ExceptionisTokenException
- public boolean isTokenException( )
- throws java.lang.Exception
Throws:
java.lang.ExceptionsetTokenException
- protected void setTokenException( boolean value)
- throws java.lang.Exception
Throws:
java.lang.Exceptionrender
- public void render(java.io.Writer w)
- throws java.lang.Exception
Renders the module
Parameters:
w - Throws:
java.lang.Exception