Examples of RelationDomReader


Examples of org.onesocialweb.xml.dom.RelationDomReader

      }
     
      // or a relation event
      else if (itemsElement.attribute("node").getValue().equals(
          RelationManager.NODE)) {
        final RelationDomReader reader = new PersistentRelationDomReader();
        for (Element itemElement : (List<Element>) itemsElement
            .elements("item")) {
          Relation relation = reader.readElement(new ElementAdapter(
              itemElement.element("relation")));
          try {
            RelationManager.getInstance().handleMessage(
                fromJID.toBareJID(), toJID.toBareJID(),
                relation);
View Full Code Here

Examples of org.onesocialweb.xml.dom.RelationDomReader

        result.setError(PacketError.Condition.bad_request);
        return result;
      }

      // Parse the relation
      RelationDomReader reader = new PersistentRelationDomReader();
      Element e_entry = i_entry.next();
      PersistentRelation relation = (PersistentRelation) reader.readElement(new ElementAdapter(e_entry));
      Log.debug("IQRelationUpdate received request: " + relation);
     
      // Setup the relation (this will also trigger the notification to the user)
      relationManager.updateRelation(sender.toBareJID(), relation);
View Full Code Here

Examples of org.onesocialweb.xml.dom.RelationDomReader

        result.setError(PacketError.Condition.bad_request);
        return result;
      }

      // Parse the relation
      RelationDomReader reader = new PersistentRelationDomReader();
      Element e_entry = i_entry.next();
      PersistentRelation relation = (PersistentRelation) reader.readElement(new ElementAdapter(e_entry));
      Log.debug("IQRelationSetup received request: " + relation);
     
      // Setup the relation (this will also trigger the notification to the user)
      relationManager.setupRelation(sender.toBareJID(), relation);
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.