Package de.fu_berlin.inf.dpp.net

Examples of de.fu_berlin.inf.dpp.net.JID


        @Override
        public boolean select(Viewer viewer, Object parentElement,
            Object element) {

            RosterEntry rosterEntry = (RosterEntry) element;
            JID jid = new JID(rosterEntry.getUser());
            boolean sarosSupport;
            try {
                sarosSupport = discoveryManager.isSupportedNonBlock(jid,
                    Saros.NAMESPACE);
            } catch (CacheMissException e) {
View Full Code Here


        @Override
        public boolean select(Viewer viewer, Object parentElement,
            Object element) {

            RosterEntry rosterEntry = (RosterEntry) element;
            JID jid = new JID(rosterEntry.getUser());
            if (sarosSession.getResourceQualifiedJID(jid) != null)
                return false;
            if (invitationProcesses.getInvitationProcess(jid) != null)
                return false;
            return true;
View Full Code Here

        if (roster == null)
            return null;

        for (Presence presence : Utils.asIterable(roster.getPresences(jid))) {
            if (presence.isAvailable()) {
                String result = getSkypeURLNonBlock(new JID(presence.getFrom()));
                if (result != null)
                    return result;
            }
        }
View Full Code Here

        if (roster == null)
            return null;

        for (Presence presence : Utils.asIterable(roster.getPresences(jid))) {
            if (presence.isAvailable()) {
                String result = getSkypeURL(new JID(presence.getFrom()));
                if (result != null)
                    return result;
            }
        }
View Full Code Here

                if (!recipient.isInSarosSession()) {
                    log.warn("Activities for peer not in session are dropped.");
                    return;
                }

                JID recipientJID = recipient.getJID();

                List<TimedActivityDataObject> timedActivities = createTimedActivities(
                    recipientJID, activityDataObjects);

                log.trace("Sending " + timedActivities.size()
                    + " activities to " + recipientJID + ": " + timedActivities);

                transmitter.sendTimedActivities(recipientJID, timedActivities);
            }

            /**
             * During an project transmission over IBB to the same recipient as
             * these timedActivities, activities that are not time-critical will
             * be queued and send as bundles to reduce message traffic (which in
             * extreme situation could crash IBB connection)
             *
             * @param recipient
             *            {@link JID} of the user to send activities to
             * @return true if the queued activities can stay queued, false if
             *         they need to be send
             */
            boolean isActivityQueuingSuiteable(User recipient,
                List<IActivityDataObject> usersActivities) {

                JID recipientJID = recipient.getJID();

                if (projectExchangeProcesses
                    .getProjectExchangeProcess(recipientJID) instanceof OutgoingProjectNegotiation
                    && transferManager.getTransferMode(recipientJID) == NetTransferMode.IBB) {

View Full Code Here

            if (rjid == null) {
                log.error("presence.getFrom() is null");
                continue;
            }

            JID jidToCheck = new JID(rjid);
            if (isFeatureSupported(jidToCheck, namespace)) {
                return jidToCheck;
            }
        }
View Full Code Here

            this.sessionID = sessionID;

        }

        public JID getInitiator() {
            return new JID(jid);
        }
View Full Code Here

                    /*
                     * TODO Why forbid renaming self? Is the own entry displayed
                     * at all?
                     */
                    // Compare the plain-JID portion of the XMPP address
                    if (!new JID(selectedRosterEntries.get(0).getUser())
                        .equals(saros.getSarosNet().getMyJID())) {
                        rosterEntry = selectedRosterEntries.get(0);
                    }
                }

View Full Code Here

    public synchronized void removePath(SPath path) {
        concurrentDocuments.remove(path);
    }

    public synchronized void addUser(User user) {
        JID jid = user.getJID();
        for (JupiterDocumentServer server : concurrentDocuments.values()) {
            server.addProxyClient(jid);
        }
    }
View Full Code Here

            server.addProxyClient(jid);
        }
    }

    public synchronized void removeUser(User user) {
        JID jid = user.getJID();
        for (JupiterDocumentServer server : concurrentDocuments.values()) {
            server.removeProxyClient(jid);
        }
    }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.net.JID

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.