<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 3:49 PM, tomf67 <span dir="ltr">&lt;<a href="mailto:taram67@gmail.com" target="_blank">taram67@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
i have for my work the following need : i want to send a push notification<br>
to one user specified by its alias, but i need to know before or while<br>
sending if the alias is registered in aerogear (as i might then decide to<br>
use another channel of communication)<br>
<br>
I didn&#39;t find an adequate way to do this, the only way seems to use the API<br>
https://SERVER:PORT/CONTEXT/<wbr>rest/applications/variantID/<wbr>installations/ and<br>
specifiy the search parameter, but as the implementation uses many &quot;like&quot; it<br>
seems not performant enough to be done systematically.<br><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this doable in Aerogear ?<br>
<br></blockquote><div><br></div><div>There isn&#39;t a specific API for searching for installations by variant and alias.  (Matzew can double check me on this if I am wrong).  </div><div><br></div><div>Your options are </div><div>   1) Give it a shot and see if it is too slow.  If you can live with the performance then there really isn&#39;t any need to do anything.</div><div>   2) Implement the exact query you want in an external application and work with that.  I&#39;m not sure what the caching situation in UPS is so that may make this not ideal.  </div><div>   3) Fork UPS and Implement the query inside of UPS.  Bonus points, send us a PR back.</div><div>   4) File a JIRA and we&#39;ll work on it.</div><div><br></div><div>How many variants are you expecting to have and how often will you run this query?  </div><div><br></div><div>Also, I&#39;m curious, why do you want to know is an alias is registered?  There may be another/better workaround for your use case I haven&#39;t thought of.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
<br>
Tom<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/detect-if-an-installation-exists-for-a-specified-alias-tp1053.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.<wbr>n5.nabble.com/detect-if-an-<wbr>installation-exists-for-a-<wbr>specified-alias-tp1053.html</a><br>
Sent from the aerogear-users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
</blockquote></div><br></div></div>