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

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.plug.owbpm.OwBPMResultlistAttachmentFieldControl

public class OwBPMResultlistAttachmentFieldControl
extends com.wewebu.ow.server.app.OwFieldManagerControl

Field Control to display Attachments in the BPM Workitems using a standard object list.

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

See Also:
OwObjectListView

Nested Class Summary
 class OwBPMResultlistAttachmentFieldControl.OwDeleteAttachmentFunction
          Inline attachment removal document function.
This document function removes an attachment from an OwBPMResultlistAttachmentFieldControl handled attachments list.
 
Field Summary
static String PLUGIN_CONFIG_ID_ATTACHMENT_FUNCTION
          general ID in the plugin ID to be configure the plugin IDs for attachments
 
Constructor Summary
OwBPMResultlistAttachmentFieldControl()
          Constructor
All document functions will be enabled.
In order to enable only certain document functions use OwBPMResultlistAttachmentFieldControl(List).
OwBPMResultlistAttachmentFieldControl(List attachmentFunctionIDs_p)
          Constructor
 
Method Summary
protected  void applyConfiguration(com.wewebu.ow.server.dmsdialogs.views.OwObjectListView listView_p)
          Applies a hard coded/default configuration to the give list view.
 void detach()
           
 void init(com.wewebu.ow.server.app.OwFieldManager fieldmanager_p, Node configNode_p)
           
 void insertEditField(Writer w_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, com.wewebu.ow.server.field.OwField field_p, String strID_p)
           
 void insertLabel(Writer w_p, String suffix_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, String strID_p, boolean writeLabel_p)
           
 void insertReadOnlyField(Writer w_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, Object value_p)
           
 void onPasteObjects(javax.servlet.http.HttpServletRequest request_p)
          Called when user clicks to paste objects from clipboard
 Object updateField(javax.servlet.http.HttpServletRequest request_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, Object value_p, String strID_p)
           
 
Methods inherited from class com.wewebu.ow.server.app.OwFieldManagerControl
getFieldManager, getFormEventFunction, getFormEventURL, getFormTarget, init
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, 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
Constructor Detail

OwBPMResultlistAttachmentFieldControl

public OwBPMResultlistAttachmentFieldControl()
Constructor
All document functions will be enabled.
In order to enable only certain document functions use OwBPMResultlistAttachmentFieldControl(List).


OwBPMResultlistAttachmentFieldControl

public OwBPMResultlistAttachmentFieldControl(List attachmentFunctionIDs_p)
Constructor

Parameters:
attachmentFunctionIDs_p - a List of String document function IDs to enable for this field control. If null NO DOCUMENT FUNCTION will be enabled.
To enable all document functions use OwBPMResultlistAttachmentFieldControl().
Method Detail

applyConfiguration

protected void applyConfiguration(com.wewebu.ow.server.dmsdialogs.views.OwObjectListView listView_p)
Applies a hard coded/default configuration to the give list view. The default configuration enables document plugins and adds the object name to the list columns.

Parameters:
listView_p -

detach

public void detach()
Overrides:
detach in class com.wewebu.ow.server.ui.OwEventTarget

init

public void init(com.wewebu.ow.server.app.OwFieldManager fieldmanager_p,
                 Node configNode_p)
          throws Exception
Overrides:
init in class com.wewebu.ow.server.app.OwFieldManagerControl
Throws:
Exception

insertEditField

public void insertEditField(Writer w_p,
                            com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                            com.wewebu.ow.server.field.OwField field_p,
                            String strID_p)
                     throws Exception
Specified by:
insertEditField in class com.wewebu.ow.server.app.OwFieldManagerControl
Throws:
Exception

insertReadOnlyField

public void insertReadOnlyField(Writer w_p,
                                com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                                Object value_p)
                         throws Exception
Specified by:
insertReadOnlyField in class com.wewebu.ow.server.app.OwFieldManagerControl
Throws:
Exception

onPasteObjects

public void onPasteObjects(javax.servlet.http.HttpServletRequest request_p)
                    throws Exception
Called when user clicks to paste objects from clipboard

Throws:
Exception

updateField

public Object updateField(javax.servlet.http.HttpServletRequest request_p,
                          com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                          Object value_p,
                          String strID_p)
                   throws Exception
Specified by:
updateField in class com.wewebu.ow.server.app.OwFieldManagerControl
Throws:
Exception

insertLabel

public void insertLabel(Writer w_p,
                        String suffix_p,
                        com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                        String strID_p,
                        boolean writeLabel_p)
                 throws Exception
Overrides:
insertLabel in class com.wewebu.ow.server.app.OwFieldManagerControl
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.