com.wewebu.ow.server.plug.owdoccopy
Class OwDocumentFunctionCut

java.lang.Object
  extended by com.wewebu.ow.server.app.OwFunction
      extended by com.wewebu.ow.server.app.OwDocumentFunction
          extended by com.wewebu.ow.server.plug.owdoccopy.OwDocumentFunctionAddToClipboard
              extended by com.wewebu.ow.server.plug.owdoccopy.OwDocumentFunctionCut
All Implemented Interfaces:
com.wewebu.ow.server.app.OwPlugin

public class OwDocumentFunctionCut
extends OwDocumentFunctionAddToClipboard

Implementation of the Document cut plugin.

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
 
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
OwDocumentFunctionCut()
           
 
Method Summary
protected  OwCommandAddToClipboard createAddToClipboardCommand(com.wewebu.ow.server.ecm.OwObject oParent_p, List objects_p)
          Create the concrete OwCommandAddToClipboard object.
 String getBigIcon()
          get the URL to the info icon
 String getIcon()
          get the URL to the info icon
 boolean getNeedParent()
          check if plugin needs oParent_p parameter in onClick handler
 boolean isEnabled(Collection objects_p, com.wewebu.ow.server.ecm.OwObject oParent_p, int iContext_p)
           
 boolean isEnabled(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p, int iContext_p)
           
protected  void onClickEventPostProcessing(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p)
          This method is called after the click event was processed.
 
Methods inherited from class com.wewebu.ow.server.plug.owdoccopy.OwDocumentFunctionAddToClipboard
executeAddToClipboadCommand, onClickEvent, onMultiselectClickEvent
 
Methods inherited from class com.wewebu.ow.server.app.OwDocumentFunction
addHistoryEvent, addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getColumnTitle, getContextMenu, getDefaultIconHTML, getDefaultLabel, getDisplayNameFromUserId, getEnableColumnClickEvent, getIconHTML, getLabel, getMultiselect, getObjectInstance, getPluginType, getRetrievalPropertyNames, getShowInEditViews, init, isObjectTypeSupported, onColumnClickEvent
 
Methods inherited from class com.wewebu.ow.server.app.OwFunction
getConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSetting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwDocumentFunctionCut

public OwDocumentFunctionCut()
Method Detail

getIcon

public String getIcon()
               throws Exception
get the URL to the info icon

Specified by:
getIcon in interface com.wewebu.ow.server.app.OwPlugin
Overrides:
getIcon in class com.wewebu.ow.server.app.OwFunction
Returns:
String URL
Throws:
Exception

getBigIcon

public String getBigIcon()
                  throws Exception
get the URL to the info icon

Overrides:
getBigIcon in class com.wewebu.ow.server.app.OwFunction
Returns:
String URL
Throws:
Exception

getNeedParent

public boolean getNeedParent()
check if plugin needs oParent_p parameter in onClick handler

Overrides:
getNeedParent in class com.wewebu.ow.server.app.OwDocumentFunction
Returns:
boolean true = enable plugin only, if a oParent_p parameter is available for the selected object, false = oParent_p can be null.

onClickEventPostProcessing

protected void onClickEventPostProcessing(com.wewebu.ow.server.ecm.OwObject oObject_p,
                                          com.wewebu.ow.server.ecm.OwObject oParent_p)
                                   throws Exception,
                                          com.wewebu.ow.server.exceptions.OwInvalidOperationException
Description copied from class: OwDocumentFunctionAddToClipboard
This method is called after the click event was processed.

Specified by:
onClickEventPostProcessing in class OwDocumentFunctionAddToClipboard
Throws:
Exception
com.wewebu.ow.server.exceptions.OwInvalidOperationException

createAddToClipboardCommand

protected OwCommandAddToClipboard createAddToClipboardCommand(com.wewebu.ow.server.ecm.OwObject oParent_p,
                                                              List objects_p)
Description copied from class: OwDocumentFunctionAddToClipboard
Create the concrete OwCommandAddToClipboard object.

Specified by:
createAddToClipboardCommand in class OwDocumentFunctionAddToClipboard
Parameters:
oParent_p - - the parent folder
objects_p - - the collection of objects
Returns:
- the OwCommandAddToClipboard object.

isEnabled

public boolean isEnabled(Collection objects_p,
                         com.wewebu.ow.server.ecm.OwObject oParent_p,
                         int iContext_p)
                  throws Exception
Overrides:
isEnabled in class com.wewebu.ow.server.app.OwDocumentFunction
Throws:
Exception

isEnabled

public boolean isEnabled(com.wewebu.ow.server.ecm.OwObject oObject_p,
                         com.wewebu.ow.server.ecm.OwObject oParent_p,
                         int iContext_p)
                  throws Exception
Overrides:
isEnabled in class com.wewebu.ow.server.app.OwDocumentFunction
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.