Examples of AddressBook


Examples of com.twitter.data.proto.tutorial.AddressBookProtos.AddressBook

public class Fixtures {

  public static TupleFactory tf_ = TupleFactory.getInstance();

  public static AddressBook buildAddressBookProto() {
    AddressBook abProto = AddressBook.newBuilder()
    .addPerson(buildPersonProto())
    .addPerson(buildPersonProto())
    .build();
    return abProto;
  }
View Full Code Here

Examples of com.twitter.data.proto.tutorial.AddressBookProtos.AddressBook

  private static TupleFactory tf_ = TupleFactory.getInstance();

  @Test
  public void testProtoToPig() throws IOException {
    AddressBook abProto = Fixtures.buildAddressBookProto();

    Tuple abProtoTuple = tf_.newTuple(new DataByteArray(abProto.toByteArray()));

    ProtobufBytesToTuple abProtoToPig =
        new ProtobufBytesToTuple(AddressBook.class.getCanonicalName());
    Tuple abTuple = abProtoToPig.exec(abProtoTuple);
    assertEquals("{(Elephant Bird,123,elephant@bird.com,{(415-999-9999,HOME),(415-666-6666,MOBILE),(415-333-3333,WORK)}),(Elephant Bird,123,elephant@bird.com,{(415-999-9999,HOME),(415-666-6666,MOBILE),(415-333-3333,WORK)})},",
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.Addressbook

  {
    try
    {
      Umsatz u = getUmsatz();
      HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
      Addressbook ab = (Addressbook) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
      e.setBlz(u.getGegenkontoBLZ());
      e.setKontonummer(u.getGegenkontoNummer());
      e.setName(u.getGegenkontoName());
      return ab.contains(e);
    }
    catch (RemoteException re)
    {
      throw re;
    }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.Addressbook

        {
          if (found[i].equals(this.getClass()))
            continue; // Das sind wir selbst
          try
          {
            Addressbook a = (Addressbook) service.get(found[i]);
            Logger.info("  " + a.getName());
            list.add(a);
          }
          catch (Throwable t)
          {
            Logger.error("unable to load addressbook " + found[i] + ", skipping");
View Full Code Here

Examples of ejb.service.addressbook.wsifservice.AddressBook

                    null,
                    "http://wsifservice.addressbook/",
                    "AddressBook");

            // create the stub
            AddressBook stub =
                (AddressBook) service.getStub(AddressBook.class);

            // do the invocations
            addFirstAddress(stub);
            addSecondAddress(stub);
View Full Code Here

Examples of localjava.client.stub.addressbook.wsifservice.AddressBook

                    null,
                    "http://wsifservice.addressbook/",
                    "AddressBook");

            // create the stub
            AddressBook stub =
                (AddressBook) service.getStub(AddressBook.class);

            // do the invocations
            addFirstAddress(stub);
            addSecondAddress(stub);
View Full Code Here

Examples of net.sf.abproject.addressbook.ab.datamodel.AddressBook

//              tr.printStackTrace();
//              return;
//            }
            PreferencesForABProject.initLibrary(nc);
              LookAndFeelUtil.initLAF();
              final AddressBook addressBook = abPersistence.load(nc);
              AddressBookPane.showNewABFrame(nc, abImpl.this, addressBook,M.CONTACTS,"net.sf.abproject",new WindowAdapter() {
                  public void windowClosing(WindowEvent e) {
                      try {
                        leavingApplicationLifecycle(nc, addressBook);
                      } catch (Throwable throwable) {
View Full Code Here

Examples of net.sf.jhylafax.addressbook.AddressBook

  }

  public AddressBook getAddressBook()
  {
    if (addressBook == null) {
      addressBook = new AddressBook();
      //addressBook.setLocationRelativeTo(JHylaFAX.this);
      addressBook.restoreLayout(new SettingStore(Settings.backstore));
     
      try {
        addressBookFile = getAddressBookFile();
View Full Code Here

Examples of net.suberic.pooka.AddressBook

      if (fw != null)
        fw.setBusy(true);;

      try {
        UserProfile defaultProfile = getDefaultProfile();
        AddressBook book = null;

        if (defaultProfile != null) {
          book = defaultProfile.getAddressBook();
        }

        if (book == null) {
          // get the default Address Book.
          book = Pooka.getAddressBookManager().getDefault();
        }
        if (book != null) {
          final String newAddress = getMessageInfo().addAddress(book, true);
          final String bookName = book.getAddressBookID();

          SwingUtilities.invokeLater(new Runnable() {
              public void run() {
                getMessageUI().showMessageDialog(Pooka.getResources().formatMessage("info.AddressBook.add", newAddress, bookName), Pooka.getProperty("info.AddressBook.add.title", "Address Added"));
              }
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBook

        TestLogger.logger.debug("----------------------------------");
        TestLogger.logger.debug("test: " + getName());
       
        // Create the JAX-WS client needed to send the request
        Service service = Service.create(QNAME_SERVICE);
        AddressBook ab = service.getPort(QNAME_PORT, AddressBook.class);
        BindingProvider p1 = (BindingProvider) ab;
        p1.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, URL_ENDPOINT);
       
        ObjectFactory factory = new ObjectFactory();
        AddressBookEntry content = factory.createAddressBookEntry();
        content.setFirstName("Foo");
        content.setLastName("Bar");
        content.setPhone("512-459-2222");
       
        boolean added = ab.addEntry(content);
       
        // Validate the results
        assertNotNull(added);
        assertTrue(added);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.