Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security implementation
Message
From
03/01/1997 23:02:14
 
 
To
03/01/1997 08:10:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00016369
Message ID:
00016437
Views:
59
>OK, I'm out to learn from others' experience.
>
>Has anyone out there implemented field level and control level security in their application or framework?
>
>I've got an idea on how it can be achieved, but want to see if anyone out there has better ideas.
>
>
>My plan:
>
>•
> 1) Each form has a Security object (custom) that will check the user's security level.
> 2) Each control that wants to be secured has a .SecurityLevel property that defines the lowest level at which it can be active.
> 3) Each control that wants to be secured has a .Secure() method that will take the appropriate action, either making it readonly or disabling it.
> 4) Each control that wants to be secured is responsible for calling THISFORM.Security.Guard(THIS)
> 5) The Guard() method in the Security object will check the passed object reference security level and then call the object reference.Secure() method if appropriate.
>
>
>This is almost a strategy pattern, except the strategy is inside the object being visited instead of being a separate class.
>
>I think that the levels could be loaded from a table at Init() time if the security is to be dynamic without recompiling the applicaiton.
>At present the client only wants levels 0 (nothing) to 3 (everything) but I want to avoid hard coding.
>
>Thus a table that stores the hierarchy of the object, and its minimum security level is needed IMO.
>
>
>Whaddya think?

If the field name exist in the userfield table, I use the refresh method to enable or disable the control.
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform