|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.app.OwFunction
com.wewebu.ow.server.app.OwRecordFunction
com.wewebu.ow.server.plug.owaddobject.OwAddObjectRecordFunction
public class OwAddObjectRecordFunction
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
Field Summary | |
---|---|
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 |
Fields inherited from class com.wewebu.ow.server.app.OwFunction |
---|
DESCRIPTION_KEY_CLASSES, DESCRIPTION_KEY_OBJ_TYPES, DESCRIPTION_KEY_TYPE, DRAG_DROP_PROPERTY_MAX_FILESIZE, m_MainContext |
Constructor Summary | |
---|---|
OwAddObjectRecordFunction()
|
Method Summary | |
---|---|
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. |
protected List<com.wewebu.ow.server.dmsdialogs.views.OwObjectPropertyView.OwPropertyInfo> |
createPropertiesInfo(Node editPropertyConfigNode_p)
Create properties info for EditPropertiesView |
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. |
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)
|
Methods inherited from class com.wewebu.ow.server.app.OwRecordFunction |
---|
addHistoryEvent, addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getDefaultIconHTML, getDefaultLabel, getDragDropProperties, getIconHTML, getLabel, getPluginType, isDragDropTarget, isMultifileDragDropAllowed, onClickEvent |
Methods inherited from class com.wewebu.ow.server.app.OwFunction |
---|
getConfigNode, getContext, getContextMenu, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isObjectClassSupported, setSafeSetting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public OwAddObjectRecordFunction()
Method Detail |
---|
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.OwRecordFunction
Exception
public String getIcon() throws Exception
getIcon
in interface com.wewebu.ow.server.app.OwPlugin
getIcon
in class com.wewebu.ow.server.app.OwFunction
Exception
public String getBigIcon() throws Exception
getBigIcon
in class com.wewebu.ow.server.app.OwFunction
Exception
public 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.OwRecordFunction
rootObject_p
- OwObject root folder to work onfolderObject_p
- OwObject selected folder to work on
Exception
public 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.OwRecordFunction
rootObject_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 needed
Exception
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) 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
-
Exception
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) 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
-
Exception
protected List<com.wewebu.ow.server.dmsdialogs.views.OwObjectPropertyView.OwPropertyInfo> createPropertiesInfo(Node editPropertyConfigNode_p) throws Exception
editPropertyConfigNode_p
-
List
object with properties information
Exception
public void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p) throws Exception
onDialogClose
in interface com.wewebu.ow.server.ui.OwDialog.OwDialogListener
dialogView_p
- the closed dialog
Exception
public 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.OwUpdateTarget
Exception
protected 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |