Page 1 of 1

Adding collections to super classes defined in super schemas

Posted: Fri Aug 07, 2009 2:18 pm
by ConvertFromOldNGs
by Torrie Moore >> Tue, 24 Aug 1999 0:50:18 GMT

We have defined security classes in a schema (Base) which contain the generic security functions (users, groups etc). The User and the SecurityGroup class are both subclassed from a SecurityEntity class.
In one of our programs that is using this base security we have a requirement for departmental security level for each user. To do this we created a link class that links a department with a user and provides a security level. What I would like to do is to have a collection on the SecurityEntity class of all the link objects for that user or group. As the Security Entity is defined in a higher schema this is impossible. I have thought of one way to implement this:
Create collections on a subclass of the User and SecurityGroup classes. These could be maintained manually with the reference to the securityEntity or change the link class to have 2 links, one for User and one for a Group. Use methods defined on the SecurityEntity class defined in the subschema to access these collections. (implement these methods on both User and Group subclasses).

Does anyone have any views on other ways of doing this or comments on this way?

Thanks

Torrie Moore