From: jhaile (s. by Nabble.com) <li...@na...> - 2005-12-30 22:36:51
|
So would the defaults be "" and JSecurity would know that if you specify an empty string it should use a 1 or 2 arg constructor? There definitely needs to be some default value, and annotations will not allow you to default them to null, so I imagine we will need to use an empty string. So, 1) if I specify @HasPermission(type="..") JSecurity will use a 0-arg constructor. 2) if I specify @HasPermission(type="..", actions="read"), JSecurity will use a 1-arg constructor. 3) if I specify @HasPermission(type="..", target="123"), JSecurity will again use a 1-arg constructor? 4) if I specify @HasPermission(type="..",target="123",actions="read") JSecurity will use a 2-arg constructor. Is this what you are thinking? If not, please give me a similar example and be sure to be specific about what the default values would be. -- Sent from the Developer forum at Nabble.com: http://www.nabble.com/HasPermission-default-target-and-actions-t826978c13668.html#a2148957 |