public class OwDocumentFunctionDel
extends com.wewebu.ow.server.app.OwDocumentFunction
Delete Record Function to delete an object.
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 |
---|---|
int |
TOTAL_ELEMENTS_DISPLAY
How many object should be displayed in the message box
|
Constructor and Description |
---|
OwDocumentFunctionDel() |
Modifier and Type | Method and Description |
---|---|
protected void |
addHistoryEvent(Collection objectnames_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
int iEventType_p,
int iStatus_p)
overwrite to use delete event instead
add the plugin invoke event to the history manager
|
String |
getBigIcon()
get the URL to the icon of the dialog / function
|
String |
getIcon()
get the URL to the icon of the dialog / function
|
boolean |
isEnabled(com.wewebu.ow.server.ecm.OwObject oObject_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
int iContext_p)
check if function is enabled for the given object parameters
|
void |
onClickEvent(com.wewebu.ow.server.ecm.OwObject oObject_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
event called when user clicked the plugin label / icon
|
void |
onMultiselectClickEvent(Collection objects_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
event called when user clicked the plugin for multiple selected items
|
addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getColumnTitle, getContextMenu, getDefaultIconHTML, getDefaultLabel, getDisplayNameFromUserId, getEnableColumnClickEvent, getIconHTML, getLabel, getMultiselect, getNeedParent, getObjectInstance, getPluginType, getRetrievalPropertyNames, getShowInEditViews, init, isEnabled, isObjectTypeSupported, onColumnClickEvent
getConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSetting
public int TOTAL_ELEMENTS_DISPLAY
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 oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p, int iContext_p) throws Exception
isEnabled
in class com.wewebu.ow.server.app.OwDocumentFunction
oObject_p
- OwObject where event was triggeredoParent_p
- Parent which listed the ObjectException
public void onClickEvent(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p) throws Exception
onClickEvent
in class com.wewebu.ow.server.app.OwDocumentFunction
oObject_p
- OwObject where event was triggeredoParent_p
- Parent which listed the ObjectrefreshCtx_p
- OwClientRefreshContext callback interface for the function plugins to signal refresh events to clients, can be null if no refresh is neededException
public void onMultiselectClickEvent(Collection objects_p, com.wewebu.ow.server.ecm.OwObject oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p) throws Exception
onMultiselectClickEvent
in class com.wewebu.ow.server.app.OwDocumentFunction
objects_p
- Iterator of OwObjectoParent_p
- Parent which listed the ObjectsrefreshCtx_p
- OwClientRefreshContext callback interface for the function plugins to signal refresh events to clients, can be null if no refresh is neededException
protected void addHistoryEvent(Collection objectnames_p, com.wewebu.ow.server.ecm.OwObject oParent_p, int iEventType_p, int iStatus_p) throws Exception
addHistoryEvent
in class com.wewebu.ow.server.app.OwDocumentFunction
objectnames_p
- Collection of object names. Only String
values are permitted.oParent_p
- Parent which listed the ObjectiEventType_p
- int one out of:
OwEventManger.HISTORY_EVENT_TYPE_PLUGIN_INVOKE_UI
OwEventManger.HISTORY_EVENT_TYPE_PLUGIN_INVOKE_VIEW
OwEventManger.HISTORY_EVENT_TYPE_PLUGIN_INVOKE_EDITiStatus_p
- int Status as defined in OwEventManger.HISTORY_STATUS_...Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.