public class OwCheckInDialog extends OwSaveDlgDialog implements com.wewebu.ow.server.app.OwClientRefreshContext
Implementation of OwSaveDlgDialog to create a check in dialog for a given object.
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 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 int |
m_dialogStatus
status of this dialog needed for historization
|
static int |
VIEW_MASK_CHECKIN_MODE_OPTION
view flag
|
static int |
VIEW_MASK_RELEASE_VERSION_DEFAULT
view flag
|
static int |
VIEW_MASK_RELEASE_VERSION_OPTION
view flag
|
m_classView, m_docImportView, m_document, m_fSaveOnly, m_indexClassView, m_indexPropertyView, m_iViewMask, m_Layout, m_PropertyView, m_RefreshCtx, m_strParentObjectClass, m_SubNavigation, m_ValuesMap, VIEW_PROPERTY_CLASS_VIEW, VIEW_PROPERTY_ENABLE_MULTIPLE_FILE_UPLOAD, VIEW_PROPERTY_ENABLE_PASTE_METADATA
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 |
---|
OwCheckInDialog(com.wewebu.ow.server.ecm.OwObject saveObject_p,
List documentImporters_p)
construct a CheckIn dialog to save the given object
|
Modifier and Type | Method and Description |
---|---|
void |
detach()
Remove view and all subviews from context
|
int |
getDocumentImporterContext()
(overridable)
Context for the DocumentImporter which are initialized by the
OwSaveDlgDocumentImportView
|
org.alfresco.wd.ui.conf.OwPropertyListConfiguration |
getPropertyListConfiguration()
Getter for current PropertyList configuration
|
int |
getStatus()
get the current status of this dialog
|
String |
getTitle()
overridable to display the title of the dialog
|
protected void |
init()
init the target after the context is set.
|
void |
onClientRefreshContextUpdate(int reason_p,
Object param_p) |
void |
onDocumentImported()
Event fired when document has been imported
|
protected void |
onPostProcessDialogClose(com.wewebu.ow.server.ui.OwDialog dialog_p)
Will be called if a postprocess dialog was opened, after
closing it again.
|
void |
onSaveDocument(com.wewebu.ow.server.ecm.OwContentCollection content_p,
String strMimeType_p,
String strMimeParameter_p,
Object checkinMode_p,
boolean fReleaseVersion_p)
called when user clicks save on the source view, finishes the dialog, save the prepared content
|
protected void |
performSave()
Implementation of the abstract method defined in
OwSaveDlgDialog that
performs the actual checkin operation. |
void |
setPropertiesInfo(List propertiesInfo_p)
Deprecated.
since 4.2.0.0 use
setPropertyListConfiguration(OwPropertyListConfiguration) instead |
void |
setPropertyListConfiguration(org.alfresco.wd.ui.conf.OwPropertyListConfiguration propLstConf)
Set PropertyList configuration
|
cleanup, createDocumentImportView, getCurrentDocument, getDocumentImporters, getPostProcessingDialog, hasViewMask, isPostProcessDialogOpen, isRegion, onClose, onDialogClose, onObjectClassViewSelectClass, onSaveDocument, onUpdate, openPostProcessingView, renderRegion, setIsPostProcessDialogOpen, setRefreshContext, setValues, setViewMask
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
protected static final int DIALOG_STATUS_NONE
protected static final int DIALOG_STATUS_OK
protected static final int DIALOG_STATUS_FAILED
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
protected int m_dialogStatus
public OwCheckInDialog(com.wewebu.ow.server.ecm.OwObject saveObject_p, List documentImporters_p) throws Exception
saveObject_p
- OwObject to checkindocumentImporters_p
- List of document importers to useException
public void setPropertiesInfo(List propertiesInfo_p)
setPropertyListConfiguration(OwPropertyListConfiguration)
insteadpropertiesInfo_p
- properties infopublic int getStatus()
protected void init() throws Exception
init
in class OwSaveDlgDialog
Exception
public String getTitle()
getTitle
in interface com.wewebu.ow.server.ui.OwBaseView
getTitle
in class com.wewebu.ow.server.app.OwStandardDialog
public void onSaveDocument(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 void performSave() throws Exception
OwSaveDlgDialog
that
performs the actual checkin operation.performSave
in class OwSaveDlgDialog
Exception
public void onClientRefreshContextUpdate(int reason_p, Object param_p) throws Exception
onClientRefreshContextUpdate
in interface com.wewebu.ow.server.app.OwClientRefreshContext
Exception
public int getDocumentImporterContext()
OwSaveDlgDialog
getDocumentImporterContext
in class OwSaveDlgDialog
public void onDocumentImported() throws Exception
OwSaveDlgDocumentImportView.OwSaveDlgDocumentImportViewListner
onDocumentImported
in interface OwSaveDlgDocumentImportView.OwSaveDlgDocumentImportViewListner
onDocumentImported
in class OwSaveDlgDialog
Exception
protected void onPostProcessDialogClose(com.wewebu.ow.server.ui.OwDialog dialog_p) throws Exception
OwSaveDlgDialog
onPostProcessDialogClose
in class OwSaveDlgDialog
dialog_p
- OwDialog which was used for post processingException
public void detach()
OwSaveDlgDialog
detach
in class OwSaveDlgDialog
public void setPropertyListConfiguration(org.alfresco.wd.ui.conf.OwPropertyListConfiguration propLstConf)
propLstConf
- OwPropertyListConfiguration (can be null)public org.alfresco.wd.ui.conf.OwPropertyListConfiguration getPropertyListConfiguration()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.