用户/角色管理系统的最佳设计?

时间:2022-02-01 12:44:44

Here's a software design question I've encountered several times and have never found an ideal solution for (I'm also dealing with it now again.)

这是我多次遇到的软件设计问题,从未找到理想的解决方案(我现在也在处理它。)

Many applications need some form of user/role management. You have base users, groups that these users can belong to (not limited to just one), roles and permissions they have, organizational units, and a whole bunch of properties and other features that are project-specific.

许多应用程序需要某种形式的用户/角色管理。您拥有基本用户,这些用户可以属于的组(不限于一个),他们拥有的角色和权限,组织单位以及一大堆属性和项目特定的其他功能。

My question is, what ways do people know of and/or have experience with to design and build a really dynamic, flexible user management system? Are there any design patterns you know of that really help?

我的问题是,人们在设计和构建一个真正动态,灵活的用户管理系统方面知道和/或有经验的方式是什么?您知道哪些设计模式确实有帮助吗?

4 个解决方案

#1


17  

You should adapt your design because every organization is different. Check this page, you can see a pattern for role-based administration.

您应该调整您的设计,因为每个组织都不同。查看此页面,您可以看到基于角色的管理模式。

#2


3  

Chapter 2 of The Data Model Resource Book, Vol. 1: A Library of Universal Data Models for All Enterprises might be helpful.

“数据模型资源手册”第2章,卷。 1:适用于所有企业的通用数据模型库可能会有所帮助。

#3


2  

Not sure if it will help you, but if you have the opportunity you should check out the built in functionality in ASP.NET . You could get some pointers, at least, from there.

不确定它是否对您有所帮助,但如果您有机会,请查看ASP.NET中的内置功能。你至少可以从那里得到一些指示。

#4


1  

Take a look at Scott Mitchell's ASP.NET 2.0 Membership, Roles and Profile Tutorial series:

看看Scott Mitchell的ASP.NET 2.0 Membership,Roles and Profile Tutorial系列:

http://weblogs.asp.net/scottgu/archive/2006/05/07/ASP.NET-2.0-Membership-and-Roles-Tutorial-Series.aspx

#1


17  

You should adapt your design because every organization is different. Check this page, you can see a pattern for role-based administration.

您应该调整您的设计,因为每个组织都不同。查看此页面,您可以看到基于角色的管理模式。

#2


3  

Chapter 2 of The Data Model Resource Book, Vol. 1: A Library of Universal Data Models for All Enterprises might be helpful.

“数据模型资源手册”第2章,卷。 1:适用于所有企业的通用数据模型库可能会有所帮助。

#3


2  

Not sure if it will help you, but if you have the opportunity you should check out the built in functionality in ASP.NET . You could get some pointers, at least, from there.

不确定它是否对您有所帮助,但如果您有机会,请查看ASP.NET中的内置功能。你至少可以从那里得到一些指示。

#4


1  

Take a look at Scott Mitchell's ASP.NET 2.0 Membership, Roles and Profile Tutorial series:

看看Scott Mitchell的ASP.NET 2.0 Membership,Roles and Profile Tutorial系列:

http://weblogs.asp.net/scottgu/archive/2006/05/07/ASP.NET-2.0-Membership-and-Roles-Tutorial-Series.aspx