Package com.any_erp_vendor.moa.objects.resources.v1_0

Examples of com.any_erp_vendor.moa.objects.resources.v1_0.Phone


        a.setStateOrProvince((String)ec_stateList.getSelectedItem());
        a.setZipOrPostalCode(ec_zip.getText());
        ec.setAddress(a);
       
        if (ec_phone.getText() != null && ec_phone.getText().length() > 0) {
          Phone p = ec.newPhone();
          ec_phone.setText(p.getPhoneNumber());
          ec.setPhone(p);
        }
      }
      catch (Exception e) {
        org.openeai.OpenEaiObject.logger.fatal(e.getMessage(), e);
View Full Code Here


  }
 
  protected void updatePhone (String uid, List phones) {
    for (int i = 0;i < phones.size();i++) {
      Phone phone = (Phone)phones.get(i);
      String phoneType = phone.getType();
      String phoneNumber = phone.getPhoneArea() + "-" + phone.getPhoneNumber();
      logger.debug("[" + getServiceName() + ".updatePhone] Modifying the phone " + phoneType + "to " + phoneNumber + " for user " + uid + ".");

    }
  }
View Full Code Here

          }
          List phoneList = bp.getPhone();
          phoneList.clear();
          if (phoneType!=null) {
            for (int i=0;i<phoneType.length;i++) {
              Phone phone=bp.newPhone();
              phone.setType(phoneType[i]);
              phone.setPhoneArea(phoneAreacode[i]);
              phone.setPhoneNumber(phoneNumber[i]);
              phoneList.add(phone);
            }
            bp.setPhone(phoneList);
          }
          List emailList = bp.getEmail();
View Full Code Here

    /**
     * Create an instance of {@link Phone }
     *
     */
    public Phone createPhone() {
        return new Phone();
    }
View Full Code Here

            Iterator it = ph.iterator();
      int phonearrPos = 0;
      while (it.hasNext()) {
                TelephoneNumber t = (TelephoneNumber) it.next();
        Phone phone = objectFactory.createPhone();
                String str = t.getNumber();
                log.debug("Telephone=" + str);
       
        // FIXME: If phone number is null, should the phone
        // not be set at all, or set to empty string?
        if (str != null) {
          phone.setValue(str);
        } else {
          phone.setValue("");
        }

        phonearr[phonearrPos] = phone;
        phonearrPos++;
            }
View Full Code Here

            Iterator it = ph.iterator();
      int phonearrPos = 0;
      while (it.hasNext()) {
                TelephoneNumber t = (TelephoneNumber) it.next();
        Phone phone = objectFactory.createPhone();
                String str = t.getNumber();
                log.debug("Telephone=" + str);
       
        // FIXME: If phone number is null, should the phone
        // not be set at all, or set to empty string?
        if (str != null) {
          phone.setValue(str);
        } else {
          phone.setValue("");
        }

        phonearr[phonearrPos] = phone;
        phonearrPos++;
            }
View Full Code Here

                List<Phone> r = new ArrayList<Phone>();
                if (phone == null) {
                        return r;
                }
                for (int i = 0; i < phone.size(); i++) {
                        Phone x = new Phone();
                        x.setUseType(phone.get(i).getUseType());
                        x.setValue(phone.get(i).getValue());
                        r.add(x);
                }
               
                return r;
        }
View Full Code Here

    address.getAddressLine().add(addressLineOne);
    address.getAddressLine().add(addressLineTwo);
    address.getAddressLine().add(addressLineThree);
   
    //Contacts phone number details
    Phone phone = new Phone();
    phone.setUseType("Hotline");
    phone.setValue(data.getUSPhoneNumber());
   
    //Contact object
    Contact contact = new Contact();
    contact.setUseType("CEO");
    contact.getPersonName().add(personName);
View Full Code Here

   * @param useType
   * @return
   */
  public static Phone generatePhone(String phoneNumber, String useType)
  {
    Phone phone = new Phone();
    phone.setValue(phoneNumber);
    if (useType != null)
      phone.setUseType(useType);
   
    return phone;
  }
View Full Code Here

        Contacts cc = new Contacts();
        Contact c = new Contact();
        PersonName n = new PersonName();
        n.setValue("Bob");
        c.getPersonName().add(n);
        Phone p = new Phone();
        p.setValue(str51);
        c.getPhone().add(p);
        cc.getContact().add(c);;
        return cc;
    }
View Full Code Here

TOP

Related Classes of com.any_erp_vendor.moa.objects.resources.v1_0.Phone

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.