Hi Michael, <div>yes I understand that, that is exactly what I meant with "package private" in my first mail.</div><div>The very little remaining risk is, that some code in Yanel (which I do not have control over) is using that package-private method. </div>
<div>In other words: you just have to ensure and keep in mind that you (in Yanel, in that package), never call the remove() method from the YarepUser directly but always the remove method from the user manager.</div><div>
<br></div><div>Cheers</div><div>Balz<br><br><div title="signature"><p><span style="color: #808080; font-family: 'andale mono', times; font-size: small;"><strong>Balz Schreier</strong></span><br><span style="color: #999999; font-family: 'andale mono', times; font-size: small;"><span style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;"><span style="color: #999999; font-family: 'andale mono', times; font-size: small;">Zwischengas AG</span><br>
</span>CTO / Fotograf</span><span style="color: #999999; font-family: 'andale mono', times; font-size: small;"> <br><br><span style="font-size: x-small; font-family: 'andale mono', times;">Kürzlich publizierter Highlight: <a href="http://www.zwischengas.com/de/HR/rennberichte/Arosa-ClassicCar-2011-Sonne-Freude-Geschwindigkeit.html">Arosa ClassicCar 2011</a></span></span></p>
</div><div class="gmail_quote">On Thu, Sep 29, 2011 at 12:07 AM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com">michael.wechner@wyona.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Am 28.09.11 16:57, schrieb basZero:
    <div class="im"><blockquote type="cite">
      <div title="signature"> </div>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <div><br>
              <blockquote type="cite">
                <div><br>
                </div>
                <div>it's just a bit dangerous, because somebody still
                  might call the remove() on the userobject (maybe yanel
                  internal code) and use the "wrong" remove method.</div>
              </blockquote>
              <br>
            </div>
            I am not sure I understand. Can you explain a bit?
            <div><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <div><br>
      </div>
      <div>ok let's say that my realm's code is only using the
        removeAlias method via retrieving the usermanager and then call
        the remove method. all is fine.</div>
      <div><br>
      </div>
      <div>but how can I be sure that nobody retrieves the user object
        via usermanager and calls the removeAlias method on the user
        object?</div>
    </blockquote>
    <br></div>
    this should not be possible, because the YarepUser#removeAlias(..)
    is only available inside the same package as YarepUserManager.<br>
    <br>
    HTH<br><font color="#888888">
    <br>
    Michael</font><div class="im"><br>
    <br>
    <blockquote type="cite">
      <div> If these two removeAlias() methods behave differently, it's
        "dangerous" that something unexpected happens.</div>
      <div><br>
      </div>
      <div>Cheers</div>
      <div>Balz</div>
      <br>
      <fieldset></fieldset>
      <br>
    </blockquote>
    <br>
  </div></div>

<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development" target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br></blockquote></div><br></div>