public abstract class OwAbstractDocumentImporterView extends OwLayout
Abstract default DocumentImporterView, implementing the most functionality by default.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwLayout.OwDispatchRegion, OwLayout.OwLayoutViewRefrence
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwAbstractDocumentImporterView(OwDocumentImporter importer_p,
OwDocumentImporterCallback callback_p)
Constructor for view, referencing the most important dependencies.
Will throw an IllegalArgumentException if one of the parameter is null. |
Modifier and Type | Method and Description |
---|---|
protected void |
fireOnDocumentImportEvent(OwDocumentImportItem item_p)
Helper method which should be used after a
document was imported to notify the callback handler.
|
protected OwDocumentImporter |
getDocumentImporter()
Return the OwDocumentImporter which is current set.
|
protected OwDocumentImporterCallback |
getDocumentImporterCallback()
Return the current set OwDocumentImporterCallback handler.
|
protected void |
init()
init the target after the context is set.
|
protected abstract void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed
|
void |
setDocumentImporterCallback(OwDocumentImporterCallback callback_p)
Set the reference for callback handler.
|
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion, renderRegion
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
public OwAbstractDocumentImporterView(OwDocumentImporter importer_p, OwDocumentImporterCallback callback_p)
importer_p
- OwDocumentImporter (non-null)callback_p
- OwDocumentImporterCallback (non-null)public void setDocumentImporterCallback(OwDocumentImporterCallback callback_p)
Will throw an IllegalArgumentException if callback_p is null
callback_p
- OwDocumentImporterCallback (non-null)protected void init() throws Exception
OwView
protected abstract void onRender(Writer w_p) throws Exception
OwView
protected OwDocumentImporter getDocumentImporter()
protected OwDocumentImporterCallback getDocumentImporterCallback()
protected void fireOnDocumentImportEvent(OwDocumentImportItem item_p) throws Exception
item_p
- OwDocumentImportItem (non-null value)Exception
- if item_p == null
or onDocumentImported-process failedCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.