August 27, 2012 at 5:11 pm
Hi all,
I have a real world application for something approximating cascading style sheets (CSS).
In my app, I want to be able to set a property and have its value "cascade" down to lower levels in e hierarchy.
For example: in a corporate structure, we could set health care benefits as "full" at the highest level, let directors inherit the "full" value, then override that value for employees, who are set at "minimal." (my domain is actually paid search, please pardon the over simplified example.).
I want a simple schema, and a simple lookup/query routine. There will be arbitrary properties to set, and not every property need be set at every level (no need to enforce rules on that, just calling out the need for flexibility).
This has to be a schema pattern that has been worked out before... Any tips or suggestions much appreciated.
August 27, 2012 at 8:51 pm
well, CSS wise, the closest assignment to the object overrides the css at the higher level;
do you have a set number of levels, or at least some method to identify a hierarchy yet?
for a search, I'm wondering if it is more like permissions, where they might be cumulative in scope, rather than like CSS, which overrides a previous.
can you explain a bit more, maybe with an example?
it sounds a bit more like a permissions hierarchy, where "everyone' has full permissions until they are taken away.
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply