public class OwCreateObjectDialog extends OwStandardDialog implements OwObjectClassView.OwObjectClassViewListner, OwConfigurableDialog, OwJspConfigurable
Dialog for adding records or single folders to a folder.
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
OwDialog.OwDialogListener
OwLayout.OwDispatchRegion, OwLayout.OwLayoutViewRefrence
Modifier and Type | Field and Description |
---|---|
protected OwMultipanelAccessRightsView |
accessRightsView
Access Rights view for access rights handling
|
protected OwDelegateView |
delegateView
Delegation View for JSP and default rendering of properties view
|
static int |
DIALOG_STATUS_FAILED
status of this dialog: checkin failed
|
static int |
DIALOG_STATUS_NONE
status of this dialog: nothing done yet
|
static int |
DIALOG_STATUS_OK
status of this dialog: checkin successful
|
protected OwObjectClassView |
m_classView |
protected OwXMLUtil |
m_configNode
the configuration node
|
protected int |
m_dialogStatus
status of this dialog needed for historization
|
protected OwObjectClass |
m_folderClass
class to use for new folder
|
protected OwObject |
m_folderObject
selected object of record
|
protected boolean |
m_fOpenObject
open with new record
|
protected OwSubLayout |
m_Layout
layout to be used for the dialog
|
protected String |
m_objectClassName
class name
|
protected Collection |
m_propertyInfos
Collection of OwObjectPropertyView.OwPropertyInfo objects
|
protected OwClientRefreshContext |
m_RefreshCtx
refresh context for callback
|
protected OwObjectSkeleton |
m_sceletonObject
the new folder object
|
protected String |
m_strObjectClass
Deprecated.
will be replaced by
classSelectionCfg |
protected String |
m_strObjectClassParent
Deprecated.
will be replaced by
classSelectionCfg |
protected 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
|
protected OwNavigationView.OwTabInfo |
propertiesTab
Tab where the properties view is contained
|
protected OwPropertyViewBridge |
propertyViewBridge
the property view
|
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
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwCreateObjectDialog(OwObject folderObject_p,
OwObjectClassSelectionCfg classSelectionCfg,
boolean fOpenObject_p)
create a record / folder create dialog
|
OwCreateObjectDialog(OwObject folderObject_p,
String strClassName_p,
String strObjectClassParent_p,
boolean fOpenObject_p)
Deprecated.
will be replaced by
OwCreateObjectDialog(OwObject, OwObjectClassSelectionCfg, boolean) |
Modifier and Type | Method and Description |
---|---|
protected String |
create()
create the folder / record
|
protected OwMultipanelAccessRightsView |
createAccessRightsView()
(overridable)
Factory for AccessRightsView, can be over written
to initialize dialog with own access rights representation.
|
protected OwDelegateView |
createDelegateView()
(overridable)
Create the instance which is used for delegation of
Property View rendering.
|
protected OwDocument |
createDocument()
Factory method for document creation
|
OwCreateObjectDialog |
createFormDialog() |
protected OwFormPropertyViewBridge |
createFormViewBridge()
(overridable)
Create a property view bridge with form rendering.
|
protected OwObjectPropertyView |
createObjectPropertyView()
overridable to create properties view
|
protected OwPropertyViewBridge |
createPropertyViewBridge() |
protected OwStandardPropertyViewBridge |
createStandardViewBridge()
(overridable)
Create a standard property view bridge, for standard rendering.
|
void |
detach()
remove view and all subviews from context
|
protected OwMultipanelAccessRightsView |
getAccessRightsView()
Get method to retrieve the access rights view,
which is responsible for rendering.
|
OwXMLUtil |
getConfigNode()
Get the associated
OwXMLUtil object. |
OwJspFormConfigurator |
getJspConfigurator()
Get the associated
OwJspFormConfigurator object. |
OwObject |
getNewObject()
get the newly created object
|
OwObjectClassProcessor |
getObjectClassProcessor()
Get ObjectClassProcessor for handling of skeleton creation.
Can return null if no processor was defined/configured. |
OwPropertyListConfiguration |
getPropertyListConfiguration()
Get currently defined PropertyList configuration
|
int |
getStatus()
get the current status of this dialog
|
protected void |
init()
init the target after the context is set.
|
protected void |
initTabOrder()
(overridable)
Called during init() method to assign
the view order, in which the views should be processed.
|
void |
onObjectClassViewSelectClass(OwObjectClass classDescription_p,
String strPath_p)
event called when user selects a class
|
void |
onUpdate(OwEventTarget caller_p,
int iCode_p,
Object param_p)
called by the framework to update the view when OwDocument.Update was called
NOTE: We can not use the onRender method to update,
because we do not know the call order of onRender.
|
void |
setConfigNode(OwXMLUtil configNode_p)
Set the associated
OwXMLUtil object. |
void |
setJspConfigurator(OwJspFormConfigurator jspFormConfigurator_p)
Set the associated
OwJspFormConfigurator object. |
void |
setObjectClassProcessor(OwObjectClassProcessor objProc)
Set/Provide an OwObjectClassProcessor.
|
void |
setPropertyInfos(List propertyInfos_p)
Deprecated.
since 4.2.0.0 use
setPropertyListConfiguration(OwPropertyListConfiguration) instead |
void |
setPropertyListConfiguration(OwPropertyListConfiguration propertyListConfiguration)
Set PropertyList Configuration
|
void |
setRefreshContext(OwClientRefreshContext pluginRefreshCtx_p)
set a plugin refresh callback interface
|
void |
setValues(Map properties_p)
submit a set of values that should be set as default for the new object
|
protected void |
updateObjectClass()
the object class for the folder was changed, update the skeleton
|
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, onRender, renderCloseButton, renderHelpButton, renderRegion, setHelp, setInfoIcon, setTitle
closeDialog, setListener
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
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
protected OwSubLayout m_Layout
protected OwObjectSkeleton m_sceletonObject
protected OwObjectClassView m_classView
protected OwSubNavigationView m_SubNavigation
protected OwPropertyViewBridge propertyViewBridge
protected OwObject m_folderObject
protected String m_strObjectClass
classSelectionCfg
protected String m_strObjectClassParent
classSelectionCfg
protected OwObjectClass m_folderClass
protected OwClientRefreshContext m_RefreshCtx
protected boolean m_fOpenObject
protected Map m_ValuesMap
protected Collection m_propertyInfos
public static final int DIALOG_STATUS_NONE
public static final int DIALOG_STATUS_OK
public static final int DIALOG_STATUS_FAILED
protected int m_dialogStatus
protected OwDelegateView delegateView
protected OwNavigationView.OwTabInfo propertiesTab
protected String m_objectClassName
protected OwMultipanelAccessRightsView accessRightsView
protected OwXMLUtil m_configNode
public OwCreateObjectDialog(OwObject folderObject_p, String strClassName_p, String strObjectClassParent_p, boolean fOpenObject_p)
OwCreateObjectDialog(OwObject, OwObjectClassSelectionCfg, boolean)
folderObject_p
- OwObject parent folder to add tostrClassName_p
- class name to use for new folder, null = let user select a classstrObjectClassParent_p
- String parent class to let user browsefOpenObject_p
- boolean open the new folder or false if folder should not be openedpublic OwCreateObjectDialog(OwObject folderObject_p, OwObjectClassSelectionCfg classSelectionCfg, boolean fOpenObject_p)
folderObject_p
- OwObject parent folder to add toclassSelectionCfg
- fOpenObject_p
- boolean open the new folder or false if folder should not be openedprotected OwDocument createDocument()
OwDocument
objectpublic int getStatus()
public void setValues(Map properties_p)
properties_p
- Map of values keyed by parameter names to be set initiallypublic void setPropertyInfos(List propertyInfos_p)
setPropertyListConfiguration(OwPropertyListConfiguration)
insteadpropertyInfos_p
- list of OwPropertyInfo objects that are passed to the PropertyViewprotected void init() throws Exception
protected void initTabOrder() throws Exception
Overriding this method allow to change the order in which the views would appear, and also gives the possibility to create additional views.
Exception
protected OwPropertyViewBridge createPropertyViewBridge() throws Exception
Exception
protected OwFormPropertyViewBridge createFormViewBridge()
getJspConfigurator()
protected OwStandardPropertyViewBridge createStandardViewBridge() throws Exception
Exception
- if cannot create object property viewcreateObjectPropertyView()
protected OwObjectPropertyView createObjectPropertyView() throws Exception
OwObjectPropertyView
Exception
public void detach()
public OwObject getNewObject() throws Exception
Exception
public void onUpdate(OwEventTarget caller_p, int iCode_p, Object param_p) throws Exception
onUpdate
in interface OwUpdateTarget
onUpdate
in class OwView
caller_p
- OwEventTarget target that called updateiCode_p
- int optional reason codeparam_p
- Object optional parameter representing the refresh, depends on the value of iCode_p, can be nullException
public void setRefreshContext(OwClientRefreshContext pluginRefreshCtx_p)
pluginRefreshCtx_p
- OwClientRefreshContextprotected String create() throws Exception
Exception
protected void updateObjectClass() throws Exception
Exception
public void onObjectClassViewSelectClass(OwObjectClass classDescription_p, String strPath_p) throws Exception
onObjectClassViewSelectClass
in interface OwObjectClassView.OwObjectClassViewListner
classDescription_p
- OwObjectClassstrPath_p
- String path to selected tree itemException
public OwCreateObjectDialog createFormDialog()
public void setConfigNode(OwXMLUtil configNode_p)
OwConfigurableDialog
OwXMLUtil
object. Can be null
.setConfigNode
in interface OwConfigurableDialog
public void setJspConfigurator(OwJspFormConfigurator jspFormConfigurator_p)
OwJspConfigurable
OwJspFormConfigurator
object. Can be null
.setJspConfigurator
in interface OwJspConfigurable
public OwXMLUtil getConfigNode()
OwConfigurableDialog
OwXMLUtil
object. Can be null
.getConfigNode
in interface OwConfigurableDialog
OwXMLUtil
object. Can be null
.public OwJspFormConfigurator getJspConfigurator()
OwJspConfigurable
OwJspFormConfigurator
object. Can be null
.getJspConfigurator
in interface OwJspConfigurable
OwJspFormConfigurator
object or null
.protected OwMultipanelAccessRightsView createAccessRightsView()
protected OwMultipanelAccessRightsView getAccessRightsView()
protected OwDelegateView createDelegateView()
public void setObjectClassProcessor(OwObjectClassProcessor objProc)
objProc
- OwObjectClassProcessorpublic OwObjectClassProcessor getObjectClassProcessor()
public OwPropertyListConfiguration getPropertyListConfiguration()
public void setPropertyListConfiguration(OwPropertyListConfiguration propertyListConfiguration)
propertyListConfiguration
- OwPropertyListConfiguration (can be null)Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.