public class OwDocumentFunctionCheckin
extends com.wewebu.ow.server.app.OwDocumentFunction
implements com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Implementation of the DMS document function checkin.
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 OwKeepContentDocumentImporter |
keepDocImporter |
protected com.wewebu.ow.server.ecm.OwObject |
m_checkinObject
the last object to check in needed for status historization in onCloseDialog()
|
protected List |
m_documentImporters
list of OwDocumentImporter objects that should be displayed as possible document source
|
protected com.wewebu.ow.server.ecm.OwObject |
m_parentObject
the last parent object needed for status historization in onCloseDialog()
|
Constructor and Description |
---|
OwDocumentFunctionCheckin() |
Modifier and Type | Method and Description |
---|---|
protected OwCheckInDialog |
createCheckInDialog(com.wewebu.ow.server.ecm.OwObject saveObject_p)
(overridable) factory method for the creation of check-in dialog
|
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 org.alfresco.wd.ui.conf.OwPropertyListConfiguration |
getPropertyListConfiguration()
Getter for current PropertyList configuration
|
void |
init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p)
override to get some plugin configuration tags.
|
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 |
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, getColumnTitle, getContextMenu, getDefaultIconHTML, getDefaultLabel, getDisplayNameFromUserId, getEnableColumnClickEvent, getIconHTML, getLabel, getMultiselect, getNeedParent, getObjectInstance, getPluginType, getRetrievalPropertyNames, getShowInEditViews, isEnabled, isObjectTypeSupported, onColumnClickEvent, onMultiselectClickEvent
getConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSetting
protected com.wewebu.ow.server.ecm.OwObject m_checkinObject
protected com.wewebu.ow.server.ecm.OwObject m_parentObject
protected List m_documentImporters
protected OwKeepContentDocumentImporter keepDocImporter
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.OwDocumentFunction
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 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
- OwFunctionRefreshContext callback interface for the function plugins to signal refresh events to clients, can be null if no refresh is neededException
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 dialogException
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 OwCheckInDialog createCheckInDialog(com.wewebu.ow.server.ecm.OwObject saveObject_p) throws Exception
saveObject_p
- OwObject
to checkinOwCheckInDialog
newly created dialogException
protected org.alfresco.wd.ui.conf.OwPropertyListConfiguration getPropertyListConfiguration()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.