Examples of asStringWithBare()


Examples of com.sissi.context.JID.asStringWithBare()

    entity.put(Dictionary.FIELD_DELAY, this.format.format(new Date()));
    entity.put(Dictionary.FIELD_CLASS, element.getClass().getSimpleName());
    JID to = this.jidBuilder.build(element.getTo());
    JID from = this.jidBuilder.build(element.getFrom());
    entity.put(Dictionary.FIELD_TO, this.bare ? to.asStringWithBare() : to.asString());
    entity.put(Dictionary.FIELD_FROM, this.bare ? from.asStringWithBare() : from.asString());
    return entity;
  }

  /*
   * Class比较
 
View Full Code Here

Examples of com.sissi.context.JID.asStringWithBare()

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    GroupItem item = protocol.cast(Roster.class).first();
    JID to = super.build(item.getJid());
    item.addOnEmpty(this.group).setAsk(this.ask()).setSubscription(this.subscription(context.jid(), to)).setJid(to.asStringWithBare());
    // Roster Set/Remove From必须=null
    super.broadcast(context.jid(), protocol.parent().setFrom((String) null));
    return true;
  }
View Full Code Here

Examples of com.sissi.context.JID.asStringWithBare()

  }

  @Override
  public boolean apply(JID invoker, JID target, Fields fields) {
    JID jid = this.jidBuilder.build(fields.findField(RequestConfig.JID.toString(), XField.class).getValue().toString());
    this.config.collection().update(BasicDBObjectBuilder.start().add(Dictionary.FIELD_JID, target.asStringWithBare()).add(Dictionary.FIELD_INFORMATIONS + "." + Dictionary.FIELD_JID, jid.asStringWithBare()).get(), BasicDBObjectBuilder.start("$pull", BasicDBObjectBuilder.start(Dictionary.FIELD_INFORMATIONS, BasicDBObjectBuilder.start(Dictionary.FIELD_JID, jid.asStringWithBare()).get()).get()).get());
    return false;
  }
}
View Full Code Here

Examples of com.sissi.context.JID.asStringWithBare()

  }

  @Override
  public boolean apply(JID invoker, JID target, Fields fields) {
    JID jid = this.jidBuilder.build(fields.findField(RequestConfig.JID.toString(), XField.class).getValue().toString());
    this.config.collection().update(BasicDBObjectBuilder.start().add(Dictionary.FIELD_JID, target.asStringWithBare()).add(Dictionary.FIELD_INFORMATIONS + "." + Dictionary.FIELD_JID, jid.asStringWithBare()).get(), BasicDBObjectBuilder.start("$pull", BasicDBObjectBuilder.start(Dictionary.FIELD_INFORMATIONS, BasicDBObjectBuilder.start(Dictionary.FIELD_JID, jid.asStringWithBare()).get()).get()).get());
    return false;
  }
}
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.