473,770 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best methods for retrofitting?

I have an application with two user roles - regular or admin. If an admin
logs in, a button to the admin reporting section appears. This keeps
maintenance simple. However, I need to add more roles and restricted areas
to the app. For example, one account will have an admin and several regular
logins. The Admin can designate what each login will see within the
application. Now, there can be a Super Admin for that same account, which
is above the Admin. The Admins become departmental admins and administer
users for their department while the super admin administers for the entire
company. The tree looks like this:

- SuperX Admin --application developer (non client)
- Super Admin --client admin for a company
- Admin --client admin for department within company
- User --client account for employee within company (most basic and
restricted type)

To make all of this work, I'll need to retrofit the app with many
conditionals. One example is and area in the app where a couple of buttons
are displayed depending on the user role:

If login.type = SuperXAdmin Then
--show two buttons
Else if login.type = Admin Then
-- show one button visible for Admin
Else if login.type = user Then
-- most restricted login. Don't show any buttons
End If

The above is a case where "user" doesn't see any buttons but some of the
Admin roles do. There are many permutations to this through out the app
however depending on where some one goes, which is dependent on their role.
In some places, all role types may see the a button and in others only the
SuperXAdmin and SuperAdmin see the button. Whether the app is retrofitted
or designed from the start with the above conditionals, it will be a large
maintenance issue if I every need to add a new role.

What is the best approach to the above? References are appreciated.

Thanks,
Brett
Nov 21 '05 #1
1 1072
Hi Brett,

Heres what might help you

http://msdn.microsoft.com/library/de.../security1.asp

Security Application Block from the Patterns & Practices site

Although it primarily targets Security realted issues but it also concerns
Profile Management, which i think is what you are looking for.

HTH
rawCoder
The above is a case where "user" doesn't see any buttons but some of the
Admin roles do. There are many permutations to this through out the app
however depending on where some one goes, which is dependent on their role. In some places, all role types may see the a button and in others only the
SuperXAdmin and SuperAdmin see the button. Whether the app is retrofitted or designed from the start with the above conditionals, it will be a large
maintenance issue if I every need to add a new role.

What is the best approach to the above? References are appreciated.

Thanks,
Brett

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

131
21690
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately get some good real world examples. Fire away! :) Regards, Peter Foti
14
3138
by: 42 | last post by:
Hi, Stupid question: I keep bumping into the desire to create classes and properties with the same name and the current favored naming conventions aren't automatically differentiating them... (both are "Pascal Case" with no leading or trailing qualifiers). For example... I'll be modelling something, e.g. a computer, and I'll
5
3198
by: wrecker | last post by:
Hi all, I have a few common methods that I need to use at different points in my web application. I'm wondering where the best place would be to put these? I think that I have three options. 1. I can create a common module like common.vb in my project and put all the functions in there. 2. Create a utility class and create the common functions as shared
14
2619
by: Bert Vandenberghe | last post by:
Hi, I was wondering if there are any best practices on the creation of webmethods? I'll try to explain this a little more: My problem is that we are changing an existing (large) DCOM application to use web services, but we have like hundreds of different methods you can call and what I wanted to do, is add a couple of generic webmethods that take a serializable .NET class or structure, and in that class or structure we put all the...
0
1389
by: John O'Neill | last post by:
Hi I would like some advice on how best to use web service proxy classes. Lets say I have a web service with 3 methods to GetCustomer, DeleteCustomer and UpdateCustomer. In my client code I might have a class that will call GetCustomer and then depending on user input, I might want to DeleteCustomer or UpdateCustomer. In my client code I will need an instance of a proxy class for the web service I want to use and as I see it, there are 3...
3
2660
by: Marc Gravell | last post by:
Kind of an open question on best-practice for smart-client design. I'd really appreciate anyones views (preferably with reasoning, but I'll take what I get...). Or if anybody has any useful links on the subject? (and yes, I have already googled it at length, but still no strong decision) ============= After a long stint of pure-desktop / pure-server applications, I'm currently working on a number of smart-client projects in C# using...
2
2376
by: Steve Le Monnier | last post by:
Can anybody give me a quick heads up on the best way to develop C# based DLL's that are called via VBA. I'm developing a pop-up window that will record information within SQL. I need to launch this pop-up from an application that only supports VBA. So I decided the best solution would be to create a DLL with C# that exposes the methods needed to launch my pop-up window. My first attempt didn't work and after spending several hours on...
12
3169
by: Nettan | last post by:
Hi What is the best way to write to a textfile, is it with FileSystemObject or with StreamWriter? Thanks /Nettan
2
16814
yashg
by: yashg | last post by:
I am building a data backup application in C# using Sockets. It has a server component and a client component. The client is going to upload files to the server through TCP sockets. I've got all figured out and have been able to transfer files between client and server. Now I have some doubts about which is the best method to transfer a file? Option 1 - I use the built in Socket.BeginSendFile (I am using async calls) to transfer a file. Option 2...
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.