com.filenet.wcm.apps.server.ui.wizard

Class WcmFileSelectWizardPage

  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.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:
WcmEntryFileSelectWizardPage

  1. public class WcmFileSelectWizardPage
  2. extends com.filenet.wcm.toolkit.server.base.WcmUiModule
  3. implements com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
This wizard page is used to select the file to upload for adding a new document or checking in a modified document.

Nested Class Summary

Modifier and Type Class and Description
  1. class
WcmFileSelectWizardPage.FileUploadManagementModule

Field Summary

Modifier and Type Field and Description
  1. protected
  2. com.filenet.wcm.toolkit.server.dp.WcmAuthoringDataProvider
adp
  1. protected
  2. WcmAuthoringState
authorState
  1. protected
  2. boolean
bAutoClassify
  1. protected
  2. WcmWorkplaceConfig
config
  1. protected static
  2. java.lang.String
FORM_NAME
  1. protected
  2. MultiTransferItemsListView
listView
  1. protected
  2. WcmNavigationState
naviState
  1. protected
  2. int
nType
  1. protected
  2. java.util.Map
requestParams
  1. protected
  2. WcmSitePrefs
sitePrefs
  1. protected
  2. com.filenet.wcm.toolkit.server.util.WcmUploadInputStream
uploader
  1. protected
  2. java.util.List
visibleRefServices
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsAfter
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsAssociation
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsBefore
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsContinue
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsContinueText
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsExample
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsExternalFile
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsFile
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsLocalFile
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsNone
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsPathLabel
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsRequired
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsSavedFile
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsType
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsUndefined
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
wsUseSavedFile
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
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
  1. void
addShortcut()
Subclass of this will add shortcut
  1. protected
  2. void
completeWizard()
  1. java.lang.String
getFormName()
  1. protected
  2. java.lang.String
getImageServiceTableHTML()
  1. void
initialize()
Creates the data provider and retrieves the Authoring state.
  1. boolean
isFinished()
This page always accepts what the user inputs, so it is always ready for the finish event.
  1. boolean
isUsingActiveXControl()
Returns true if the file selection page is using an activeX control.
  1. void
onContinue(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
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
  1. void
onStartPage(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
The default event handler sets up the display objects for rendering.
  1. void
panelCancel(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Empty function - nothing to cleanup.
  1. void
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.
  1. void
panelInit()
Empty function - nothing to initialize or cleanup.
  1. void
panelSave(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
render(java.io.Writer w)
  1. protected
  2. java.lang.String
renderExternalSection(java.io.Writer w)
  1. protected
  2. void
renderFileUploadSection(java.io.Writer w)
  1. protected
  2. void
renderFooterSection(java.io.Writer w)
  1. protected
  2. void
renderHeaderSection(java.io.Writer w)
  1. protected
  2. boolean
showMultiSelectOperations()
  1. protected
  2. boolean
validateExternalUrl(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response,java.lang.String url)
  1. protected
  2. boolean
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

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsType

wsFile

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsFile

wsLocalFile

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsLocalFile

wsSavedFile

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsSavedFile

wsExternalFile

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsExternalFile

wsNone

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsNone

wsAssociation

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsAssociation

wsExample

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsExample

wsUseSavedFile

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsUseSavedFile

wsContinueText

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsContinueText

wsContinue

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsContinue

wsWarning

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsWarning

wsPathLabel

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsPathLabel

wsRequired

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsRequired

wsUndefined

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsUndefined

wsBefore

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsBefore

wsAfter

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsAfter

FORM_NAME

  1. protected static final java.lang.String FORM_NAME
See Also:

adp

  1. protected com.filenet.wcm.toolkit.server.dp.WcmAuthoringDataProvider adp

authorState

  1. protected WcmAuthoringState authorState

  1. protected WcmNavigationState naviState

config

  1. protected WcmWorkplaceConfig config

sitePrefs

  1. protected WcmSitePrefs sitePrefs

visibleRefServices

  1. protected java.util.List visibleRefServices

nType

  1. protected int nType

requestParams

  1. protected java.util.Map requestParams

bAutoClassify

  1. protected boolean bAutoClassify

uploader

  1. protected com.filenet.wcm.toolkit.server.util.WcmUploadInputStream uploader

listView

  1. protected MultiTransferItemsListView listView

Constructor Detail

WcmFileSelectWizardPage

  1. public WcmFileSelectWizardPage( int type)
  2. 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.Exception

Method Detail

initialize

  1. public void initialize()
  2. 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.Exception

onStartPage

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

  1. protected boolean showMultiSelectOperations( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

panelInit

  1. public void panelInit()
  2. 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.Exception

panelCancel

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

validateLocalFileName

  1. protected boolean validateLocalFileName( javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

validateExternalUrl

  1. protected boolean validateExternalUrl( javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response,
  3. java.lang.String url)
  4. throws java.lang.Exception
Throws:
java.lang.Exception

panelFinish

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

onContinue

  1. public void onContinue(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

completeWizard

  1. protected void completeWizard()
  2. throws java.lang.Exception
Throws:
java.lang.Exception

render

  1. public void render(java.io.Writer w)
  2. 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.Exception

renderFileUploadSection

  1. protected void renderFileUploadSection( java.io.Writer w)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

renderHeaderSection

  1. protected void renderHeaderSection( java.io.Writer w)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

renderFooterSection

  1. protected void renderFooterSection( java.io.Writer w)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

renderExternalSection

  1. protected java.lang.String renderExternalSection( java.io.Writer w)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

getImageServiceTableHTML

  1. protected java.lang.String getImageServiceTableHTML( )

isUsingActiveXControl

  1. public boolean isUsingActiveXControl( )
Returns true if the file selection page is using an activeX control.
Returns:
true when using the activeX control

isFinished

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

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

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

addShortcut

  1. public void addShortcut()
  2. throws java.lang.Exception
Subclass of this will add shortcut
Throws:
java.lang.Exception

onFinishedActiveX

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