473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1048
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
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...
14
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......
5
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. ...
14
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...
0
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...
3
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...
2
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...
12
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
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.