com.wewebu.ow.server.app
Class OwMultipleSelectionCall

java.lang.Object
  extended by com.wewebu.ow.server.app.OwDocumentFunctionCall
      extended by com.wewebu.ow.server.app.OwMultipleSelectionCall

public class OwMultipleSelectionCall
extends OwDocumentFunctionCall

Multiple selection document function call wrapper. Objects of this class perform additional validation on a multiple selection document function call :

  • if all selected objects are enabled (see OwDocumentFunction.isEnabled(OwObject, OwObject, int)) the document function is called
  • if there are disabled objects the user is asked to validate the ongoing call
  • 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
     class OwMultipleSelectionCall.OwValidatorMessageBox
              YES/NO validating message box implementation
     
    Field Summary
     
    Fields inherited from class com.wewebu.ow.server.app.OwDocumentFunctionCall
    m_documentFunction
     
    Constructor Summary
    OwMultipleSelectionCall(OwDocumentFunction documentFunction_p, Collection objects_p, OwObject parent_p, OwClientRefreshContext refreshCtx_p, OwMainAppContext context_p)
              Constructor.
     
    Method Summary
    protected  int createDisabledObjectNamesString(StringBuffer namesBuffer_p)
              If there are disabled objects in the selected collection a the given StringBuffer will be filled with their HTML description list.
     void invokeFunction()
              Multiple selection document function call invocation method.
    protected  void invokeOnMultiselectClickEvent()
              Document function invocation helper method Delegates to OwDocumentFunction.onMultiselectClickEvent(Collection, OwObject, OwClientRefreshContext)
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    OwMultipleSelectionCall

    public OwMultipleSelectionCall(OwDocumentFunction documentFunction_p,
                                   Collection objects_p,
                                   OwObject parent_p,
                                   OwClientRefreshContext refreshCtx_p,
                                   OwMainAppContext context_p)
    Constructor. Document function call parameters are passed

    Parameters:
    documentFunction_p -
    objects_p -
    parent_p -
    refreshCtx_p -
    context_p -
    See Also:
    OwDocumentFunction.onMultiselectClickEvent(Collection, OwObject, OwClientRefreshContext)
    Method Detail

    createDisabledObjectNamesString

    protected final int createDisabledObjectNamesString(StringBuffer namesBuffer_p)
                                                 throws Exception
    If there are disabled objects in the selected collection a the given StringBuffer will be filled with their HTML description list.

    Parameters:
    namesBuffer_p - a StringBuffer to be filled with the disabled objects HTML list
    Returns:
    the number of disabled objects
    Throws:
    Exception

    invokeFunction

    public void invokeFunction()
                        throws Exception
    Multiple selection document function call invocation method. If disabled objects are found the user is asked to validate the ongoing call

    Specified by:
    invokeFunction in class OwDocumentFunctionCall
    Throws:
    Exception - if the invocation method fails (either wrapping code or document function call code)

    invokeOnMultiselectClickEvent

    protected final void invokeOnMultiselectClickEvent()
                                                throws Exception
    Document function invocation helper method Delegates to OwDocumentFunction.onMultiselectClickEvent(Collection, OwObject, OwClientRefreshContext)

    Throws:
    Exception


    Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.