<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">JS has implemented a pretty generic and rather useful filter method :<div><br></div><div><a href="https://github.com/aerogear/aerogear-js/blob/master/src/data-manager/adapters/memory.js#L281-L403">https://github.com/aerogear/aerogear-js/blob/master/src/data-manager/adapters/memory.js#L281-L403</a></div><div><br></div><div>It is currently used in the JS TODO app. I am hesitant to remove it as it is useful and is one of the main useful features of DataManager for 1.0 other than it being a base for future development.</div><div><br></div><div>At the same time, I am leery of leaving it in if iOS and Android don't have something similar since this feature was not thoroughly discussed. I would hate to leave this in, only to have to deprecate it in a later release for something that we decide works better for all libs.</div><div><br></div><div>Other input would be appreciated.</div><div><br><div><div>On Feb 22, 2013, at 10:08 AM, Christos Vasilakis &lt;<a href="mailto:cvasilak@gmail.com">cvasilak@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">+1&nbsp;<div><br></div><div>(I was thinking on using an NSPredicate to match what is offered in Android, but let's revisit this with a proper API)</div><div><br></div><div>Thanks,</div><div>Christos</div><div><br><div><div>On Feb 22, 2013, at 5:49 PM, Summers Pittman &lt;<a href="mailto:supittma@redhat.com">supittma@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">+1.&nbsp; I have some implementations in
      Android, but they aren't great yet. (One throws an exception if
      you search for nested objects for instance).<br>
      <br>
      <br>
      On 02/22/2013 09:17 AM, Matthias Wessendorf wrote:<br>
    </div>
    <blockquote cite="mid:CAAg5f2QhTDgxWdhP3J1CVZN6_kJgGgjo4fWnPYGAWZJx9rYwBQ@mail.gmail.com" type="cite">Hi,
      <div><br>
      </div>
      <div>AGStore defines the following func:</div>
      <div><br>
      </div>
      <div><span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">-</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">(</span><span class="n" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">NSArray</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">*</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">)</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">
        </span><span class="nf" style="margin:0px;padding:0px;border:0px;color:rgb(153,0,0);font-weight:bold;font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">filter:</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">(</span><span class="kt" style="margin:0px;padding:0px;border:0px;color:rgb(68,85,136);font-weight:bold;font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">id</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">)</span><span class="nv" style="margin:0px;padding:0px;border:0px;color:rgb(0,128,128);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">filterObject</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">;</span></div>
      <div><br>
      </div>
      <div>
        <div>Right now, there is NO implementation, so I'd vote to
          remove it.... Otherwise we will have this function around in
          future releases...&nbsp;</div>
        <div>If (later) we want some filtering (e.g. when more complex
          stores are around), we can define a proper API - instead of
          having some 'guess-ware' around...</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>FWIW, I created this ticket:</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true" href="https://issues.jboss.org/browse/AEROGEAR-938">https://issues.jboss.org/browse/AEROGEAR-938</a></div>
        <div><br>
        </div>
        <div>-M</div>
        <div><br>
        </div>
        <div><br>
        </div>
        -- <br>
        Matthias Wessendorf <br>
        <br>
        blog: <a moz-do-not-send="true" href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
        sessions: <a moz-do-not-send="true" href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
        twitter: <a moz-do-not-send="true" href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote></div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></div></body></html>