Class ExternalStorageUploadDialog
- java.lang.Object
- 
- org.zkoss.zk.ui.AbstractComponent
- 
- org.zkoss.zk.ui.HtmlBasedComponent
- 
- org.zkoss.zul.impl.XulElement
- 
- org.zkoss.zul.Window
- 
- com.saperion.ngc.events.BaseWindow
- 
- com.saperion.ngc.dialogs.sharebase.dialog.ExternalStorageUploadDialog
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- EventChild,- EventChildHandler,- LogEventChildHandler,- java.io.Serializable,- java.lang.Cloneable,- org.zkoss.zk.ui.Component,- org.zkoss.zk.ui.ext.Scope,- org.zkoss.zk.ui.IdSpace,- org.zkoss.zk.ui.sys.ComponentCtrl,- org.zkoss.zul.ext.Framable
 
 public class ExternalStorageUploadDialog extends BaseWindow This class is responsible for opening up the upload dialog box for uploading a saperion document to external storage- Author:
- sudghosh
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classExternalStorageUploadDialog.ExternalStorageUploadEventDataThis class is responsible for storing data after a document is uploaded to External Storage
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringDOCUMENT_LIST_CELL_STYLE_ICONstatic java.lang.StringFOLDER_LIST_BOXstatic java.lang.StringFOLDER_LIST_CELL_STYLE_ICONprotected static java.lang.StringLIBRARY_LIST_BOXstatic java.lang.StringSHARE_BASE_UPLOAD_BUTTONstatic java.lang.StringSHAREBASE_FOLDER_TRAVERSE_BACK_BUTTON- 
Fields inherited from interface org.zkoss.zk.ui.ComponentAPPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 - 
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrlAFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
 - 
Fields inherited from interface com.saperion.ngc.events.EventChildALL_EVENTS, ON_ADD_LINK, ON_ADD_LOOKUP, ON_ADD_TO_FAVORITES, ON_AFTER_QUERY, ON_BUTTON, ON_BUTTON_QUERY, ON_CANCEL, ON_CANCEL_AND, ON_CANCEL_EDIT, ON_CHANGE_DOCUMENT_SECURITY, ON_CHANGE_FOLDER_SECURITY, ON_CLEAR, ON_DELETE_SELECTED, ON_DISPLAY_POPUP, ON_DISPLAY_RESULTITEM, ON_DISPLAY_TEMPORARY_DOCUMENT, ON_DOCUMENT_ADDED, ON_DOCUMENT_CHECK, ON_DOCUMENT_FILING, ON_DOCUMENT_LOCKED, ON_DOCUMENT_PROLONG_RETENTION, ON_DOCUMENT_REDUCE_DISPOSITION, ON_DOCUMENT_RELEASE, ON_DOWNLOAD_RESULTITEM, ON_EDIT_CONTENT, ON_EDIT_FOLDER, ON_EDIT_ITEM, ON_EDIT_ITEM_SELECTED, ON_EDIT_LOOKUP, ON_EDIT_SELECTED, ON_EDIT_STRUCTURE, ON_EXPORT, ON_EXTERNAL_STORAGE_UPLOAD, ON_EXTERNAL_STORAGE_UPLOAD_STATUS, ON_FAST_ACCESS_DRAG_OVER, ON_FIELD_CHANGE, ON_FILE_ACTION, ON_FILE_PREVIEW, ON_FILE_SEARCH, ON_FORM_CREATED, ON_FORM_RENDER_ERROR, ON_FORWARD, ON_IGNORE, ON_INDEX, ON_INDEX_CLEAR, ON_INDEX_RESULTITEM, ON_ITEM_DOUBLECLICK, ON_LAUNCH_WORKFLOW, ON_LOG, ON_LOGON, ON_MACRO, ON_NAVIGATION, ON_NAVIGATION_FOLDER, ON_NAVIGATION_FORM, ON_NAVIGATION_WEBPART, ON_NEW_ITEM, ON_NEW_SELECTED, ON_OK, ON_ONEDRIVE_LOGIN, ON_OPEN_INDEX_MASK, ON_OPEN_MASK, ON_OPEN_QUERY_MASK, ON_PASSWORD_EXPIRED, ON_PRINT_DOCUMENTS, ON_QUERY, ON_QUERY_FAVORITE, ON_REFRESH, ON_REFRESH_FOLDER, ON_RESET_GUI, ON_REVISION_CREATED, ON_SAVE_AND, ON_SAVE_DOC, ON_SAVE_FOLDER, ON_SCROLL_NODE, ON_SELECT_TREE_ITEM, ON_SELECTDDC, ON_SEND_MAIL_RESULTITEM, ON_SET_LITIGATION_HOLD, ON_SHAREBASE_DOCUMENT_CHECK, ON_SHAREBASE_LOGIN, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_EXTERNAL_STORAGE_DOCUMENT, ON_UPLOAD_SUCCESS, ON_VARIABLES_AVAILABLE, ON_WF, ON_WF_COMMENT_DIALOG_CANCEL, ON_WF_COMMENT_DIALOG_OK, ON_WFCOMMENTS, ON_WFDELEGATE, ON_WFFORWARD, ON_WFFORWARD1, ON_WFFORWARD2, ON_WFFORWARD3, ON_WFFORWARD4, ON_WFFORWARD5, ON_WFHISTORY, ON_WFPUTBACK, ON_WFREMINDER, ON_WFTAKE, ON_WORKFLOW_ACTION, ON_WORKFLOW_COMMENT, ON_WORKFLOW_DISPLAY_COMMENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExternalStorageUploadDialog()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendModalCancel()Cancel dialog.voidonFolderSelection()This method enables upload button upon selecting a folder in the dialogvoidonUploadOK()Calls the onEvent on event handler upon successful uploading of document to External Storage with upload datavoidpopStackAndShowFolders()This method is called from zk and it handles folder traversingvoidsetFolderStack(java.util.Stack<java.lang.String> folderStack)static voidshow(DocumentId documentId, org.zkoss.zk.ui.event.EventListener eventListener, BaseWindow parent, com.saperion.externalstorage.client.ExternalStorageClient client, com.saperion.externalstorage.ExternalStorageType storageType)Shows the External Storage Upload dialogvoidshowSelectedItem()Load folders upon selecting library- 
Methods inherited from class com.saperion.ngc.events.BaseWindowgetEventtarget, getMainWindow, postAddLinkEvent, postAddToFavoritesEvent, postCancelSelectedEvent, postChangeDocumentSecurityEvent, postChangeFolderSecurityEvent, postDeleteSelectedEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayResultItemEvent, postDisplayResultItemEvent, postDocumentCheckEvent, postDocumentCheckWithShareBaseEvent, postDocumentFilingEvent, postDocumentFilingEvent, postDocumentReleaseEvent, postDownloadResultItemEvent, postEditContentEvent, postEditItemSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditStructureEvent, postErrorLogEvent, postErrorLogEvent, postExternalStorageUploadEvent, postExternalStorageUploadStatusEvent, postFieldChangeEvent, postFileActionEvent, postFileActionEvent, postFormButtonEvent, postIndexResultItemEvent, postInfoLogEvent, postInfoLogEvent, postLaunchWorkflowEvent, postLockDocumentEvent, postLogonEvent, postLogonEvent, postNavigationFolderEvent, postNavigationFormEvent, postNavigationFormEvent, postNavigationWebpartEvent, postNewSelectedEvent, postOpenMaskEvent, postPrintDocumentEvent, postProlongRetentionEvent, postQueryFavoriteEvent, postReduceDispositionEvent, postRefreshEvent, postResetGuiEvent, postResultFieldEvent, postSaveDocumentEvent, postSaveDocumentEvent, postSelectTreeItemEvent, postSendMailResultItemEvent, postSetLitigationHoldEvent, postShareBaseLoginEvent, postStartWorkflowEvent, postTabSelectedEvent, postUnDeleteSelectedEvent, postUploadDocumentEvent, postUploadeExternalStorageDocumentEvent, postUploadSuccessEvent, postWarningLogEvent, postWarningLogEvent, postWorkflowActionEvent, postWorkflowCommentEvent, postWorkflowDisplayCommentEvent, setEventtarget
 - 
Methods inherited from class org.zkoss.zul.WindowbeforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onClose, onModal, onPageDetached, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisible
 - 
Methods inherited from class org.zkoss.zul.impl.XulElementgetContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
 - 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponentaddSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
 - 
Methods inherited from class org.zkoss.zk.ui.AbstractComponentaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Field Detail- 
FOLDER_LIST_BOXpublic static final java.lang.String FOLDER_LIST_BOX - See Also:
- Constant Field Values
 
 - 
FOLDER_LIST_CELL_STYLE_ICONpublic static final java.lang.String FOLDER_LIST_CELL_STYLE_ICON - See Also:
- Constant Field Values
 
 - 
SHAREBASE_FOLDER_TRAVERSE_BACK_BUTTONpublic static final java.lang.String SHAREBASE_FOLDER_TRAVERSE_BACK_BUTTON - See Also:
- Constant Field Values
 
 - 
SHARE_BASE_UPLOAD_BUTTONpublic static final java.lang.String SHARE_BASE_UPLOAD_BUTTON - See Also:
- Constant Field Values
 
 - 
DOCUMENT_LIST_CELL_STYLE_ICONpublic static final java.lang.String DOCUMENT_LIST_CELL_STYLE_ICON - See Also:
- Constant Field Values
 
 - 
LIBRARY_LIST_BOXprotected static final java.lang.String LIBRARY_LIST_BOX - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
showpublic static void show(DocumentId documentId, org.zkoss.zk.ui.event.EventListener eventListener, BaseWindow parent, com.saperion.externalstorage.client.ExternalStorageClient client, com.saperion.externalstorage.ExternalStorageType storageType) Shows the External Storage Upload dialog- Parameters:
- documentId- selected Saperion doc id
- eventListener- event listener for upload event
- parent- parent view
- client- ShareBase client instance
 
 - 
setFolderStackpublic void setFolderStack(java.util.Stack<java.lang.String> folderStack) 
 - 
endModalCancelpublic void endModalCancel() throws java.lang.ExceptionCancel dialog.- Throws:
- java.lang.Exception- exception
 
 - 
showSelectedItempublic void showSelectedItem() Load folders upon selecting library
 - 
popStackAndShowFolderspublic void popStackAndShowFolders() This method is called from zk and it handles folder traversing
 - 
onFolderSelectionpublic void onFolderSelection() This method enables upload button upon selecting a folder in the dialog
 - 
onUploadOKpublic void onUploadOK() throws java.lang.ExceptionCalls the onEvent on event handler upon successful uploading of document to External Storage with upload data- Throws:
- java.lang.Exception- exception is thrown if there is any problem with onEvent for the event listener
 
 
- 
 
-