com.wewebu.ow.server.plug.owbpm
Class OwBPMAttachmentFieldControl

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.app.OwFieldManagerControl
          extended by com.wewebu.ow.server.fieldctrlimpl.OwFieldManagerControlObject
              extended by com.wewebu.ow.server.plug.owbpm.OwBPMAttachmentFieldControl

public class OwBPMAttachmentFieldControl
extends com.wewebu.ow.server.fieldctrlimpl.OwFieldManagerControlObject

Field Control to display Attachments in the BPM Workitems.

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  List m_documentFunctionPluginIds
          List with IDs of document function plugins
static String PLUGIN_CONFIG_ID_ATTACHMENT_FUNCTION
          general ID in the plugin ID to be configure the plugin IDs for attachments
 
Fields inherited from class com.wewebu.ow.server.fieldctrlimpl.OwFieldManagerControlObject
ATTACHMENT_DMS_ID, PLUG_INDEX_KEY
 
Constructor Summary
OwBPMAttachmentFieldControl(List documentFunctionPluginIds_p)
          creates a field control to display fields
 
Method Summary
 void onAttachmentDocumentFunction(javax.servlet.http.HttpServletRequest request_p)
          called when user clicks a document function plugin of an attachment
protected  void renderObjectReferenceLinkInternal(Writer w_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, com.wewebu.ow.server.ecm.OwObjectReference obj_p, String strID_p, boolean fEdit_p)
          insert a link for OwObject values
 
Methods inherited from class com.wewebu.ow.server.fieldctrlimpl.OwFieldManagerControlObject
insertEditField, insertLabel, insertReadOnlyField, onDeleteArrayItem, onPasteObjectArrayItem, onPasteObjectReference, renderObjectReferenceLink, renderPasteObjectLink, updateField
 
Methods inherited from class com.wewebu.ow.server.app.OwFieldManagerControl
getFieldManager, getFormEventFunction, getFormEventURL, getFormTarget, init, init
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormName, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_CONFIG_ID_ATTACHMENT_FUNCTION

public static final String PLUGIN_CONFIG_ID_ATTACHMENT_FUNCTION
general ID in the plugin ID to be configure the plugin IDs for attachments

See Also:
Constant Field Values

m_documentFunctionPluginIds

protected List m_documentFunctionPluginIds
List with IDs of document function plugins

Constructor Detail

OwBPMAttachmentFieldControl

public OwBPMAttachmentFieldControl(List documentFunctionPluginIds_p)
                            throws Exception
creates a field control to display fields

Parameters:
documentFunctionPluginIds_p - List with IDs of document function plugins
Throws:
Exception
Method Detail

renderObjectReferenceLinkInternal

protected void renderObjectReferenceLinkInternal(Writer w_p,
                                                 com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                                                 com.wewebu.ow.server.ecm.OwObjectReference obj_p,
                                                 String strID_p,
                                                 boolean fEdit_p)
                                          throws Exception
insert a link for OwObject values

Overrides:
renderObjectReferenceLinkInternal in class com.wewebu.ow.server.fieldctrlimpl.OwFieldManagerControlObject
Parameters:
w_p - Writer object
fieldDef_p - OwFieldDefinition
obj_p - OwObject to render
strID_p - String field ID
fEdit_p - boolean true = edit field, false = read only field
Throws:
Exception

onAttachmentDocumentFunction

public void onAttachmentDocumentFunction(javax.servlet.http.HttpServletRequest request_p)
                                  throws Exception
called when user clicks a document function plugin of an attachment

Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.