Package org.apache.vysper.xmpp.modules.extension.xep0060_pubsub

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.PubSubAffiliation.compareTo()


     * @param requestedAffiliation
     * @return
     */
    public boolean isAuthorized(Entity sender, PubSubAffiliation requestedAffiliation) {
        PubSubAffiliation affiliation = this.storage.getAffiliation(name, sender);
        return affiliation.compareTo(requestedAffiliation) >= 0;
    }

    /**
     * Returns the affiliation for the given bareJID.
     * @param entity the entity for which the affiliation should be returned.
View Full Code Here


     * @param requestedAffiliation
     * @return
     */
    public boolean isAuthorized(Entity sender, PubSubAffiliation requestedAffiliation) {
        PubSubAffiliation affiliation = this.storage.getAffiliation(name, sender);
        return affiliation.compareTo(requestedAffiliation) >= 0;
    }

    /**
     * Returns the affiliation for the given bareJID.
     * @param entity the entity for which the affiliation should be returned.
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.