Package org.onesocialweb.openfire.model.relation

Examples of org.onesocialweb.openfire.model.relation.PersistentRelationDomReader


      }
     
      // 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


        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

        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

Related Classes of org.onesocialweb.openfire.model.relation.PersistentRelationDomReader

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.