This project is read-only.

UserProfile

ClassDiagram: COFE.Data.UserProfile.cd

UserProfile represent a user, which contains it's id, password and a list of volumes it's authorized to access.

This object is accessable via COFEUser.UserProfile, which points to COFEShared.CurrentUserProfile.

By default, user profile is not functioning, CurrentUserProfile is set to AdminUserProfile, which allow current user can access all registered volumes.

If COFEDB (COFE.Data) is enabled, then it'll start functioning, CurrentUserProfile is set to UnauthorizedUserProfile, any volume access is denied without login.

if (!COFEAdmin.Users.Contains("test"))
    COFEAdmin.RegisterUser("Test", "Test");
COFEUser.Login("Test", "Test");

Last edited Jul 10, 2012 at 11:55 AM by lycj, version 6

Comments

No comments yet.