public static User Build(ITypeReader reader) { User user = new User(); user.UserId = reader.GetGuid("UserId"); user.AcceptedLatestTOS = reader.GetBool("AcceptedLatestTOS"); user.LastTOSVersion = reader.GetInt("LastTOSVersion"); user.PasswordExpiration = reader.GetDate("PasswordExpiration"); user.FirstTimeUser = reader.GetBool("NewUser"); user.DisplayName = reader.GetString("DisplayName"); user.FirstName = reader.GetString("FirstName"); user.MiddleName = reader.GetString("MiddleName"); user.LastName = reader.GetString("LastName"); user.Phone = reader.GetString("Phone"); user.Ext = reader.GetString("Ext"); user.SessionTimeoutInterval = reader.GetInt("SessionTimeout"); user.PasswordQuestion = reader.GetString("PasswordQuestion"); user.PasswordAnswer = reader.GetString("PasswordAnswer"); user.AdminUserId = reader.GetGuid("AdministratorUserId"); user.AdminUserName = reader.GetString("AdminUserName"); user.UserType = (UserTypes)reader.GetInt("UserTypeId"); user.UserTypeId = reader.GetInt("UserTypeId"); user.FailedPasswordAttemptCount = reader.GetInt("FailedPasswordAttemptCount"); user.FailedPasswordAnswerAttemptCount = reader.GetInt("FailedPasswordAnswerAttemptCount"); user.Status = reader.GetString("Status"); user.StatusTypeId = reader.GetInt("StatusTypeId"); return(user); }
public static PasswordHistory Build(ITypeReader reader) { PasswordHistory PasswordHistory = new PasswordHistory(); PasswordHistory.UserId = reader.GetGuid("UserId"); PasswordHistory.Password = reader.GetString("Password"); return(PasswordHistory); }
public static RolePermission Build(ITypeReader reader) { RolePermission rolePermission = new RolePermission(); rolePermission.RoleId = reader.GetGuid("RoleId"); rolePermission.PermissionId = reader.GetInt("PermissionId"); return(rolePermission); }
public static UserGroup Build(ITypeReader reader) { UserGroup group = new UserGroup(); group.UserId = reader.GetGuid("UserId"); group.GroupId = reader.GetInt("GroupId"); group.Name = reader.GetString("Name"); return(group); }
public static Role BuildRoles(ITypeReader reader) { Role role = new Role(); role.RoleId = reader.GetGuid("RoleId"); role.RoleName = reader.GetString("RoleName"); role.LoweredRoleName = reader.GetString("RoleName").ToLower(); return(role); }
public static User BuildImpersonationUsers(ITypeReader reader) { User user = new User(); user.UserId = reader.GetGuid("UserId"); user.DisplayName = reader.GetString("DisplayName"); user.UserName = reader.GetString("UserName"); user.Status = reader.GetString("UserStatus"); return(user); }
public static Role Build(ITypeReader reader) { Role role = new Role(); role.RoleId = reader.GetGuid("RoleId"); role.RoleName = reader.GetString("RoleName"); role.LoweredRoleName = reader.GetString("LoweredRoleName"); role.Description = reader.GetString("Description"); role.UserTypeId = reader.GetInt("UserTypeId"); role.ContractId = reader.GetInt("ContractId"); role.Level = reader.GetInt("Level"); return(role); }
public static User BuildLightweight(ITypeReader reader) { User user = new User(); user.UserId = reader.GetGuid("UserId"); user.UserName = reader.GetString("UserName"); user.DisplayName = reader.GetString("DisplayName"); user.CreateDate = reader.GetDate("CreateDate").Value; user.Status = reader.GetString("Status"); user.StatusTypeId = reader.GetInt("StatusTypeId"); user.UserType = (UserTypes)reader.GetInt("UserTypeId"); user.UserTypeId = reader.GetInt("UserTypeId"); user.LastLoginDate = reader.GetDate("LastLoginDate"); user.Email = reader.GetString("Email"); user.IsNewUser = reader.GetBool("IsNewUser"); return(user); }
public static PageView Build(ITypeReader reader) { var pageView = new PageView { ContractId = reader.GetInt("ContractId"), Name = reader.GetString("ViewName"), Description = reader.GetString("Description"), IsPageDefaultView = reader.GetBool("IsPageDefaultView"), IsUserDefaultView = reader.GetBool("IsUserDefaultView"), ControlId = reader.GetInt("ControlId"), PageName = reader.GetString("PageName"), PagePath = reader.GetString("PagePath"), UserId = reader.GetGuid("UserId"), ViewContainer = reader.GetString("ViewContainer"), ViewId = reader.GetInt("ViewId") }; return(pageView); }