com.filenet.wcm.toolkit.server.base
Interface WcmModuleInterface
All known subinterfaces:
All known implementing classes:
CompoundDocumentDataProvider, EProcessGranteeUtil, GlobalEventModule, HistoryDataProvider, RecordsManageDataProvider, WcmAnchorList, WcmAnchorTree, WcmAuthoringDataProvider, WcmAuthoringUtil, WcmDpModule, WcmEProcessDataProvider, WcmEProcessUtil, WcmHeaderModule, WcmJSPModule, WcmLayoutModule, WcmModule, WcmMultiPanelModule, WcmMultiPanelSequenceModule, WcmMultiPanelViewModule, WcmNavigationDataProvider, WcmSearchDataProvider, WcmSelectableAnchorList, WcmSignInModule, WcmUiModule, WcmWorkflowUtil, WcmXSLModule, WebContentDataProvider
- public interface WcmModuleInterface
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
addDataProvider(WcmDpModuleInterface dp)
Associate an instance of a data provider with this module.
|
|
cleanup()
Called by WcmController after persist(), when it's about to go to another JSP page.
|
getDataStore()
Get the data store object.
|
|
|
getModuleProperty(java.lang.String key)
Get a module-scoped property from the Data Store.
|
|
getName()
Get the unique name for this module.
|
getParent()
Get the module's parent if this is a contained module.
|
|
|
initialize()
Called by WcmController when the module is registered, and has access to the data store.
|
|
persist()
Called by WcmController before cleanup(), when it's about to go to another Java™Server Pages (JSP) page.
|
queryDataProvider(java.lang.String type)
Query for a data provider of the specified type.
|
|
|
setController(WcmController c)
Called by WcmController as part of module registration/un-registration.
|
|
setModuleProperty(java.lang.String key,java.lang.Object value)
Set a module-scoped property in the data store.
|
|
setName(java.lang.String value)
Set the unique name for this module.
|
|
setParent(WcmModuleInterface m)
Set the specified module as the parent of this module.
|
Method Detail
persist
- void persist()
- throws java.lang.Exception
Called by WcmController before cleanup(), when it's about to go to another Java™Server Pages (JSP) page.
This is intended for future use.
Throws:
java.lang.Exceptioncleanup
- void cleanup()
- throws java.lang.Exception
Called by WcmController after persist(), when it's about to go to another JSP page.
The module should null out any module properties that it can reconstruct later to
minimize memory consumption.
Throws:
java.lang.Exceptioninitialize
- void initialize()
- throws java.lang.Exception
Called by WcmController when the module is registered, and has access to the data store.
Do "constructor" types of things here.
Throws:
java.lang.ExceptionsetName
- void setName(java.lang.String value)
- throws java.lang.Exception
Set the unique name for this module.
All modules must be given a unique string name. This will be used for two things:
All modules must be given a unique string name. This will be used for two things:
- As part of the DataStore key that gets constructed when you use the setModuleProperty/getModuleProperty methods (to provide scoping)
- For the controller to dispatch events (i.e. eventTarget=name )
Parameters:
value - The name value. Throws:
WcmException - toolkit.WcmModule.nameInvalid, if the name contains the illegal characters NAME_DELIMITER or ( . ). java.lang.ExceptiongetName
- java.lang.String getName()
Get the unique name for this module. This will be different from the value that you pass to setName,
if the module is being parented by another module. The name returned here will be fully qualified
with any parent names.
Returns:
The fully qualified name value.
Throws:
WcmException - toolkit.WcmModule.nameInvalid, if the name contains the illegal characters NAME_DELIMITER or ( . ). addDataProvider
- void addDataProvider(WcmDpModuleInterface dp)
Associate an instance of a data provider with this module. The data providers are keyed by their
class name.
Parameters:
dp - A reference to a data provider. queryDataProvider
- WcmDpModuleInterface queryDataProvider( java.lang.String type)
Query for a data provider of the specified type. If you have one, a
reference to it is returned. If not, a null pointer is returned.
Parameters:
type - The type name for the data provider. All data providers should follow the convention of providing a public static final TYPE that can be passed here. Returns:
An instance of the data provider if found, otherwise null.
setModuleProperty
- void setModuleProperty(java.lang.String key,
- java.lang.Object value)
- throws java.lang.Exception
Set a module-scoped property in the data store.
Parameters:
key - The key name to use. value - The value to set. null is valid, and clears the key. Throws:
WcmException - (toolkit.WcmModule.setModulePropertyNullKey) WcmException - (toolkit.WcmModule.dataStoreUndefined) java.lang.ExceptiongetModuleProperty
- java.lang.Object getModuleProperty( java.lang.String key)
- throws java.lang.Exception
Get a module-scoped property from the Data Store.
Parameters:
key - The key name to use. Returns:
The value associated with the key, or null.
Throws:
WcmException - (toolkit.WcmModule.getModulePropertyNullKey) WcmException - (toolkit.WcmModule.dataStoreUndefined) java.lang.ExceptiongetDataStore
- WcmDataStore getDataStore()
- throws java.lang.Exception
Get the data store object.
Returns:
The reference to the data store.
Throws:
WcmException - (toolkit.WcmModule.moduleNotRegistered) WcmException - (toolkit.WcmModule.dataStoreUndefined) java.lang.ExceptionsetParent
- void setParent(WcmModuleInterface m)
- throws java.lang.Exception
Set the specified module as the parent of this module. This registers the module.
Parameters:
m - The module that is to be this module's parent. Throws:
WcmException - (toolkit.WcmModule.setParentAlreadyRegistered) java.lang.ExceptiongetParent
- WcmModuleInterface getParent()
Get the module's parent if this is a contained module.
Returns:
A reference to the parent module or null if this is module is not contained.
Throws:
java.lang.ExceptionsetController
- void setController(WcmController c)
- throws java.lang.Exception
Called by WcmController as part of module registration/un-registration.
Throws:
WcmException - (toolkit.wcmModule.setControllerOnUnregisteredModule) WcmException - (toolkit.wcmModule.setControllerRegisteredModule) java.lang.Exception