public class OwAddObjectRecordFunction
extends com.wewebu.ow.server.app.OwRecordFunction
implements com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Implementation of the record function plugin, for adding objects.
If specified in the configuration it uses a given formular for property editing.
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 boolean |
isGeneratedIdsFeatureInUse
Flag notifying if the generation feature is used
|
protected com.wewebu.ow.server.ecm.OwObject |
m_folderObject
last folder object for history events
|
protected com.wewebu.ow.server.app.OwJspFormConfigurator |
m_jspPageConfigurator
JSPForm Configuration handler.
|
protected String |
m_objectClass
Deprecated.
will be removed in the future. See
OwObjectClassSelectionCfg. |
protected com.wewebu.ow.server.ecm.OwObject |
m_rootObject
last root object for history events
|
| Constructor and Description |
|---|
OwAddObjectRecordFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected com.wewebu.ow.server.dmsdialogs.OwCreateObjectDialog |
createCreateObjectDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg,
boolean fOpenObject_p)
overridable factory method
|
protected com.wewebu.ow.server.dmsdialogs.OwCreateObjectDialog |
createCreateObjectDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p,
String strClassName_p,
String strObjectClassParent_p,
boolean fOpenObject_p)
Deprecated.
|
String |
getBigIcon()
get the URL to the icon of the dialog / function
|
String |
getIcon()
get the URL to the icon of the dialog / function
|
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassProcessor |
getObjectClassProcessor()
OwObjectClassProcessor if any was defined.
|
protected Map |
getPredefinedValues(com.wewebu.ow.server.ecm.OwObject rootObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p)
Return a map with values which should be predefined/set in initial context.
|
protected org.alfresco.wd.ui.conf.OwPropertyListConfiguration |
getPropertyListConfiguration()
Get the current PropertyList Configuration
|
void |
init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p) |
boolean |
isEnabled(com.wewebu.ow.server.ecm.OwObject rootObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
int iContext_p)
check if function is enabled for the given object parameters
|
void |
onClickEvent(com.wewebu.ow.server.ecm.OwObject rootObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
event called when user clicked the plugin label / icon
|
void |
onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p)
Listener for DialogClose events used to historize SUCCESS/CANCEL/FAILURE
|
void |
onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p,
int code_p,
Object param_p) |
addHistoryEvent, addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getDefaultIconHTML, getDefaultLabel, getDragDropProperties, getIconHTML, getLabel, getPluginType, isDragDropTarget, isMultifileDragDropAllowed, onClickEventgetConfigNode, getContext, getContextMenu, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isObjectClassSupported, setSafeSettingprotected com.wewebu.ow.server.ecm.OwObject m_rootObject
protected com.wewebu.ow.server.ecm.OwObject m_folderObject
protected String m_objectClass
OwObjectClassSelectionCfg.protected com.wewebu.ow.server.app.OwJspFormConfigurator m_jspPageConfigurator
protected boolean isGeneratedIdsFeatureInUse
public void init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p)
throws Exception
init in class com.wewebu.ow.server.app.OwRecordFunctionExceptionpublic String getIcon() throws Exception
getIcon in interface com.wewebu.ow.server.app.OwPlugingetIcon in class com.wewebu.ow.server.app.OwFunctionExceptionpublic String getBigIcon() throws Exception
getBigIcon in class com.wewebu.ow.server.app.OwFunctionExceptionpublic boolean isEnabled(com.wewebu.ow.server.ecm.OwObject rootObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
int iContext_p)
throws Exception
isEnabled in class com.wewebu.ow.server.app.OwRecordFunctionrootObject_p - OwObject root folder to work onfolderObject_p - OwObject selected folder to work onExceptionpublic void onClickEvent(com.wewebu.ow.server.ecm.OwObject rootObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
throws Exception
onClickEvent in class com.wewebu.ow.server.app.OwRecordFunctionrootObject_p - OwObject root folder to work onfolderObject_p - OwObject selected folder to work onrefreshCtx_p - OwFunctionRefreshContext callback interface for the function plugins to signal refresh events to clients, can be null if no refresh is neededExceptionprotected com.wewebu.ow.server.dmsdialogs.OwCreateObjectDialog createCreateObjectDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p,
String strClassName_p,
String strObjectClassParent_p,
boolean fOpenObject_p)
throws Exception
Since 3.1.0.0 it is possible to configure in <DialogHanlder/> node a subclass of OwCreateObjectDialog.
In that situation it's mandatory that configured class must have a public constructor with the same signature as:
OwCreateObjectDialog.OwCreateObjectDialog(OwObject, String, String, boolean)
folderObject_p - strClassName_p - strObjectClassParent_p - fOpenObject_p - Exceptionprotected com.wewebu.ow.server.dmsdialogs.OwCreateObjectDialog createCreateObjectDialog(com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.dmsdialogs.views.classes.OwObjectClassSelectionCfg classSelectionCfg,
boolean fOpenObject_p)
throws Exception
Since 3.1.0.0 it is possible to configure in <DialogHanlder/> node a subclass of OwCreateObjectDialog.
In that situation it's mandatory that configured class must have a public constructor with the same signature as:
OwCreateObjectDialog.OwCreateObjectDialog(OwObject, OwObjectClassSelectionCfg, boolean)
folderObject_p - classSelectionCfg - fOpenObject_p - Exceptionpublic void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p)
throws Exception
onDialogClose in interface com.wewebu.ow.server.ui.OwDialog.OwDialogListenerdialogView_p - the closed dialogExceptionpublic void onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p,
int code_p,
Object param_p)
throws Exception
onUpdate in interface com.wewebu.ow.server.ui.OwUpdateTargetExceptionprotected Map getPredefinedValues(com.wewebu.ow.server.ecm.OwObject rootObject_p, com.wewebu.ow.server.ecm.OwObject folderObject_p) throws Exception
rootObject_p - OwObject which will be the parentfolderObject_p - OwObject (can be null)Exception - could not create mapprotected com.wewebu.ow.server.dmsdialogs.views.OwObjectClassProcessor getObjectClassProcessor()
protected org.alfresco.wd.ui.conf.OwPropertyListConfiguration getPropertyListConfiguration()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.