Dee

Dee

  • NA
  • 1
  • 0

Designing Custom Membership Object Questions...

Feb 10 2007 1:10 PM

Hi, I'm what you'd consider a visual c# newbie, as well as just starting out in oop programming.

I need help or a point in the right direction in achieving the following:

I have designed the following database tables which will be used to manage Users/Groups/Permissions throughout my client app;

SEC_USER
USER_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
USER_NAME
USER_PW
USER_EMAIL
FIRST_NAME
LAST_NAME
POSITION_TITLE
DEPARTMENT_NAME
USER_NOTES
PW_HINT_QUES_1
PW_HINT_ANSW_1
PW_HINT_QUES_2
PW_HINT_ANSW_2
PW_HINT_QUES_3
PW_HINT_ANSW_3
LGN_EXPIRES_FLG
LGN_EXPIRY_DT
USER_LOCKED_FLG
USER_LOCKED_DT
LOGGED_IN_FLG
LOGGED_IN_SESSIONS
LAST_LOGIN_DT
LAST_LGN_APP_VERSION
LAST_LGN_APP_BUILD
LAST_LGN_CLIENT_AUTH_NAME
LAST_LGN_CLIENT_MACHINE

SEC_GROUP
GROUP_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
GROUP_CD
GROUP_NAME

SEC_PERMISSION
PERMISSION_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
PERMISSION_CD
PERMISSION_NAME

SEC_USER_GROUP
USR_GROUP_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
USER_ID
GROUP_ID

SEC_GROUP_PERMISSION
GRP_PERMISSION_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
GROUP_ID
PERMISSION_ID

SEC_USER_GROUP_PERMISSION
USR_GRP_PERMISSION_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
USER_ID
GROUP_ID
PERMISSION_ID
PERMISSION_ENABLED_FLG

METHODS
VerifyUserLogin()
PerformUserLogin()
IsLoginExpired()
IsUserLocked()
RecoverLogin()
ChangePassword()
GeneratePassword()
GetClientInfo()
PerformUserLogout()
AddUser()
CopyUser()
DeleteUser()
LockUser()
UpdateUser()
UnlockUser()
GetAppInfo()
ValidateUser()

First off, will the table design above cover all the methods (listed above) in which i wish to invoke at some point or another within my client app? Secondly, are there any other methods that can be introduced as per my table design? Finally, ultimately, are there any articles or anything of that nature that can help me in designing a robust custom membership object?

Any help would be greatly appreciated.

Thanks in advance,