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

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.plug.owbpm.plug.OwBPMInsertNoteDialog
                          extended by com.wewebu.ow.server.plug.owbpm.plug.OwBPMReassignDialog
All Implemented Interfaces:
com.wewebu.ow.server.field.OwFieldProvider, com.wewebu.ow.server.ui.OwBaseView, com.wewebu.ow.server.ui.OwDialog.OwDialogListener, com.wewebu.ow.server.ui.OwUpdateTarget, EventListener

public class OwBPMReassignDialog
extends OwBPMInsertNoteDialog
implements com.wewebu.ow.server.ui.OwDialog.OwDialogListener

Dialog for reassigning a work item to an inbox.

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
static String DEFAULT_USER_SELECTION_WEB_KEY
           
static int DESTINATION_OTHER_INBOX_VALUE
          destination value for inbox of another user
static int DESTINATION_OTHER_PUBLICBOX_VALUE
          destination value for inbox of another public box
static int DESTINATION_OWN_INBOX_VALUE
          destination value for own inbox
static String DESTINATION_WEB_KEY
           
static int OTHER_INBOX_REGION
          region
static int OTHER_PUBLICBOX_REGION
          region
static int OWN_INBOX_REGION
          region
static String PUBLIC_CONTAINER_NAME_WEB_KEY
           
 
Fields inherited from class com.wewebu.ow.server.plug.owbpm.plug.OwBPMInsertNoteDialog
INSERT_NOTE_DIALOG_REGION_MAX, m_currentItem, m_fieldManager, m_MenuView, m_noteProperty, m_workitems, NOTE_REGION
 
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.field.OwFieldProvider
TYPE_AJAX, TYPE_CHECKIN_OBJECT, TYPE_CREATE_OBJECT, TYPE_META_OBJECT, TYPE_RESULT_LIST, TYPE_SEARCH, TYPE_SMALL
 
Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView
EMPTY_STRING
 
Constructor Summary
OwBPMReassignDialog(List workitems_p, com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p, String noteProperty_p)
          create a new instance of the dialog
OwBPMReassignDialog(com.wewebu.ow.server.ecm.bpm.OwWorkitem workitem_p, com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p, String noteProperty_p)
          create a new instance of the dialog
 
Method Summary
 void doReassignToPublicBox(String destination_p)
          do the reassign for all workitems
 void doReassignToUserBox(String destination_p)
          do the reassign for all workitems
 String getCheckedString(int radioButtonValue_p)
           
 List getDefaultUsers()
          Returns a list of users to select from.
 String getPublicDestinationDisplayName(String sID_p)
          get a display name for the given ID
 Collection getPublicDestinations()
          get a collection of public destination IDs
 com.wewebu.ow.server.ecm.OwUserInfo getReceiverUser()
          getter method for receiverUserName
 String getReceiverUserName()
          getter method for receiverUserName
 boolean isRegion(int iRegion_p)
           
 boolean isUserDefaultEnabled()
           
 void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p)
          invoked when user select dialog is closed
 void onOkDo(javax.servlet.http.HttpServletRequest request_p, Object reason_p)
          event called when user clicked the ok button should be overloaded by specific Dialog
 void onOpenUserDialog(javax.servlet.http.HttpServletRequest request_p)
          called from JSP to get role from role dialogue
 void renderRegion(Writer w_p, int iRegion_p)
          render the views of the region
 void unlockAll()
          unlock the workitems
 
Methods inherited from class com.wewebu.ow.server.plug.owbpm.plug.OwBPMInsertNoteDialog
detach, getCurrentItem, getField, getFieldProviderName, getFieldProviderSource, getFieldProviderType, getFields, getSafeFieldValue, getWorkitems, init, onCancelDo, onRender, renderNote, setField, setNote, usesFormWithAttributes
 
Methods inherited from class com.wewebu.ow.server.app.OwStandardDialog
getInfoIcon, getTitle, hasHelpButton, onClose, onHelp, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle
 
Methods inherited from class com.wewebu.ow.server.ui.OwDialog
closeDialog, 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
 
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
 
Methods inherited from interface com.wewebu.ow.server.ui.OwUpdateTarget
onUpdate
 

Field Detail

DESTINATION_WEB_KEY

public static final String DESTINATION_WEB_KEY
See Also:
Constant Field Values

PUBLIC_CONTAINER_NAME_WEB_KEY

public static final String PUBLIC_CONTAINER_NAME_WEB_KEY
See Also:
Constant Field Values

DEFAULT_USER_SELECTION_WEB_KEY

public static final String DEFAULT_USER_SELECTION_WEB_KEY
See Also:
Constant Field Values

DESTINATION_OWN_INBOX_VALUE

public static final int DESTINATION_OWN_INBOX_VALUE
destination value for own inbox

See Also:
Constant Field Values

DESTINATION_OTHER_INBOX_VALUE

public static final int DESTINATION_OTHER_INBOX_VALUE
destination value for inbox of another user

See Also:
Constant Field Values

DESTINATION_OTHER_PUBLICBOX_VALUE

public static final int DESTINATION_OTHER_PUBLICBOX_VALUE
destination value for inbox of another public box

See Also:
Constant Field Values

OWN_INBOX_REGION

public static final int OWN_INBOX_REGION
region

See Also:
Constant Field Values

OTHER_INBOX_REGION

public static final int OTHER_INBOX_REGION
region

See Also:
Constant Field Values

OTHER_PUBLICBOX_REGION

public static final int OTHER_PUBLICBOX_REGION
region

See Also:
Constant Field Values
Constructor Detail

OwBPMReassignDialog

public OwBPMReassignDialog(List workitems_p,
                           com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer oParent_p,
                           com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p,
                           String noteProperty_p)
                    throws com.wewebu.ow.server.exceptions.OwException
create a new instance of the dialog

Throws:
com.wewebu.ow.server.exceptions.OwException

OwBPMReassignDialog

public OwBPMReassignDialog(com.wewebu.ow.server.ecm.bpm.OwWorkitem workitem_p,
                           com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer oParent_p,
                           com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p,
                           String noteProperty_p)
                    throws com.wewebu.ow.server.exceptions.OwException
create a new instance of the dialog

Parameters:
noteProperty_p -
Throws:
com.wewebu.ow.server.exceptions.OwException
Method Detail

onOkDo

public void onOkDo(javax.servlet.http.HttpServletRequest request_p,
                   Object reason_p)
            throws Exception
event called when user clicked the ok button should be overloaded by specific Dialog

Overrides:
onOkDo in class OwBPMInsertNoteDialog
Parameters:
request_p - a HttpServletRequest
reason_p -
Throws:
Exception

renderRegion

public void renderRegion(Writer w_p,
                         int iRegion_p)
                  throws Exception
render the views of the region

Specified by:
renderRegion in interface com.wewebu.ow.server.ui.OwBaseView
Overrides:
renderRegion in class OwBPMInsertNoteDialog
Parameters:
w_p - Writer object to write HTML to
iRegion_p - ID of the region to render
Throws:
Exception

isRegion

public boolean isRegion(int iRegion_p)
Specified by:
isRegion in interface com.wewebu.ow.server.ui.OwBaseView
Overrides:
isRegion in class com.wewebu.ow.server.app.OwStandardDialog

getPublicDestinationDisplayName

public String getPublicDestinationDisplayName(String sID_p)
get a display name for the given ID

Parameters:
sID_p -
Returns:
String

getPublicDestinations

public Collection getPublicDestinations()
                                 throws Exception
get a collection of public destination IDs

Throws:
Exception

onOpenUserDialog

public void onOpenUserDialog(javax.servlet.http.HttpServletRequest request_p)
                      throws Exception
called from JSP to get role from role dialogue

Parameters:
request_p - a HttpServletRequest object
Throws:
Exception

onDialogClose

public void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p)
                   throws Exception
invoked when user select dialog is closed

Specified by:
onDialogClose in interface com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Throws:
Exception
See Also:
OwDialog.OwDialogListener.onDialogClose(com.wewebu.ow.server.ui.OwDialog)

getCheckedString

public String getCheckedString(int radioButtonValue_p)
Parameters:
radioButtonValue_p - the value of the given radio button
Returns:
"checked" String if the given radio button was selected

doReassignToPublicBox

public void doReassignToPublicBox(String destination_p)
                           throws Exception
do the reassign for all workitems

Parameters:
destination_p -
Throws:
Exception

doReassignToUserBox

public void doReassignToUserBox(String destination_p)
                         throws Exception
do the reassign for all workitems

Parameters:
destination_p -
Throws:
Exception

getReceiverUserName

public String getReceiverUserName()
getter method for receiverUserName

Returns:
Returns the receiverUserName.

getReceiverUser

public com.wewebu.ow.server.ecm.OwUserInfo getReceiverUser()
getter method for receiverUserName

Returns:
Returns the receiverUserName.

unlockAll

public void unlockAll()
               throws Exception
unlock the workitems

Overrides:
unlockAll in class OwBPMInsertNoteDialog
Throws:
Exception

isUserDefaultEnabled

public boolean isUserDefaultEnabled()
Returns:
true if the default user selection is enabled - user can choose from a list of default users
false otherwise

getDefaultUsers

public List getDefaultUsers()
Returns a list of users to select from. If a user is selected using the OwUserSelectDialog this user will be included too.

Returns:
a List of users to select from if default user selection is enabled
null if default user selection is not enabled


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.