G
Glenn
My current classic-ASP site has users, projects, roles and the 2.0
membership looks like a perfect fit, but I'm having trouble finding
examples of how to have users that belong to different projects, and
have different roles per project.
The current model..
* When a user joins my site, they eventually end up joining or
creating one or more projects. But, they are not required to be a
member of a project to be a member of the site.
* As a member of the site, a user can be a member of zero or more
projects.
* They can create a project, for which they automatically assume a
'project owner' role.
* They can also join an existing project, in which they assume the
'regular member' role by default.
* So, a project will always have a member with the 'project owner'
role, zero or more with either the 'project lead' role, and zero or
more with the 'regular member' role.
* Users can leave a project at any time, unless they are the project
owner, in which case they must transfer ownership to another project
member.
* A common 'view' for a user is to view information across the
projects of which he is a member.
Currently, I have over 20,000 users, each with a unique user id (int),
and 500+ projects, each with a unique project id (int). A simple join
table associates users with projects (table:'user_projects': columns:
user_id,project_id,role,etc.)
Can I adapt the ASP.NET 2.0 membership classes to this model? After
looking for a while, I don't think an 'application' as defined by the
membership classes correlates to a 'project' in this case. I think my
projects need to be more dynamic.
Any tips, pointers, examples would be appreciated.
Thanks,
Glenn
membership looks like a perfect fit, but I'm having trouble finding
examples of how to have users that belong to different projects, and
have different roles per project.
The current model..
* When a user joins my site, they eventually end up joining or
creating one or more projects. But, they are not required to be a
member of a project to be a member of the site.
* As a member of the site, a user can be a member of zero or more
projects.
* They can create a project, for which they automatically assume a
'project owner' role.
* They can also join an existing project, in which they assume the
'regular member' role by default.
* So, a project will always have a member with the 'project owner'
role, zero or more with either the 'project lead' role, and zero or
more with the 'regular member' role.
* Users can leave a project at any time, unless they are the project
owner, in which case they must transfer ownership to another project
member.
* A common 'view' for a user is to view information across the
projects of which he is a member.
Currently, I have over 20,000 users, each with a unique user id (int),
and 500+ projects, each with a unique project id (int). A simple join
table associates users with projects (table:'user_projects': columns:
user_id,project_id,role,etc.)
Can I adapt the ASP.NET 2.0 membership classes to this model? After
looking for a while, I don't think an 'application' as defined by the
membership classes correlates to a 'project' in this case. I think my
projects need to be more dynamic.
Any tips, pointers, examples would be appreciated.
Thanks,
Glenn