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

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.ui.OwLayout
              extended by com.wewebu.ow.server.ui.OwDialog
                  extended by com.wewebu.ow.server.app.OwStandardDialog
                      extended by com.wewebu.ow.server.app.OwStandardSequenceDialog
                          extended by com.wewebu.ow.server.plug.owbpm.plug.OwBPMStandardProcessorDialog
All Implemented Interfaces:
com.wewebu.ow.server.app.OwSequenceView, OwBPMProcessorDialog, com.wewebu.ow.server.ui.OwBaseView, com.wewebu.ow.server.ui.OwUpdateTarget
Direct Known Subclasses:
OwBPMStandardLaunchProcessorDialog

public class OwBPMStandardProcessorDialog
extends com.wewebu.ow.server.app.OwStandardSequenceDialog
implements OwBPMProcessorDialog

Workdesk BPM Plugin.
Workdesk BPM Plugin Standard Processor Dialog.

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwDialog
com.wewebu.ow.server.ui.OwDialog.OwDialogListener
 
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout
com.wewebu.ow.server.ui.OwLayout.OwDispatchRegion
 
Field Summary
protected  com.wewebu.ow.server.util.OwXMLUtil m_configNode
          config node from the function class
protected  boolean m_fAutoOpen
          auto open the preview attachment?
protected  int m_iIndex
          current index
protected  com.wewebu.ow.server.app.OwMimeManager m_MimeManager
          instance of the MIME manager used to open the objects
protected  com.wewebu.ow.server.app.OwClientRefreshContext m_refreshCtx
          the refresh context to notify the calling plugin client
protected  OwBPMStandardProcessorView m_view
           
protected  List m_worktitems
          workitems
 
Fields inherited from class com.wewebu.ow.server.app.OwStandardDialog
CLOSE_BTN_REGION, FOOTER_REGION, HELP_BTN_REGION, INFO_ICON_REGION, LEFT_REGION, m_strHelpPath, m_strInfoIconURL, m_strTitle, MAIN_REGION, MENU_REGION, RIGHT_REGION, STANDARD_DIALOG_REGION_MAX, TITLE_REGION
 
Fields inherited from class com.wewebu.ow.server.ui.OwDialog
m_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener
 
Fields inherited from class com.wewebu.ow.server.ui.OwLayout
m_Regions
 
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
OwBPMStandardProcessorDialog(Collection objects_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p, com.wewebu.ow.server.util.OwXMLUtil configNode_p)
           
 
Method Summary
 void closeDialog()
          visually close the Dialog.
protected  OwBPMStandardProcessorView createProcessorView(com.wewebu.ow.server.util.OwXMLUtil configNode_p)
          overridable factory function to create the standard processor View
 void detach()
          remove view and all subviews from context
 int getCount()
          get the number of sequence items in the dialog
 List getWorkItems()
          Get the list of workitems to be processed.
 boolean hasNext()
          called when the Dialog needs to know if there is a next item
 boolean hasPrev()
          called when the Dialog needs to know if there is a prev item
protected  void init()
          init the target after the context is set.
 void next(boolean fRemoveCurrent_p)
          move to next item and roll over, i.e.
 void prev(boolean fRemoveCurrent_p)
          move to prev item and roll over, i.e.
protected  void previewAttachment()
          open preview attachment
 void unlock()
          unlock the workitems
 
Methods inherited from class com.wewebu.ow.server.app.OwStandardSequenceDialog
onNext, onPrev, renderNavigationButtons, renderRegion
 
Methods inherited from class com.wewebu.ow.server.app.OwStandardDialog
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, onRender, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle
 
Methods inherited from class com.wewebu.ow.server.ui.OwDialog
setListener
 
Methods inherited from class com.wewebu.ow.server.ui.OwLayout
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, 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

m_view

protected OwBPMStandardProcessorView m_view

m_MimeManager

protected com.wewebu.ow.server.app.OwMimeManager m_MimeManager
instance of the MIME manager used to open the objects


m_configNode

protected com.wewebu.ow.server.util.OwXMLUtil m_configNode
config node from the function class


m_fAutoOpen

protected boolean m_fAutoOpen
auto open the preview attachment?


m_worktitems

protected List m_worktitems
workitems


m_iIndex

protected int m_iIndex
current index


m_refreshCtx

protected com.wewebu.ow.server.app.OwClientRefreshContext m_refreshCtx
the refresh context to notify the calling plugin client

Constructor Detail

OwBPMStandardProcessorDialog

public OwBPMStandardProcessorDialog(Collection objects_p,
                                    com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p,
                                    com.wewebu.ow.server.util.OwXMLUtil configNode_p)
                             throws Exception
Parameters:
objects_p - array of OwWorkitems
Throws:
Exception
Method Detail

init

protected void init()
             throws Exception
init the target after the context is set.

Overrides:
init in class com.wewebu.ow.server.ui.OwView
Throws:
Exception

unlock

public void unlock()
            throws Exception
unlock the workitems

Specified by:
unlock in interface OwBPMProcessorDialog
Throws:
Exception

hasNext

public boolean hasNext()
                throws Exception
called when the Dialog needs to know if there is a next item

Specified by:
hasNext in interface com.wewebu.ow.server.app.OwSequenceView
Overrides:
hasNext in class com.wewebu.ow.server.app.OwStandardSequenceDialog
Throws:
Exception

hasPrev

public boolean hasPrev()
                throws Exception
called when the Dialog needs to know if there is a prev item

Specified by:
hasPrev in interface com.wewebu.ow.server.app.OwSequenceView
Overrides:
hasPrev in class com.wewebu.ow.server.app.OwStandardSequenceDialog
Throws:
Exception

getCount

public int getCount()
get the number of sequence items in the dialog

Specified by:
getCount in interface com.wewebu.ow.server.app.OwSequenceView

prev

public void prev(boolean fRemoveCurrent_p)
          throws Exception
move to prev item and roll over, i.e. start at the end one if first one is reached

Specified by:
prev in interface com.wewebu.ow.server.app.OwSequenceView
Parameters:
fRemoveCurrent_p - true = remove the current sequence item and then move to the prev item, if this is the last item, closes the dialog
Throws:
Exception

next

public void next(boolean fRemoveCurrent_p)
          throws Exception
move to next item and roll over, i.e. start at the first one if end is reached

Specified by:
next in interface com.wewebu.ow.server.app.OwSequenceView
Parameters:
fRemoveCurrent_p - true = remove the current sequence item and then move to the next item, if this is the last item, closes the dialog
Throws:
Exception

getWorkItems

public List getWorkItems()
Description copied from interface: OwBPMProcessorDialog
Get the list of workitems to be processed.

Specified by:
getWorkItems in interface OwBPMProcessorDialog
Returns:
- the List object containing the workitems.

closeDialog

public void closeDialog()
                 throws Exception
visually close the Dialog. The behavior depends on usage If this view is a child of a DialogManager, the View gets removed from it.

Overrides:
closeDialog in class com.wewebu.ow.server.ui.OwDialog
Throws:
Exception

detach

public void detach()
remove view and all subviews from context

Overrides:
detach in class com.wewebu.ow.server.ui.OwView

createProcessorView

protected OwBPMStandardProcessorView createProcessorView(com.wewebu.ow.server.util.OwXMLUtil configNode_p)
                                                  throws Exception
overridable factory function to create the standard processor View

Parameters:
configNode_p - OwXMLUtil
Returns:
OwBPMStandardProcessorView
Throws:
Exception

previewAttachment

protected void previewAttachment()
open preview attachment



Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.