Package de.innovationgate.wgaservices.types

Examples of de.innovationgate.wgaservices.types.ActionResult


       * @return The return value of the action
       * @throws WGAServiceException
       */
      @SuppressWarnings("unchecked")
    public Object callAction(String id, List params, Form form) throws WGAServiceException {
        ActionResult result = _services.callAction(_session, _db, id, _executionContext, params, form);
        if (result.getForm() != null) {
          return result.getForm();
        } else {
          return result.getNativeResult();
        }  
      }
View Full Code Here


           
            // If action result is an TMLForm, transform it back into a services form
            if (result instanceof de.innovationgate.wgpublisher.webtml.utils.TMLForm) {
                de.innovationgate.wgpublisher.webtml.utils.TMLForm tmlForm = (de.innovationgate.wgpublisher.webtml.utils.TMLForm) result;
                Form servicesForm = tmlForm.exportServicesForm();
                ActionResult actionResult = new ActionResult();
                actionResult.setForm(servicesForm);
                return actionResult;
            } else {
              ActionResult actionResult = new ActionResult();
              actionResult.setNativeResult(result);
              return actionResult;
            }
        }
        catch (TMLScriptException e) {
            throw new WGAServiceException(e.getMessage());
View Full Code Here

TOP

Related Classes of de.innovationgate.wgaservices.types.ActionResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.