public class OwCreateMultipleDocumentsDialog extends com.wewebu.ow.server.app.OwStandardDialog implements OwMultiDocumentObjectPropertyViewListner, OwDocumentImportViewListener, com.wewebu.ow.server.ui.OwDialog.OwDialogListener, com.wewebu.ow.server.ui.OwJspConfigurable
Implementation of the Add Document Dialog.
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
Modifier and Type | Field and Description |
---|---|
protected com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg |
classSelectionCfg |
protected static int |
DIALOG_STATUS_FAILED
status of this dialog: checkin failed
|
protected static int |
DIALOG_STATUS_NONE
status of this dialog: nothing done yet
|
protected static int |
DIALOG_STATUS_OK
status of this dialog: checkin successful
|
protected OwMultiDocumentObjectAccessRightsView |
m_AccessRightsView
the access rights view
|
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassView |
m_classView
reference to the used class view
|
protected boolean |
m_deleteUploadDir
should upload dir itself be deleted? just if it is the deploy dir of the app-server
|
protected int |
m_dialogStatus
status of this dialog needed for historization
|
protected OwAddMultiDocumentsDocument |
m_document
the document which is used by this dialog
|
protected OwDocumentImportView |
m_documentImportView
reference to the document importer view
|
protected boolean |
m_fClassView |
protected int |
m_idxAccesRightsView
index of tab AccessRightsView in m_SubNavigation
|
protected int |
m_idxClassView
index of tab ClassView in m_SubNavigation
|
protected int |
m_idxPropertyView
index of tab PropertyView in m_SubNavigation
|
protected int |
m_iViewMask
filters the views and behaviors to be displayed
|
protected com.wewebu.ow.server.app.OwSubLayout |
m_Layout
layout to be used for the dialog
|
protected int |
m_MultipleDocumentsCurrentPos |
protected Map |
m_objectClassMap
a Map of object class - subfolder mappings
|
protected com.wewebu.ow.server.ecm.OwObject |
m_parentFolder |
protected boolean |
m_PerformDragDrop |
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge |
m_propertyBridge
the property view bridge
|
protected com.wewebu.ow.server.app.OwClientRefreshContext |
m_RefreshCtx
refresh context for callback
|
protected String |
m_strParentObjectClass
Deprecated.
will be replaced with
classSelectionCfg |
protected com.wewebu.ow.server.app.OwSubNavigationView |
m_SubNavigation
navigation view to navigate through the subviews
|
protected Map |
m_ValuesMap
a set of properties that should be set as default for the new object
|
static int |
VIEW_MASK_ACCESS_RIGHTS
mask value for the access rights view
|
static int |
VIEW_MASK_AUTOOPEN
mask value for auto open
|
static int |
VIEW_MASK_CHECKIN_MODE_OPTION
view flag
|
static int |
VIEW_MASK_ENABLE_PASTE_METADATA
mask value to enable paste metadata in property view
|
static int |
VIEW_MASK_ENABLE_SAVE_ALL
view flag to enable save all button option when more than one documents are selected
|
static int |
VIEW_MASK_MULTIPLEFILE_UPLOAD
view flag
|
static int |
VIEW_MASK_RELEASE_VERSION_DEFAULT
view flag
|
static int |
VIEW_MASK_RELEASE_VERSION_OPTION
view flag
|
CLOSE_BTN_REGION, FOOTER_REGION, HELP_BTN_REGION, INFO_ICON_REGION, LEFT_REGION, m_strHelpPath, m_strInfoIconURL, m_strTitle, MAIN_REGION, MENU_REGION, RIGHT_REGION, STANDARD_DIALOG_REGION_MAX, TITLE_REGION
m_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener
Constructor and Description |
---|
OwCreateMultipleDocumentsDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.ecm.OwResource resource_p,
com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg,
Collection batchIndexProperties_p,
List documentImporters_p)
create new OwCreateMultipleDocumentsDialog
|
OwCreateMultipleDocumentsDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.ecm.OwResource resource_p,
String strClassName_p,
String strParentObjectClass_p,
Collection batchIndexProperties_p,
List documentImporters_p)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
changeObjectClass(String objectClass_p)
Helper method for changing the ObjectClass(=DocumentClass) of
skeleton.
|
protected void |
cleanup()
Cleanup all resources acquired by this dialog.
|
protected void |
close()
Execute the close of current dialog only if
given state allows a closeDialog call.
|
void |
closeDialog()
close the dialog
overwritten method to close the preview
|
protected OwAddMultiDocumentsDocument |
createDocument(com.wewebu.ow.server.ecm.OwResource resource_p,
com.wewebu.ow.server.ecm.OwObject folderObj_p)
(overridable)
Create the Document to be used for current Dialog
|
protected OwDocumentImportView |
createDocumentImporterView()
overridable factory method
|
protected com.wewebu.ow.server.app.OwDocumentImportItemContentCollection |
createDocumentImportItemContentCollection(com.wewebu.ow.server.app.OwDocumentImportItem importedDocument_p)
overridable factory method
|
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectPropertyFormularView |
createFormBasedView()
Create a form view, with the given JSP file.
|
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge |
createFormPropertyViewBridge()
Create an
OwPropertyViewBridge object based on a JSP file. |
protected OwMultiDocumentObjectAccessRightsView |
createMultiDocumentObjectAccessRightsView()
overridable factory method
|
protected OwMultiDocumentObjectPropertyView |
createMultiDocumentObjectPropertyView()
overridable factory method
|
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassView |
createObjectClassView(com.wewebu.ow.server.ecm.OwResource resource_p,
int iObjectType_p,
com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg)
overridable factory method
|
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassView |
createObjectClassView(com.wewebu.ow.server.ecm.OwResource resource_p,
int iObjectType_p,
String strParentObjectClass_p)
Deprecated.
|
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge |
createPropertyViewBridge()
Creates the
OwPropertyViewBridge |
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge |
createStandardPropertyViewBridge()
Creates an
OwPropertyViewBridge that use standard way for properties rendering. |
protected com.wewebu.ow.server.app.OwSubLayout |
createSubLayout()
overridable factory method
|
protected com.wewebu.ow.server.app.OwSubNavigationView |
createSubNavigationView()
overridable factory method
|
void |
detach()
remove view and all subviews from context
|
protected Collection |
getBatchIndexProperties()
get a collection of property names that act in batch processing
|
com.wewebu.ow.server.app.OwJspFormConfigurator |
getJspConfigurator() |
protected String |
getNamePropertyValue(com.wewebu.ow.server.app.OwDocumentImportItem importer_p)
Get a String which is used as name property value.
|
protected com.wewebu.ow.server.app.OwStandardDialog |
getPostProcessingDialog()
(overridable)
Return the dialog which should be used for the post process view.
|
protected boolean |
getPreviewOpenend()
check if preview window was opened
|
protected List |
getPropertyInfos()
Deprecated.
since 4.2.0.0 see
setPropertyListConfiguration(OwPropertyListConfiguration) |
int |
getStatus()
get the current status of this dialog
|
String |
getTitle()
overridable to display the title of the dialog
|
protected Collection |
getUsedPropertyInfoList()
Deprecated.
since 4.2.0.0 see
setPropertyListConfiguration(OwPropertyListConfiguration) |
protected boolean |
hasClassToFolderMapping()
If there is a mapping between Classes and Folders,
documents of a given class should be saved in the same folder as specified by the mapping in
m_objectClassMap . |
protected boolean |
hasViewMask(int iViewMask_p)
check if view should be displayed or is masked out
|
protected void |
init()
init the target after the context is set.
|
boolean |
isImporterBeforeBatchHandling()
Get the order to process properties propagation.
|
boolean |
isPostProcessDialogOpen()
Flag notifying if a post process dialog was/is open.
|
boolean |
isRegion(int iRegion_p)
determine if region contains a view
|
boolean |
isSaveAllEnabled()
check if the Save all button should be enabled.
|
protected void |
onBatchImportError(Exception e_p,
com.wewebu.ow.server.app.OwDocumentImportItem importedDocument_p,
List skippedDocuments_p,
List addedDocuments_p,
List addedDocumentsNames_p)
Called when one of the documents in a batch import fails to import.
|
void |
onCancel()
overridable called when user clicks cancel button,
and returns to last opened view.
|
void |
onClose(javax.servlet.http.HttpServletRequest request_p)
Invoked by the framework whenever this dialog is closed
|
void |
onDialogClose(com.wewebu.ow.server.ui.OwDialog dialog_p)
Handles the close event of post processing dialog.
|
void |
onDocumentImported()
Document imported listener.
|
void |
onPostProcessingDialogClose(com.wewebu.ow.server.ui.OwDialog dialog_p)
(overridable)
Handles the close event of post process dialog.
|
void |
onSaveAllDocument()
overridable called when user clicks save and all properties are correct
|
void |
onSaveDocument()
overridable called when user clicks save and all properties are correct
|
void |
onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p,
int iCode_p,
Object param_p) |
protected void |
openPostProcessDialog(com.wewebu.ow.server.app.OwDocumentImporter importer_p,
com.wewebu.ow.server.ecm.OwObject obj_p)
Method which is called after processing of documents, if
the dependent document importer has a post process view for
OwDocumentImporter.IMPORT_CONTEXT_NEW . |
protected void |
postOnSaveMessage(List addedItems_p,
List addedDocumentNames_p,
List skippedItems_p,
boolean isSaveAll_p)
(overridable)
creates and posts a message to be displayed after the
onSaveAllDocument() or onSaveDocument()
was performed |
protected com.wewebu.ow.server.ecm.OwObject |
prepareParentFolder(com.wewebu.ow.server.app.OwMainAppContext context_p,
String documentClassName_p)
This method prepares the parent folder for the currently processed document (
m_MultipleDocumentsCurrentPos ). |
protected void |
previewDocument(int iIndex_p)
open the preview dialog for a document
|
protected boolean |
processDocument(com.wewebu.ow.server.app.OwDocumentImportItem document_p)
(overridable)
|
protected void |
propagateDocumentImporterData(com.wewebu.ow.server.app.OwDocumentImportItem importItem_p,
com.wewebu.ow.server.ecm.OwObject objSkeleton_p)
Propagation of data from the importer to current skeleton object.
|
protected void |
provideValuesMap(com.wewebu.ow.server.ecm.OwObject objSkeleton_p)
Provide the map of values to the given skeleton object.
|
void |
renderRegion(Writer w_p,
int iRegion_p)
render the views of the region
|
protected void |
setBatchProperties(com.wewebu.ow.server.ecm.OwPropertyCollection batchPropertiesSource_p,
com.wewebu.ow.server.ecm.OwObject object_p)
Sets the batch properties with values from the source attribute to the specified object
|
protected void |
setCheckinHandling(com.wewebu.ow.server.dmsdialogs.views.OwCheckInHandler handler_p)
Set the CheckInHandler regarding on current skeleton object and depending OwDocumentImportItem
|
void |
setFolderMapping(Map objectClassMap_p)
Define a Map of object class - subfolder mappings
|
void |
setImporterBeforeBatchHandling(boolean flag_p)
Set the properties propagation flag.
|
void |
setJspConfigurator(com.wewebu.ow.server.app.OwJspFormConfigurator jspFormConfigurator_p) |
void |
setObjectClassProcessor(com.wewebu.ow.server.dmsdialogs.views.OwObjectClassProcessor objClassProcessor)
Set an objClassProcessor instance, which should be used before skeleton creation.
|
protected void |
setPostProcessDailogOpen(boolean flagDlgOpen_p)
Set the flag to notify that currently a post process dialog was/is open.
|
void |
setPropertyInfos(List<org.alfresco.wd.ui.conf.prop.OwPropertyInfo> propertyInfos_p)
Deprecated.
since 4.2.0.0 use
setPropertyListConfiguration(OwPropertyListConfiguration) instead |
void |
setPropertyListConfiguration(org.alfresco.wd.ui.conf.OwPropertyListConfiguration propListConfiguration)
Setter for PropertyList configuration, which will be referenced by used document.
|
void |
setRefreshContext(com.wewebu.ow.server.app.OwClientRefreshContext pluginRefreshCtx_p)
set a plugin refresh callback interface
|
protected void |
setSkeletonNameProperty(com.wewebu.ow.server.ecm.OwObject objSkeleton_p,
com.wewebu.ow.server.app.OwDocumentImportItem importerItem_p)
Set the name property of given skeleton object, retrieving the value from the document importer item.
|
void |
setUseImporterProposedName(boolean useImporterProposedName_p)
Set flag for proposed Name handling during creation.
|
void |
setValues(Map properties_p)
submit a set of values that should be set as default for the new object
|
void |
setViewMask(int iViewMask_p)
determine the views to be displayed by masking them with their flag
|
protected String |
storeDocument(com.wewebu.ow.server.ecm.OwContentCollection content_p,
String strMimeType_p,
String strMimeParameter_p,
Object checkinMode_p,
boolean fReleaseVersion_p)
called by onSaveDocument when a user clicks on 'save' in the properties view
|
boolean |
useImporterProposedName()
Get notification if proposed name or
display name of OwDocumentImportItem should be used.
|
getInfoIcon, hasHelpButton, onHelp, onRender, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion
activate, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
public static final int VIEW_MASK_ENABLE_PASTE_METADATA
public static final int VIEW_MASK_ACCESS_RIGHTS
public static final int VIEW_MASK_AUTOOPEN
public static final int VIEW_MASK_MULTIPLEFILE_UPLOAD
public static final int VIEW_MASK_CHECKIN_MODE_OPTION
public static final int VIEW_MASK_RELEASE_VERSION_OPTION
public static final int VIEW_MASK_RELEASE_VERSION_DEFAULT
public static final int VIEW_MASK_ENABLE_SAVE_ALL
protected static final int DIALOG_STATUS_NONE
protected static final int DIALOG_STATUS_OK
protected static final int DIALOG_STATUS_FAILED
protected int m_dialogStatus
protected com.wewebu.ow.server.app.OwSubLayout m_Layout
protected com.wewebu.ow.server.app.OwSubNavigationView m_SubNavigation
protected OwAddMultiDocumentsDocument m_document
protected OwDocumentImportView m_documentImportView
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassView m_classView
protected OwMultiDocumentObjectAccessRightsView m_AccessRightsView
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge m_propertyBridge
protected int m_idxClassView
protected int m_idxAccesRightsView
protected int m_idxPropertyView
protected com.wewebu.ow.server.ecm.OwObject m_parentFolder
protected Map m_objectClassMap
protected boolean m_PerformDragDrop
protected int m_MultipleDocumentsCurrentPos
protected boolean m_deleteUploadDir
protected com.wewebu.ow.server.app.OwClientRefreshContext m_RefreshCtx
protected String m_strParentObjectClass
classSelectionCfg
protected com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg
protected Map m_ValuesMap
protected int m_iViewMask
protected boolean m_fClassView
public OwCreateMultipleDocumentsDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p, com.wewebu.ow.server.ecm.OwResource resource_p, String strClassName_p, String strParentObjectClass_p, Collection batchIndexProperties_p, List documentImporters_p) throws Exception
OwCreateMultipleDocumentsDialog(OwObject, OwResource, OwObjectClassSelectionCfg, Collection, List)
folderObject_p
- OwObject parent to create the new object in or null to use a default location.batchIndexProperties_p
- documentImporters_p
- List of OwDocumentImporter objectsException
public OwCreateMultipleDocumentsDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p, com.wewebu.ow.server.ecm.OwResource resource_p, com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg, Collection batchIndexProperties_p, List documentImporters_p) throws Exception
folderObject_p
- OwObject parent to create the new object in or null to use a default location.batchIndexProperties_p
- documentImporters_p
- List of OwDocumentImporter objectsException
protected OwAddMultiDocumentsDocument createDocument(com.wewebu.ow.server.ecm.OwResource resource_p, com.wewebu.ow.server.ecm.OwObject folderObj_p)
resource_p
- OwResource resource to use if parent is nullfolderObj_p
- OwObject parentprotected boolean getPreviewOpenend()
protected Collection getBatchIndexProperties()
public int getStatus()
protected boolean hasViewMask(int iViewMask_p)
iViewMask_p
- bitmask according to VIEW_MASK_SYSTEM_... flagspublic void setViewMask(int iViewMask_p)
iViewMask_p
- bitmask according to VIEW_MASK_SYSTEM_... flagspublic void setRefreshContext(com.wewebu.ow.server.app.OwClientRefreshContext pluginRefreshCtx_p)
pluginRefreshCtx_p
- OwClientRefreshContextpublic void setValues(Map properties_p)
properties_p
- Map of values keyed by parameter names to be set initially@Deprecated public void setPropertyInfos(List<org.alfresco.wd.ui.conf.prop.OwPropertyInfo> propertyInfos_p)
setPropertyListConfiguration(OwPropertyListConfiguration)
insteadpropertyInfos_p
- list of OwPropertyInfo objects that are passed to the PropertyViewpublic void setPropertyListConfiguration(org.alfresco.wd.ui.conf.OwPropertyListConfiguration propListConfiguration)
propListConfiguration
- protected OwMultiDocumentObjectPropertyView createMultiDocumentObjectPropertyView() throws Exception
Exception
protected OwMultiDocumentObjectAccessRightsView createMultiDocumentObjectAccessRightsView() throws Exception
Exception
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassView createObjectClassView(com.wewebu.ow.server.ecm.OwResource resource_p, int iObjectType_p, String strParentObjectClass_p) throws Exception
createObjectClassView(OwResource, int, OwObjectClassSelectionCfg)
resource_p
- the OwResource to get the classes fromiObjectType_p
- int object to browse forstrParentObjectClass_p
- String name of class to start from or null to start browsing from rootException
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassView createObjectClassView(com.wewebu.ow.server.ecm.OwResource resource_p, int iObjectType_p, com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg) throws Exception
resource_p
- the OwResource to get the classes fromiObjectType_p
- int object to browse forclassSelectionCfg
- Exception
protected com.wewebu.ow.server.app.OwDocumentImportItemContentCollection createDocumentImportItemContentCollection(com.wewebu.ow.server.app.OwDocumentImportItem importedDocument_p) throws Exception
Exception
protected com.wewebu.ow.server.app.OwSubLayout createSubLayout() throws Exception
Exception
protected com.wewebu.ow.server.app.OwSubNavigationView createSubNavigationView() throws Exception
Exception
protected OwDocumentImportView createDocumentImporterView() throws Exception
Exception
public void setFolderMapping(Map objectClassMap_p)
List of object class mappings to be used.
Each object class is mapped to a subfolder path,
where the key is the objectclass and the value is the folder name to be created.
protected void init() throws Exception
init
in class com.wewebu.ow.server.ui.OwView
Exception
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge createPropertyViewBridge() throws Exception
OwPropertyViewBridge
OwPropertyViewBridge
object.Exception
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge createStandardPropertyViewBridge() throws Exception
OwPropertyViewBridge
that use standard way for properties rendering.OwPropertyViewBridge
objectException
protected com.wewebu.ow.server.dmsdialogs.OwPropertyViewBridge createFormPropertyViewBridge()
OwPropertyViewBridge
object based on a JSP file.OwPropertyViewBridge
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectPropertyFormularView createFormBasedView()
OwAddMultiDocumentsPropertyFormView
document.public void detach()
detach
in class com.wewebu.ow.server.ui.OwView
public String getTitle()
getTitle
in interface com.wewebu.ow.server.ui.OwBaseView
getTitle
in class com.wewebu.ow.server.app.OwStandardDialog
public void renderRegion(Writer w_p, int iRegion_p) throws Exception
renderRegion
in interface com.wewebu.ow.server.ui.OwBaseView
renderRegion
in class com.wewebu.ow.server.app.OwStandardDialog
w_p
- Writer object to write HTML toiRegion_p
- ID of the region to renderException
public boolean isRegion(int iRegion_p)
isRegion
in interface com.wewebu.ow.server.ui.OwBaseView
isRegion
in class com.wewebu.ow.server.app.OwStandardDialog
iRegion_p
- ID of the region to renderpublic void onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p, int iCode_p, Object param_p) throws Exception
onUpdate
in interface com.wewebu.ow.server.ui.OwUpdateTarget
onUpdate
in class com.wewebu.ow.server.ui.OwView
Exception
protected void cleanup() throws Exception
Exception
public void onClose(javax.servlet.http.HttpServletRequest request_p) throws Exception
onClose
in class com.wewebu.ow.server.app.OwStandardDialog
Exception
public void onCancel() throws Exception
OwMultiDocumentObjectPropertyViewListner
Attention this interface will be not deleted, but it will be refactored for consistent rendering and working of cancel operations.
onCancel
in interface OwMultiDocumentObjectPropertyViewListner
Exception
public void onSaveDocument() throws Exception
OwMultiDocumentObjectPropertyViewListner
onSaveDocument
in interface OwMultiDocumentObjectPropertyViewListner
Exception
protected void setBatchProperties(com.wewebu.ow.server.ecm.OwPropertyCollection batchPropertiesSource_p, com.wewebu.ow.server.ecm.OwObject object_p)
batchPropertiesSource_p
- collection of valued-properties to be set if they match the batched propertiesobject_p
- OwObject
to set the properties topublic void onSaveAllDocument() throws Exception
OwMultiDocumentObjectPropertyViewListner
onSaveAllDocument
in interface OwMultiDocumentObjectPropertyViewListner
Exception
protected void onBatchImportError(Exception e_p, com.wewebu.ow.server.app.OwDocumentImportItem importedDocument_p, List skippedDocuments_p, List addedDocuments_p, List addedDocumentsNames_p) throws Exception
OwDocumentImportItem
.e_p
- importedDocument_p
- skippedDocuments_p
- addedDocuments_p
- addedDocumentsNames_p
- Exception
onSaveAllDocument()
protected String storeDocument(com.wewebu.ow.server.ecm.OwContentCollection content_p, String strMimeType_p, String strMimeParameter_p, Object checkinMode_p, boolean fReleaseVersion_p) throws Exception
content_p
- OwContentCollectionstrMimeType_p
- StringstrMimeParameter_p
- StringcheckinMode_p
- optional Object, used with checkin operation only, can be nullfReleaseVersion_p
- optional boolean flag to create a release version, used with checkin operation onlyException
protected com.wewebu.ow.server.ecm.OwObject prepareParentFolder(com.wewebu.ow.server.app.OwMainAppContext context_p, String documentClassName_p) throws Exception
m_MultipleDocumentsCurrentPos
).context_p
- documentClassName_p
- Exception
protected final boolean hasClassToFolderMapping()
m_objectClassMap
.protected void previewDocument(int iIndex_p) throws Exception
iIndex_p
- int Position of document to preview in OwAddMultiDocumentsDocument.getUploadedFilenameException
public void closeDialog() throws Exception
closeDialog
in class com.wewebu.ow.server.ui.OwDialog
Exception
public void onDocumentImported()
onDocumentImported
in interface OwDocumentImportViewListener
public boolean isSaveAllEnabled()
This method analyze the viewmask VIEW_MASK_ENABLE_SAVE_ALL
and also if a post process view is enabled for imported documents
protected com.wewebu.ow.server.app.OwStandardDialog getPostProcessingDialog()
public void onPostProcessingDialogClose(com.wewebu.ow.server.ui.OwDialog dialog_p) throws Exception
dialog_p
- OwDialog used for post processingException
protected void changeObjectClass(String objectClass_p) throws Exception
ATTENTION: After calling this method an onUpdate(caller, OwUpateCodes.SET_NEW_OBJECT, param) event will occur.
objectClass_p
- String symbolic name of Document-/ObjectClass.Exception
protected void setCheckinHandling(com.wewebu.ow.server.dmsdialogs.views.OwCheckInHandler handler_p) throws Exception
handler_p
- OwCheckInHandlerException
protected void openPostProcessDialog(com.wewebu.ow.server.app.OwDocumentImporter importer_p, com.wewebu.ow.server.ecm.OwObject obj_p) throws Exception
OwDocumentImporter.IMPORT_CONTEXT_NEW
.importer_p
- OwDoucmentImporter (non-null)obj_p
- OwObject currently processed object (non-null)Exception
- if there are problems opening the post process dialogpublic final void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialog_p) throws Exception
onPostProcessingDialogClose(OwDialog)
before trying to close current OwCreateMultipleDocumentsDialog.onDialogClose
in interface com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Exception
OwDialogListener.onDialogClose(OwDialog)
protected void close() throws Exception
Exception
public boolean isPostProcessDialogOpen()
protected void setPostProcessDailogOpen(boolean flagDlgOpen_p)
flagDlgOpen_p
- boolean true
if dialog is open, else false
protected void postOnSaveMessage(List addedItems_p, List addedDocumentNames_p, List skippedItems_p, boolean isSaveAll_p) throws Exception
onSaveAllDocument()
or onSaveDocument()
was performedaddedItems_p
- a List
of OwDocumentImportItem
s that were addedaddedDocumentNames_p
- a List
of String
document names of the already added documentsskippedItems_p
- a List
of OwDocumentImportItem
s that were skipped from importingisSaveAll_p
- true
if this is a message post after onSaveAllDocument()
false
otherwiseException
protected boolean processDocument(com.wewebu.ow.server.app.OwDocumentImportItem document_p) throws com.wewebu.ow.server.exceptions.OwException
document_p
- document to be processed before addingtrue
if the given document should be created/added , false
otherwisecom.wewebu.ow.server.exceptions.OwException
protected void propagateDocumentImporterData(com.wewebu.ow.server.app.OwDocumentImportItem importItem_p, com.wewebu.ow.server.ecm.OwObject objSkeleton_p) throws Exception
By default the non-existing properties of current skeleton will be ignored, and only matching properties will be set.
importItem_p
- OwDocumentImporterItem to use for property propagationobjSkeleton_p
- OwObject current skeletonException
- if problem occur with setting data to skeleton object.public com.wewebu.ow.server.app.OwJspFormConfigurator getJspConfigurator()
getJspConfigurator
in interface com.wewebu.ow.server.ui.OwJspConfigurable
public void setJspConfigurator(com.wewebu.ow.server.app.OwJspFormConfigurator jspFormConfigurator_p)
setJspConfigurator
in interface com.wewebu.ow.server.ui.OwJspConfigurable
protected void setSkeletonNameProperty(com.wewebu.ow.server.ecm.OwObject objSkeleton_p, com.wewebu.ow.server.app.OwDocumentImportItem importerItem_p) throws Exception
objSkeleton_p
- OwObject can be nullimporterItem_p
- OwDocumentImportItem can be nullException
- if problem with retrieving or setting propertypublic boolean isImporterBeforeBatchHandling()
false: Batch properties will be propagated before importer properties
true: Importer properties will be propagated before batch properties
The second propagation can overwrite the first propagation.setImporterBeforeBatchHandling(boolean)
public void setImporterBeforeBatchHandling(boolean flag_p)
false: Batch properties will be executed before importer propagation which can leads that some properties are overwritten, for true it is vice versa.
flag_p
- public void setUseImporterProposedName(boolean useImporterProposedName_p)
useImporterProposedName_p
- public boolean useImporterProposedName()
getNamePropertyValue(OwDocumentImportItem)
protected String getNamePropertyValue(com.wewebu.ow.server.app.OwDocumentImportItem importer_p)
importer_p
- OwDocumentImporterItemprotected Collection getUsedPropertyInfoList()
setPropertyListConfiguration(OwPropertyListConfiguration)
By default the getPropertyInfos()
is used if it is not null and size is greater than
0 (zero), else the document (OwView.getDocument()
) property info list will be returned.
protected List getPropertyInfos()
setPropertyListConfiguration(OwPropertyListConfiguration)
setPropertyInfos(List)
call.protected void provideValuesMap(com.wewebu.ow.server.ecm.OwObject objSkeleton_p) throws Exception
Will lookup if a matching property exist in current skeleton and provide it with a specific value.
objSkeleton_p
- OwObjectSkeleton to execute mapping onException
- if getting property or setting value has problemspublic void setObjectClassProcessor(com.wewebu.ow.server.dmsdialogs.views.OwObjectClassProcessor objClassProcessor)
By default there will be no pre-processing of the object class, OwObjectClassProcessor = null
.
objClassProcessor
- OwObjectClassProcessor (can be null)Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.