Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-28 Thread Segura
Kalle, really useful tip. But... I wrote simple interface public interface AccountRealm { void addAccount(String username, String password); boolean accountExists(String username); } and changed my realm description to public class AccountRealmImpl extends AuthorizingRealm im

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Segura
Yes, i know it. And i read all of http://tynamo.org/tapestry-security+guide , but have not found a Realm's method call. I thought that it is like working with the hibernate session: @Inject private MyRealm realm; ... void foo() { realm.addAccount(na

Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Segura
Hello. Trying to configurate Tapestry-Security. Added into my AppModule @Contribute(WebSecurityManager.class) public static void addRealms(Configuration configuration) { SimpleAccountRealm realm = new SimpleAccountRealm(); configuration.add(realm); } But i cant understand how to call Simpl