Example #1
0
 /**
  * @param form
  * @return
  */
 public Form save(Form form) throws Exception {
   if (form.isNew()) {
     return getFormService().create(form);
   } else {
     return getFormService().edit(form);
   }
 } // --------------------------------------------
Example #2
0
  /**
   * @param aForm
   * @return
   * @throws Exception
   * @throws RemoteException
   */
  public Form create(Form aForm) throws Exception, RemoteException {

    // TODO: aForm.setCreateUserID(this.getUser().getLoginID();
    aForm.setAccessUser(this.getUser());
    return getFormService().create(aForm);
  } // --------------------------------------------