com.filenet.wcm.apps.server.ui.wizard
Class WcmFileSelectWizardPage
- 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.apps.server.ui.wizard.WcmFileSelectWizardPage
All implemented interfaces:
com.filenet.wcm.toolkit.server.base.WcmModuleInterface, com.filenet.wcm.toolkit.server.base.WcmPanelInterface, com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface, com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Direct known subclasses:
- public class WcmFileSelectWizardPage
- extends com.filenet.wcm.toolkit.server.base.WcmUiModule
- implements com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Nested Class Summary
| Modifier and Type | Class and Description |
|---|---|
|
WcmFileSelectWizardPage.FileUploadManagementModule
|
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
adp
|
|
authorState
|
|
bAutoClassify
|
|
config
|
|
FORM_NAME
|
|
listView
|
|
naviState
|
|
nType
|
|
requestParams
|
|
sitePrefs
|
|
uploader
|
|
visibleRefServices
|
|
wsAfter
|
|
wsAssociation
|
|
wsBefore
|
|
wsContinue
|
|
wsContinueText
|
|
wsExample
|
|
wsExternalFile
|
|
wsFile
|
|
wsLocalFile
|
|
wsNone
|
|
wsPathLabel
|
|
wsRequired
|
|
wsSavedFile
|
|
wsType
|
|
wsUndefined
|
|
wsUseSavedFile
|
|
wsWarning
|
| Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule |
|---|
locale, NAME_DELIMITER |
Constructor Summary
| Constructor and Description |
|---|
WcmFileSelectWizardPage(int type)
Sets the type and the module name.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
addShortcut()
Subclass of this will add shortcut
|
|
completeWizard()
|
|
getFormName()
|
|
getImageServiceTableHTML()
|
|
initialize()
Creates the data provider and retrieves the Authoring state.
|
|
isFinished()
This page always accepts what the user inputs, so it is always ready
for the finish event.
|
|
isUsingActiveXControl()
Returns true if the file selection page is using an activeX control.
|
|
onContinue(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onFinishedActiveX(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Complete event triggered after the Active-X control has finished its operations
|
|
onStartPage(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
The default event handler sets up the display objects for rendering.
|
|
panelCancel(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Empty function - nothing to cleanup.
|
|
panelFinish(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
When the Finish button is pressed, this first checks to see
the type of file it is, putting it in the WcmUploadStream object if
it is a file, or passing the URL if appropriate.
|
|
panelInit()
Empty function - nothing to initialize or cleanup.
|
|
panelSave(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
render(java.io.Writer w)
|
|
renderExternalSection(java.io.Writer w)
|
|
renderFileUploadSection(java.io.Writer w)
|
|
renderFooterSection(java.io.Writer w)
|
|
renderHeaderSection(java.io.Writer w)
|
|
showMultiSelectOperations()
|
|
validateExternalUrl(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response,java.lang.String url)
|
|
validateLocalFileName(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
| 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
wsType
- protected static final com.filenet.wcm.toolkit.util.WcmString wsType
wsFile
- protected static final com.filenet.wcm.toolkit.util.WcmString wsFile
wsLocalFile
- protected static final com.filenet.wcm.toolkit.util.WcmString wsLocalFile
wsSavedFile
- protected static final com.filenet.wcm.toolkit.util.WcmString wsSavedFile
wsExternalFile
- protected static final com.filenet.wcm.toolkit.util.WcmString wsExternalFile
wsNone
- protected static final com.filenet.wcm.toolkit.util.WcmString wsNone
wsAssociation
- protected static final com.filenet.wcm.toolkit.util.WcmString wsAssociation
wsExample
- protected static final com.filenet.wcm.toolkit.util.WcmString wsExample
wsUseSavedFile
- protected static final com.filenet.wcm.toolkit.util.WcmString wsUseSavedFile
wsContinueText
- protected static final com.filenet.wcm.toolkit.util.WcmString wsContinueText
wsContinue
- protected static final com.filenet.wcm.toolkit.util.WcmString wsContinue
wsWarning
- protected static final com.filenet.wcm.toolkit.util.WcmString wsWarning
wsPathLabel
- protected static final com.filenet.wcm.toolkit.util.WcmString wsPathLabel
wsRequired
- protected static final com.filenet.wcm.toolkit.util.WcmString wsRequired
wsUndefined
- protected static final com.filenet.wcm.toolkit.util.WcmString wsUndefined
wsBefore
- protected static final com.filenet.wcm.toolkit.util.WcmString wsBefore
wsAfter
- protected static final com.filenet.wcm.toolkit.util.WcmString wsAfter
FORM_NAME
- protected static final java.lang.String FORM_NAME
See Also:
adp
- protected com.filenet.wcm.toolkit.server.dp.WcmAuthoringDataProvider adp
authorState
- protected WcmAuthoringState authorState
naviState
- protected WcmNavigationState naviState
config
- protected WcmWorkplaceConfig config
sitePrefs
- protected WcmSitePrefs sitePrefs
visibleRefServices
- protected java.util.List visibleRefServices
nType
- protected int nType
requestParams
- protected java.util.Map requestParams
bAutoClassify
- protected boolean bAutoClassify
uploader
- protected com.filenet.wcm.toolkit.server.util.WcmUploadInputStream uploader
listView
- protected MultiTransferItemsListView listView
Constructor Detail
WcmFileSelectWizardPage
- public WcmFileSelectWizardPage( int type)
- throws java.lang.Exception
Sets the type and the module name.
Parameters:
type - One of the defined int types for this module. Throws:
java.lang.ExceptionMethod Detail
initialize
- public void initialize()
- throws java.lang.Exception
Creates the data provider and retrieves the Authoring state.
Specified by:
initialize in interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
Overrides:
initialize in class com.filenet.wcm.toolkit.server.base.WcmModule
Throws:
java.lang.ExceptiononStartPage
- public void onStartPage(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
The default event handler sets up the display objects for rendering.
Specified by:
onStartPage in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
onStartPage in class com.filenet.wcm.toolkit.server.base.GlobalEventModule
Parameters:
request - HttpServletRequest object response - HttpServletResponse object Throws:
java.lang.Exception - If any errors occured showMultiSelectOperations
- protected boolean showMultiSelectOperations( )
- throws java.lang.Exception
Throws:
java.lang.ExceptionpanelInit
- public void panelInit()
- throws java.lang.Exception
Empty function - nothing to initialize or cleanup.
Specified by:
panelInit in interface com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Throws:
java.lang.ExceptionpanelCancel
- public void panelCancel(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Empty function - nothing to cleanup.
Specified by:
panelCancel in interface com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Parameters:
request - HttpServletRequest object response - HttpServletResponse object Throws:
java.lang.ExceptionvalidateLocalFileName
- protected boolean validateLocalFileName( javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptionvalidateExternalUrl
- protected boolean validateExternalUrl( javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response,
- java.lang.String url)
- throws java.lang.Exception
Throws:
java.lang.ExceptionpanelFinish
- public void panelFinish(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
When the Finish button is pressed, this first checks to see
the type of file it is, putting it in the WcmUploadStream object if
it is a file, or passing the URL if appropriate. Then it completes the check-in
or add functionality by calling the Authoring data provider.
Specified by:
panelFinish in interface com.filenet.wcm.toolkit.server.base.WcmPanelInterface
Parameters:
request - HttpServletRequest object response - HttpServletResponse object Throws:
java.lang.ExceptionSee Also:
WcmUploadInputStreamonContinue
- public void onContinue(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptioncompleteWizard
- protected void completeWizard()
- throws java.lang.Exception
Throws:
java.lang.Exceptionrender
- public void render(java.io.Writer w)
- throws java.lang.Exception
Description copied from class:
com.filenet.wcm.toolkit.server.base.WcmUiModule
Default render method. Outputs the string "empty module".
Specified by:
render in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
render in class com.filenet.wcm.toolkit.server.base.WcmUiModule
Parameters:
w - Writer object Throws:
java.lang.ExceptionrenderFileUploadSection
- protected void renderFileUploadSection( java.io.Writer w)
- throws java.lang.Exception
Throws:
java.lang.ExceptionrenderHeaderSection
- protected void renderHeaderSection( java.io.Writer w)
- throws java.lang.Exception
Throws:
java.lang.ExceptionrenderFooterSection
- protected void renderFooterSection( java.io.Writer w)
- throws java.lang.Exception
Throws:
java.lang.ExceptionrenderExternalSection
- protected java.lang.String renderExternalSection( java.io.Writer w)
- throws java.lang.Exception
Throws:
java.lang.ExceptiongetImageServiceTableHTML
- protected java.lang.String getImageServiceTableHTML( )
isUsingActiveXControl
- public boolean isUsingActiveXControl( )
Returns true if the file selection page is using an activeX control.
Returns:
true when using the activeX control
isFinished
- public boolean isFinished()
This page always accepts what the user inputs, so it is always ready
for the finish event.
Specified by:
isFinished in interface com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Returns:
true always.
getFormName
- public java.lang.String getFormName( )
Description copied from class:
com.filenet.wcm.toolkit.server.base.WcmUiModule
Returns form name. Base behavior returns null.
Specified by:
getFormName in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
getFormName in class com.filenet.wcm.toolkit.server.base.WcmUiModule
Returns:
The String value of the form name or null.
panelSave
- public void panelSave(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Description copied from interface:
com.filenet.wcm.toolkit.server.base.WcmPanelInterface
This event occurs when user switches between panels in WcmMultiPanelModule
Specified by:
panelSave in interface com.filenet.wcm.toolkit.server.base.WcmPanelInterface
Throws:
java.lang.ExceptionaddShortcut
- public void addShortcut()
- throws java.lang.Exception
Subclass of this will add shortcut
Throws:
java.lang.ExceptiononFinishedActiveX
- public void onFinishedActiveX(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Handles the Complete event triggered after the Active-X control has finished its operations
Parameters:
request - HttpServletRequest object response - HttpServletResponse object Throws:
java.lang.Exception