Hi,
I'm not sure if this question is best suited for this forum or not, but I'll give it a shot.
I have added an aspect to my model, let's call it "encrypted", whose value will depend on certain business rules (i.e. encryption enabled for *some* users, but not others).
My question is, can I attach a behavior in such a way that when this content is accessed (the actual content, not just the node, or other properties of the node), that I can intercept the data and apply encryption/decryption algorithms?
I don't want to store the content encrypted because it doesn't apply to everybody – I want to do it on-the-fly based on the presence of the aspect and the value of that aspect's property.
From what I can tell, the NodeServicesPolicies doesn't have any hook into reading properties, only updating them, so I'm kind of at a dead end. Maybe this isn't even the right way to go – is there some other event model to hook into?
Any thoughts? Thanks!
Brad