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

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwView
          extended by com.wewebu.ow.server.plug.owbpm.OwBPMFunctionView
All Implemented Interfaces:
com.wewebu.ow.server.app.OwClientRefreshContext, com.wewebu.ow.server.ui.OwBaseView, com.wewebu.ow.server.ui.OwUpdateTarget, EventListener

public class OwBPMFunctionView
extends com.wewebu.ow.server.ui.OwView
implements com.wewebu.ow.server.app.OwClientRefreshContext

Workdesk BPM Plugin.
Displays the BPM Container functions

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  OwBPMVirtualQueue m_currentQueue
          currently selected queue
protected static String QUERY_KEY_PLUGIN
          query string key for the plugin index
 
Fields inherited from class com.wewebu.ow.server.ui.OwView
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
 
Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView
EMPTY_STRING
 
Constructor Summary
OwBPMFunctionView()
           
 
Method Summary
 com.wewebu.ow.server.ecm.OwObject getContainerObject()
          get the active container the plugins are working on
 String getDocumentFunctionEventURL(int iPlugIndex_p)
          get the event URL for document plugin functions
 List getDocumentFuntionPlugins()
          get function plugins
 boolean getIsPluginEnabled(com.wewebu.ow.server.app.OwDocumentFunction docFunctionPlugin_p)
          check if plugin is enabled
protected  void init()
           
 void onClientRefreshContextUpdate(int iReason_p, Object param_p)
           
 void onDocumentFunctionPluginEvent(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked a plugin link
protected  void onRender(Writer w_p)
           
 void onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p, int iCode_p, Object param_p)
           
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_KEY_PLUGIN

protected static final String QUERY_KEY_PLUGIN
query string key for the plugin index

See Also:
Constant Field Values

m_currentQueue

protected OwBPMVirtualQueue m_currentQueue
currently selected queue

Constructor Detail

OwBPMFunctionView

public OwBPMFunctionView()
Method Detail

init

protected void init()
             throws Exception
Overrides:
init in class com.wewebu.ow.server.ui.OwView
Throws:
Exception

getDocumentFuntionPlugins

public List getDocumentFuntionPlugins()
get function plugins

Returns:
a List of function plugins

getContainerObject

public com.wewebu.ow.server.ecm.OwObject getContainerObject()
get the active container the plugins are working on

Returns:
the container OwObject

onUpdate

public void onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p,
                     int iCode_p,
                     Object param_p)
              throws Exception
Specified by:
onUpdate in interface com.wewebu.ow.server.ui.OwUpdateTarget
Overrides:
onUpdate in class com.wewebu.ow.server.ui.OwView
Throws:
Exception

getIsPluginEnabled

public boolean getIsPluginEnabled(com.wewebu.ow.server.app.OwDocumentFunction docFunctionPlugin_p)
                           throws Exception
check if plugin is enabled

Parameters:
docFunctionPlugin_p -
Returns:
a boolean
Throws:
Exception

getDocumentFunctionEventURL

public String getDocumentFunctionEventURL(int iPlugIndex_p)
get the event URL for document plugin functions

Parameters:
iPlugIndex_p -
Returns:
the event URL as String

onDocumentFunctionPluginEvent

public void onDocumentFunctionPluginEvent(javax.servlet.http.HttpServletRequest request_p)
                                   throws Exception
event called when user clicked a plugin link

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onRender

protected void onRender(Writer w_p)
                 throws Exception
Overrides:
onRender in class com.wewebu.ow.server.ui.OwView
Throws:
Exception

onClientRefreshContextUpdate

public void onClientRefreshContextUpdate(int iReason_p,
                                         Object param_p)
                                  throws Exception
Specified by:
onClientRefreshContextUpdate in interface com.wewebu.ow.server.app.OwClientRefreshContext
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.