Examples of Affiliation


Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.model.Affiliation

        if (roleStr != null) {
            role = Role.fromString(roleStr);
        }

        String affiliationStr = itemElm.getAttributeValue("affiliation");
        Affiliation affiliation = null;
        if (affiliationStr != null) {
            affiliation = Affiliation.fromString(affiliationStr);
        }

        return new IqAdminItem(nick, jid, role, affiliation);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.model.Affiliation

            } catch (EntityFormatException e) {
                return createBadRequestError(stanza, serverRuntimeContext, sessionContext, "Invalid JID");
            }
        }
       
        Affiliation currentAffiliation = room.getAffiliations().getAffiliation(target);
        Affiliation newAffiliation = item.getAffiliation();

        // if the target is present in the room, we need to send presence updates
        // otherwise we should send messages
        Occupant targetOccupant = room.findOccupantByJID(target);
       
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.model.Affiliation

            } catch (EntityFormatException e) {
                return createBadRequestError(stanza, serverRuntimeContext, sessionContext, "Invalid JID");
            }
        }
       
        Affiliation currentAffiliation = room.getAffiliations().getAffiliation(target);
        Affiliation newAffiliation = item.getAffiliation();

        // if the target is present in the room, we need to send presence updates
        // otherwise we should send messages
        Occupant targetOccupant = room.findOccupantByJID(target);
       
View Full Code Here

Examples of org.jivesoftware.smackx.pubsub.Affiliation

public class AffiliationProvider extends EmbeddedExtensionProvider
{
  @Override
  protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
  {
    return new Affiliation(attributeMap.get("node"), Affiliation.Type.valueOf(attributeMap.get("affiliation")));
  }
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.