Package com.sissi.context.impl

Examples of com.sissi.context.impl.ShareJIDs


    List<?> result = MongoUtils.asList(output.getCommandResult(), Dictionary.FIELD_RESULT);
    return result.isEmpty() ? this.jids : this.extract(DBObject.class.cast(result.get(0)));
  }

  private JIDs extract(DBObject db) {
    return new ShareJIDs(this.jidBuilder.build(MongoUtils.asString(db, Dictionary.FIELD_ID)), MongoUtils.asStrings(db, Dictionary.FIELD_RESOURCE));
  }
View Full Code Here


  public JIDs resources(JID jid) {
    return this.resources(jid, false);
  }

  public JIDs resources(JID jid, boolean usingResource) {
    return new ShareJIDs(jid, this.config.collection().find(this.buildQueryWithSmartResource(jid, usingResource), this.filterResource));
  }
View Full Code Here

TOP

Related Classes of com.sissi.context.impl.ShareJIDs

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.