com.filenet.wcm.toolkit.server.ui

Class WcmSignInModule

  1. java.lang.Object
  2. extended bycom.filenet.wcm.toolkit.server.base.WcmDpContainer
  3. extended bycom.filenet.wcm.toolkit.server.base.WcmModule
  4. extended bycom.filenet.wcm.toolkit.server.base.GlobalEventModule
  5. extended bycom.filenet.wcm.toolkit.server.base.WcmUiModule
  6. extended bycom.filenet.wcm.toolkit.server.ui.WcmSignInModule
All implemented interfaces:
WcmModuleInterface, WcmUiModuleInterface

  1. public class WcmSignInModule
  2. extends WcmUiModule
UI module that renders Sign In screen

Field Summary

Modifier and Type Field and Description
  1. protected
  2. WcmController
controller
  1. static
  2. WcmString
CREDENTIALS_EXCEPTION
  1. static
  2. WcmString
ERR_LABEL
  1. static
  2. WcmString
GUEST_LABEL
  1. protected
  2. boolean
guestAllowed
  1. protected
  2. java.lang.String
guestPassword
  1. protected
  2. java.lang.String
guestUserName
  1. static
  2. WcmString
HELP_LABEL
  1. protected
  2. boolean
isClientTimeZoneDefined
  1. protected
  2. java.lang.Boolean
isLocal
  1. static
  2. WcmString
PASSWORD_LABEL
  1. static
  2. WcmString
RESET_LABEL
  1. protected
  2. java.util.HashMap
signInParameters
  1. protected
  2. WcmSignInProcessor
signInProcessor
  1. static
  2. WcmString
SUBMIT_LABEL
  1. protected
  2. java.lang.String
targetHelpUrl
  1. static
  2. java.lang.String
TYPE_GUEST
  1. static
  2. WcmString
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
  1. static
  2. boolean
areRequiredParametersPresent(WcmController controller,javax.servlet.http.HttpServletRequest request)
  1. java.lang.String
getErrorMessage()
If the last sign-in was unsuccessful, this method will return the error message string related to the exception that was caught.
  1. java.lang.String
getErrorPage()
  1. java.lang.String
getFormName()
Returns the form name used by WcmSignInModule.
  1. protected
  2. void
getGuestConfiguration()
Override, initializes guest information
  1. java.lang.String
getHiddenFields()
Return a set of hidden fields that can optionally be written into the sign-in form.
  1. java.lang.String
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.
  1. int
getMaxErrorLength()
Returns the recommended maximimum length of the error message's length to show on the sign-in page.
  1. java.util.HashMap
getSignInParameters(javax.servlet.http.HttpServletRequest request)
  1. protected
  2. WcmSignInProcessor
getSignInProcessor(javax.servlet.http.HttpServletRequest request)
  1. java.lang.String
getTargetBase()
Get the value of the target base.
  1. java.lang.String
getTargetUrl()
Get the value of the target URL.
  1. void
initialize()
Override, and initialize this UI module.
  1. boolean
isGuestAllowed()
Return true or false value that specifies whether or not this application is configured to allow guest sign ins.
  1. boolean
isSessionLocal()
  1. boolean
isSessionLocal(javax.servlet.http.HttpServletRequest request)
Returns true if the session is local
  1. boolean
isTokenException()
  1. void
onGuestSignIn(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Event handler for GuestSignIn event.
  1. void
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.
  1. void
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.
  1. void
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.
  1. void
render(java.io.Writer w)
Renders the module
  1. protected
  2. void
returnToPage()
Redirect to the start page as specified either by targetBase and targetUrl.
  1. protected
  2. void
setDefaultUser(java.lang.String value)
  1. protected
  2. void
setErrorMessage(java.lang.String value)
  1. protected
  2. void
setErrorPage(java.lang.String value)
  1. protected
  2. void
setLastUser(java.lang.String value)
  1. protected
  2. void
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

  1. public static final java.lang.String TYPE_GUEST
See Also:

SUBMIT_LABEL

  1. public static final WcmString SUBMIT_LABEL

RESET_LABEL

  1. public static final WcmString RESET_LABEL

GUEST_LABEL

  1. public static final WcmString GUEST_LABEL

HELP_LABEL

  1. public static final WcmString HELP_LABEL

USER_LABEL

  1. public static final WcmString USER_LABEL

PASSWORD_LABEL

  1. public static final WcmString PASSWORD_LABEL

ERR_LABEL

  1. public static final WcmString ERR_LABEL

CREDENTIALS_EXCEPTION

  1. public static final WcmString CREDENTIALS_EXCEPTION

guestAllowed

  1. protected boolean guestAllowed

guestUserName

  1. protected java.lang.String guestUserName

guestPassword

  1. protected java.lang.String guestPassword

targetHelpUrl

  1. protected java.lang.String targetHelpUrl

signInProcessor

  1. protected WcmSignInProcessor signInProcessor

isLocal

  1. protected java.lang.Boolean isLocal

controller

  1. protected WcmController controller

signInParameters

  1. protected java.util.HashMap signInParameters

isClientTimeZoneDefined

  1. protected boolean isClientTimeZoneDefined

Constructor Detail

WcmSignInModule

  1. public WcmSignInModule()

Method Detail

initialize

  1. public void initialize()
  2. throws java.lang.Exception
Override, and initialize this UI module.
Specified by:
Overrides:
Throws:
java.lang.Exception

onStartPage

  1. public void onStartPage(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. 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:
Overrides:
Parameters:
request - HttpServletRequest
response - HttpServletResponse
Throws:
java.lang.Exception

isSessionLocal

  1. public boolean isSessionLocal()

isSessionLocal

  1. public boolean isSessionLocal(javax.servlet.http.HttpServletRequest request)
  2. throws java.lang.Exception
Returns true if the session is local
Parameters:
request -
Returns:
Throws:
java.lang.Exception

getFormName

  1. public java.lang.String getFormName( )
Returns the form name used by WcmSignInModule.
Specified by:
Overrides:
Returns:
The form name, returns null if no form is used.

getMaxErrorLength

  1. public int getMaxErrorLength()
Returns the recommended maximimum length of the error message's length to show on the sign-in page.
Returns:
int

getHiddenFields

  1. 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

  1. protected void getGuestConfiguration( )
  2. throws java.lang.Exception
Override, initializes guest information
Throws:
java.lang.Exception

getSignInParameters

  1. public java.util.HashMap getSignInParameters( javax.servlet.http.HttpServletRequest request)

getSignInProcessor

  1. protected WcmSignInProcessor getSignInProcessor( javax.servlet.http.HttpServletRequest request)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

areRequiredParametersPresent

  1. public static boolean areRequiredParametersPresent( WcmController controller,
  2. javax.servlet.http.HttpServletRequest request)

isGuestAllowed

  1. 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

  1. 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

  1. 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

  1. protected void returnToPage()
  2. 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.Exception

onSignIn

  1. public void onSignIn(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. 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.Exception

onGuestSignIn

  1. public void onGuestSignIn(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Event handler for GuestSignIn event.
Parameters:
request - HttpServletRequest
response - HttpServletResponse
Throws:
java.lang.Exception

onReset

  1. public void onReset(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. 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.Exception

getLastUser

  1. public java.lang.String getLastUser( )
  2. 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.Exception

setLastUser

  1. protected void setLastUser(java.lang.String value)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

setDefaultUser

  1. protected void setDefaultUser(java.lang.String value)

getErrorMessage

  1. public java.lang.String getErrorMessage( )
  2. 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.Exception

setErrorMessage

  1. protected void setErrorMessage( java.lang.String value)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

getErrorPage

  1. public java.lang.String getErrorPage( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

setErrorPage

  1. protected void setErrorPage(java.lang.String value)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

isTokenException

  1. public boolean isTokenException( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

setTokenException

  1. protected void setTokenException( boolean value)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

render

  1. public void render(java.io.Writer w)
  2. throws java.lang.Exception
Renders the module
Specified by:
Overrides:
render in class WcmUiModule
Parameters:
w -
Throws:
java.lang.Exception