Examples of LastOwnerResignedException


Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.LastOwnerResignedException

        Entity bareJID = entity.getBareJID();

        if(getAffiliation(nodeName, bareJID).equals(PubSubAffiliation.OWNER)
                && !affiliation.equals(PubSubAffiliation.OWNER)
                && countAffiliations(nodeName, PubSubAffiliation.OWNER) == 1) {
            throw new LastOwnerResignedException(bareJID.getFullQualifiedName() + " tried to resign from " + nodeName);
        }

        if(affiliation.equals(PubSubAffiliation.NONE)) {
            affils.remove(bareJID); // NONE affiliations are not stored.
        } else {
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.LastOwnerResignedException

        Entity bareJID = entity.getBareJID();

        if (getAffiliation(nodeName, bareJID).equals(PubSubAffiliation.OWNER)
                && !affiliation.equals(PubSubAffiliation.OWNER)
                && countAffiliations(nodeName, PubSubAffiliation.OWNER) == 1) {
            throw new LastOwnerResignedException(bareJID.getFullQualifiedName() + " tried to resign from " + nodeName);
        }

        if (affiliation.equals(PubSubAffiliation.NONE)) {
            affils.remove(bareJID); // NONE affiliations are not stored.
        } else {
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.