Adding collections to super classes defined in super schemas

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Adding collections to super classes defined in super schemas

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:18 pm

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

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 24 guests