Examples of addContact()


Examples of org.apache.juddi.datatype.business.Contacts.addContact()

    contact.addEmail(new Email("bob@whatever.com"));
    contact.addPhone(new Phone("(603)559-1901"));
    contact.addAddress(address);

    Contacts contacts = new Contacts();
    contacts.addContact(contact);

    BusinessService service = new BusinessService();
    service.setServiceKey("fe8af00d-3a2c-4e05-b7ca-95a1259aad4f");
    service.setBusinessKey("b8cc7266-9eed-4675-b621-34697f252a77");
    service.setBindingTemplates(bindings);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.roster.persistence.RosterManager.addContact()

        existingItem.setGroups(setRosterItem.getGroups());
        logger.debug(user.getBareJID() + " roster: roster item groups set to " + setRosterItem.getGroups());

        try {
            // update contact persistently
            rosterManager.addContact(user.getBareJID(), existingItem);
        } catch (RosterException e) {
            return ServerErrorResponses.getInstance().getStanzaError(StanzaErrorCondition.BAD_REQUEST, stanza, StanzaErrorType.CANCEL, "roster item contact not (yet) in roster: " + contactJid, null, null);
        }

        pushRosterItemToInterestedResources(sessionContext, user, existingItem);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.roster.persistence.RosterManager.addContact()

        existingItem.setGroups(setRosterItem.getGroups());
        logger.debug(user.getBareJID() + " roster: roster item groups set to " + setRosterItem.getGroups());

        try {
            // update contact persistently
            rosterManager.addContact(user.getBareJID(), existingItem);
        } catch (RosterException e) {
            return ServerErrorResponses.getInstance().getStanzaError(StanzaErrorCondition.BAD_REQUEST, stanza,
                    StanzaErrorType.CANCEL, "roster item contact not (yet) in roster: " + contactJid, null, null);
        }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.roster.persistence.RosterManager.addContact()

        existingItem.setGroups(setRosterItem.getGroups());
        logger.debug(user.getBareJID() + " roster: roster item groups set to " + setRosterItem.getGroups());

        try {
            // update contact persistently
            rosterManager.addContact(user.getBareJID(), existingItem);
        } catch (RosterException e) {
            return ServerErrorResponses.getStanzaError(StanzaErrorCondition.BAD_REQUEST, stanza,
                    StanzaErrorType.CANCEL, "roster item contact not (yet) in roster: " + contactJid, null, null);
        }
View Full Code Here

Examples of org.jtalks.jcommune.model.entity.JCUser.addContact()

            if (contact != null && contact.getOwner().getId() == user.getId()) {
                contact.setValue(contactContainer.getValue());
                contact.setType(actualType);
            } else {
                contact = new UserContact(contactContainer.getValue(), actualType);
                user.addContact(contact);
            }
        }
        return user;
    }
View Full Code Here

Examples of org.opentransactions.otapi.AddressBook.AddContact()

                contact.setContact_id(Helpers.generateID());
                contact.setEmail(email);
                contact.setGui_label(name);
                contact.setMemo(memo);
                contact.setPublic_key(publicKey);
                boolean status = addressBook.AddContact(contact);
                System.out.println("status addressBook.AddContact:" + status);
                if (!status) {
                    return contactID;
                }
                status = otapi.StoreObject(addressBook, "moneychanger", "gui_contacts.dat");
View Full Code Here

Examples of rocks.xmpp.core.roster.RosterManager.addContact()

        ContactExchange.Item.Action action = null;
        if (item.getAction() == null || item.getAction() == ContactExchange.Item.Action.ADD) {
            // If the contact does not exist yes, add it and request subscription.
            // (After completing the roster set, the receiving application SHOULD also send a <presence/> stanza of type "subscribe" to the JID of the new item.)
            if (contact == null) {
                rosterManager.addContact(new Contact(item.getJid(), item.getName(), item.getGroups()), true, null);
                action = ContactExchange.Item.Action.ADD;
            } else {
                List<String> newGroups = new ArrayList<>(contact.getGroups());
                List<String> additionalGroups = new ArrayList<>(item.getGroups());
                // Remove all existing groups from the list.
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.