[Yanel-dev] package private method in YarepUser

Michael Wechner michael.wechner at wyona.com
Thu Sep 29 00:07:07 CEST 2011


Am 28.09.11 16:57, schrieb basZero:
>
>
>>
>>     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.
>
>     I am not sure I understand. Can you explain a bit?
>
>
>
> 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.
>
> but how can I be sure that nobody retrieves the user object via 
> usermanager and calls the removeAlias method on the user object?

this should not be possible, because the YarepUser#removeAlias(..) is 
only available inside the same package as YarepUserManager.

HTH

Michael

> If these two removeAlias() methods behave differently, it's 
> "dangerous" that something unexpected happens.
>
> Cheers
> Balz
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110929/a0ec7335/attachment.html>


More information about the Yanel-development mailing list