|
||||||||||
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.owdoccopy.OwRecordFunctionPaste
public class OwRecordFunctionPaste
Move Record Function to move items from the clipboard.
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 | |
---|---|
static int |
INSERT_MODE_PHYSICALCOPY
insert mode physical copy |
static int |
INSERT_MODE_REFERENCE
insert mode reference |
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 | |
---|---|
OwRecordFunctionPaste()
|
Method Summary | |
---|---|
protected boolean |
createPropertyMap()
(overridable) Verification if property map need to be created for current processing. By default will return true, if current mode is set to INSERT_MODE_PHYSICALCOPY . |
String |
getBigIcon()
get the URL to the info icon |
String |
getIcon()
get the URL to the info icon |
void |
init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p)
set the plugin description node |
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 |
protected com.wewebu.ow.server.ecm.OwPropertyCollection |
mapPropertyCollection(Map propertyMap_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
com.wewebu.ow.server.ecm.OwObject sourceObject_p)
Applies the given mapping rules on the folderObject-sourceObjet pair. |
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 |
protected void |
processCopyInstance(com.wewebu.ow.server.app.OwClipboardContentOwObject clipboardObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
Map propertyMap_p)
Overridable physical copy paste processing method. |
protected void |
processCopyRef(com.wewebu.ow.server.app.OwClipboardContentOwObject clipboardObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
Map propertyMap_p)
Overridable reference paste processing method. |
protected void |
processCut(com.wewebu.ow.server.app.OwClipboardContentOwObject clipboardObject_p,
com.wewebu.ow.server.ecm.OwObject folderObject_p,
Map propertyMap_p)
Overridable cut-triggered paste processing method. |
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 |
---|
public static final int INSERT_MODE_REFERENCE
public static final int INSERT_MODE_PHYSICALCOPY
Constructor Detail |
---|
public OwRecordFunctionPaste()
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
node_p
- OwXMLUtil wrapped DOM Node containing the plugin descriptioncontext_p
- OwMainAppContext
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
protected void processCut(com.wewebu.ow.server.app.OwClipboardContentOwObject clipboardObject_p, com.wewebu.ow.server.ecm.OwObject folderObject_p, Map propertyMap_p) throws Exception
clipboardObject_p
- cutted clipboard object to be pastedfolderObject_p
- paste destination folderpropertyMap_p
- the configured property map rules (can be null)
Exception
protected void processCopyRef(com.wewebu.ow.server.app.OwClipboardContentOwObject clipboardObject_p, com.wewebu.ow.server.ecm.OwObject folderObject_p, Map propertyMap_p) throws Exception
INSERT_MODE_REFERENCE
configured plugin instances.
clipboardObject_p
- copied clipboard object to be pastedfolderObject_p
- paste destination folderpropertyMap_p
- the configured property map rules (can be null)
Exception
protected void processCopyInstance(com.wewebu.ow.server.app.OwClipboardContentOwObject clipboardObject_p, com.wewebu.ow.server.ecm.OwObject folderObject_p, Map propertyMap_p) throws Exception
INSERT_MODE_PHYSICALCOPY
configured plugin instances.
clipboardObject_p
- copied clipboard object to be pastedfolderObject_p
- paste destination folderpropertyMap_p
- the configured property map rules (can be null)
Exception
protected com.wewebu.ow.server.ecm.OwPropertyCollection mapPropertyCollection(Map propertyMap_p, com.wewebu.ow.server.ecm.OwObject folderObject_p, com.wewebu.ow.server.ecm.OwObject sourceObject_p) throws Exception
propertyMap_p
- property mappings rule map (can be null)folderObject_p
- sourceObject_p
-
OwPropertyCollection
containing properties defined by the given mapping with values set
according to the mapping expressions (see bootstrap documentation on property mappings).
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 boolean createPropertyMap()
INSERT_MODE_PHYSICALCOPY
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |