I just committed some new code for Themis examples, which for now on, will be also an integration tests. The whole case is about values which are allowed for some roles. Let's take a case where there are two types of users: Admins and standard users, for the sake of briefness called Users. Let Admins … Continue reading Themis, a bit dipper dive
Below, you can find the final example of working interceptor, which uses some methods described in text of the last few blog entries (1, 2, 3, 4 and 5). Scan the example and go below to get some explanation about it! The constructor As you've noticed, there is a dependency injection in here! Two arguments … Continue reading NHibernate interceptor magic tricks, the example
I've just published the newest version of my authorization tool called Themis. I added a few things which I'll describe in the next posts. There are no breaking changes, but some of them may ease your authorization scenarios a bit. Meanwhile, I'm finishing the work on the NHibernate.IInterceptor example.
The previous parts of NHibernate interceptor journey can be found here: 1, 2, 3, 4. In this last entry I will describe all methods not covered previously. The example will be added as a separate entry as it needs a few more tests to be done, but hey! Now you'll know something about all methods … Continue reading NHibernate interceptor magic tricks, pt. 5
It's the very last but one entry of NHibernate IInterceptor series (the first three: 1, 2, 3). We traveled through a few first methods of IInterceptor. It's time to end this travel. Am I transient enough? Being transient in NHibernate world means nothing more than being not-persistent ever. The entity which you create with your … Continue reading NHibernate interceptor magic tricks, pt. 4
The very last meeting with IInterceptor was ended by description of IInterceptor.GetEntityName(object entity); method. It's time to step into the kingdom of almighty DI and IoC and learn how to combine it with NHibernate. Instantiate me, now! Imagine that you have a dependency passed as your entity constructor. Or you have some methods or properties … Continue reading NHibernate interceptor magic tricks, pt. 3
In the previous post, I described the basics of NHibernate's IInterceptor as well as using it to manage transaction-connected actions. It's time to move on and know better the other methods of this interface. Am I dirty? Yes I am! The very next method is connected with the term: dirtyness. During a flush, which occurs … Continue reading NHibernate interceptor magic tricks, pt. 2