com.filenet.wcm.toolkit.server.base
Class ConfigurableController
- java.lang.Object
com.filenet.wcm.toolkit.server.base.WcmDpContainer
com.filenet.wcm.toolkit.server.base.WcmController
com.filenet.wcm.toolkit.server.base.ConfigurableController
All implemented interfaces:
- public class ConfigurableController
- extends WcmController
Nested Class Summary
| Nested classes/interfaces inherited from class com.filenet.wcm.toolkit.server.base.WcmController |
|---|
WcmController.GetWriterResponse, WcmController.WcmEventRequest, WcmController.WindowProperties, WcmController.WorkplacePrintWriter |
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
attemptedLoadingP8ControllerPrefs
|
|
BASE_CONFIGURATION_KEY
|
|
controllerConfigName
|
|
p8ControllerPrefs
|
Constructor Summary
| Constructor and Description |
|---|
ConfigurableController()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
configureHeaderModule()
|
|
configurePage(javax.servlet.ServletContext applicationValue,javax.servlet.http.HttpServletRequest request,long windowIdMode)
|
|
getBootstrapPage()
|
getConfiguration()
|
|
|
getConfiguredHome()
|
|
getControllerConfigName()
Return the currently set configuration name being used.
|
getControllerPrefs()
Get the controller preferences based on the current configuration name.
|
|
|
getDefaultPage()
|
|
getErrorPage()
|
|
getRouters()
|
|
getSignInPage()
|
getSignInPolicy()
|
|
getStaticInitializer()
|
|
|
getWindowIdCompatibility()
|
|
isBootstrapRequired()
|
|
isControllerEvent(java.lang.String eventName)
|
|
isPreControllerEvent(java.lang.String eventName)
|
|
isStickyPage(java.lang.String pageName)
|
|
isValidHome(java.lang.String pageName)
|
|
setControllerConfigName(java.lang.String name)
Sets the controller configuration name.
|
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmDpContainer |
|---|
addDataProvider, addDataProvider, queryDataProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
controllerConfigName
- protected java.lang.String controllerConfigName
p8ControllerPrefs
- protected static AllControllerPrefs p8ControllerPrefs
attemptedLoadingP8ControllerPrefs
- protected static boolean attemptedLoadingP8ControllerPrefs
BASE_CONFIGURATION_KEY
- protected static final java.lang.String BASE_CONFIGURATION_KEY
See Also:
Constructor Detail
ConfigurableController
- public ConfigurableController()
Method Detail
getControllerPrefs
- public ControllerPrefs getControllerPrefs( )
Get the controller preferences based on the current configuration name.
Returns:
Teh controllerPrefs object.
setControllerConfigName
- public void setControllerConfigName( java.lang.String name)
Sets the controller configuration name. This name is used to find the configuration
to use from p8controller.xml. The name is matched against the configuration name setting
ex: <setting key="name">
Parameters:
name - The configuration name. getControllerConfigName
- public java.lang.String getControllerConfigName( )
Return the currently set configuration name being used.
Returns:
configurePage
- public void configurePage(javax.servlet.ServletContext applicationValue,
- javax.servlet.http.HttpServletRequest request,
- long windowIdMode)
- throws java.lang.Exception
Description copied from class:
WcmController
Call this before making any calls to registerModule. This call performs
initialization on DataStore globals, as well as initialization of the
Controller.
Overrides:
configurePage in class WcmController
Parameters:
applicationValue - The current ServletContext object. request - The current HttpServletRequest. windowIdMode - The window ID mode - NO_WINDOW_ID, PROPOGATE_WINDOW_ID (default), REQUIRE_WINDOW_ID, or NEW_WINDOW_ID. Throws:
java.lang.ExceptionconfigureHeaderModule
- public void configureHeaderModule( )
- throws java.lang.Exception
Description copied from class:
WcmController
Configures the default toolkit implementation - WcmHeaderModule.
Specified by:
configureHeaderModule in interface WcmControllerBehaviorInterface
Overrides:
configureHeaderModule in class WcmController
Throws:
java.lang.ExceptionisPreControllerEvent
- public boolean isPreControllerEvent( java.lang.String eventName)
Description copied from interface:
WcmControllerBehaviorInterface
Return true if the named event is a valid "pre" controller
event (optional).
Specified by:
isPreControllerEvent in interface WcmControllerBehaviorInterface
Overrides:
isPreControllerEvent in class WcmController
Parameters:
eventName - The name of the event. isControllerEvent
- public boolean isControllerEvent( java.lang.String eventName)
Description copied from interface:
WcmControllerBehaviorInterface
Return true if the named event is a valid controller event (optional).
Specified by:
isControllerEvent in interface WcmControllerBehaviorInterface
Overrides:
isControllerEvent in class WcmController
Parameters:
eventName - The name of the event. isValidHome
- public boolean isValidHome(java.lang.String pageName)
- throws java.lang.Exception
Description copied from interface:
WcmControllerBehaviorInterface
Return true if the specified page is a valid home page.
Parameters:
pageName - The name of the page. Throws:
java.lang.ExceptiongetSignInPolicy
- public WcmSignInPolicyInterface getSignInPolicy( )
- throws java.lang.Exception
Description copied from class:
WcmController
Factory method. Returns the singleton instance of WcmSignInPolicyInterface used
with this controller implementation.
Specified by:
getSignInPolicy in interface WcmControllerBehaviorInterface
Overrides:
getSignInPolicy in class WcmController
Returns:
The instance of WcmSignInPolicyInterface.
Throws:
java.lang.ExceptiongetStaticInitializer
- public StaticInitializerInterface getStaticInitializer( )
- throws java.lang.Exception
Description copied from class:
WcmController
getStaticInitializer.
Optionally returns an instance of static initializer interface.
If non-null is returned, this is called instead of calling
controller.initializeStaticClasses() to initialize static classes.
The base implementation returns null.
Overrides:
getStaticInitializer in class WcmController
Throws:
java.lang.ExceptiongetConfiguration
- public WcmConfigurationInterface getConfiguration( )
- throws java.lang.Exception
Description copied from interface:
WcmControllerBehaviorInterface
Factory method. Return the singleton instance of WcmConfiguration
that implements the configuration object for your controller.
Throws:
java.lang.ExceptionisBootstrapRequired
- public boolean isBootstrapRequired( )
Description copied from class:
WcmController
Returns true if required bootstrap options have not already been set by an administrator.
This method is called by the
getSignInPolicy
method. If you're not using a bootstrap page, implement the
getBootstrapPage
method to return null.
Specified by:
isBootstrapRequired in interface WcmControllerBehaviorInterface
Overrides:
isBootstrapRequired in class WcmController
Returns:
boolean true or false.
getBootstrapPage
- public java.lang.String getBootstrapPage( )
Description copied from interface:
WcmControllerBehaviorInterface
Return the name of the bootstrap page to go to if bootstrap is required.
getDefaultPage
- public java.lang.String getDefaultPage( )
- throws java.lang.Exception
Description copied from interface:
WcmControllerBehaviorInterface
Return the name of the default page. This should be a fixed value.
Throws:
java.lang.ExceptiongetErrorPage
- public java.lang.String getErrorPage( )
- throws java.lang.Exception
Description copied from interface:
WcmControllerBehaviorInterface
Return the name of the error page. This should be a fixed value.
Throws:
java.lang.ExceptiongetSignInPage
- public java.lang.String getSignInPage( )
Description copied from interface:
WcmControllerBehaviorInterface
Return the name of the sign in page. This should be a fixed value.
getConfiguredHome
- public java.lang.String getConfiguredHome( )
- throws java.lang.Exception
Description copied from interface:
WcmControllerBehaviorInterface
Return the configured home page. This may be set via a preferences
mechanism, or, could be role based.
Throws:
java.lang.ExceptiongetRouters
- public java.util.Vector getRouters( )
- throws java.lang.Exception
Description copied from interface:
WcmControllerBehaviorInterface
Implement this method to provide a list of the Process Engine routers that
your application will be using - in the format "host:port".
Throws:
java.lang.ExceptionisStickyPage
- public boolean isStickyPage(java.lang.String pageName)
Description copied from interface:
WcmControllerBehaviorInterface
Return true if the specified page is sticky. This means that when
a user signs out from this page, when they sign in, they are returned
to it.
Parameters:
pageName - The name of the page. getWindowIdCompatibility
- protected boolean getWindowIdCompatibility( )
Overrides:
getWindowIdCompatibility in class WcmController