C# Class Carrotware.CMS.Core.SecurityData

Mostrar archivo Open project: ninianne98/CarrotCakeCMS-MVC Class Usage Examples

Private Properties

Property Type Description
AttemptCreateApplicationUser Microsoft.AspNet.Identity.IdentityResult

Public Methods

Method Description
AddUserToRole ( System.Guid UserId, string roleName ) : bool
AddUserToRole ( string userName, string roleName ) : bool
CreateApplicationUser ( ApplicationUser user, ExtendedUserData &newusr ) : Microsoft.AspNet.Identity.IdentityResult
CreateApplicationUser ( ApplicationUser user, string password, ExtendedUserData &newusr ) : Microsoft.AspNet.Identity.IdentityResult
FindRole ( string RoleName ) : UserRole
FindRoleByID ( string roleID ) : UserRole
GenerateSimplePassword ( ) : string
GetCreditUserProfileSearch ( string searchTerm ) : List
GetCreditUserSearch ( string searchTerm ) : List
GetIsAdminFromCache ( ) : bool
GetIsSiteEditorFromCache ( ) : bool
GetProfileByUserID ( System.Guid userId ) : Carrotware.CMS.Core.UserProfile
GetProfileByUserName ( string userName ) : Carrotware.CMS.Core.UserProfile
GetRoleList ( ) : List
GetRoleListRestricted ( ) : List
GetUserByEmail ( string email ) : ApplicationUser
GetUserByID ( string key ) : ApplicationUser
GetUserByName ( string username ) : ApplicationUser
GetUserList ( ) : List
GetUserListByEmail ( string email ) : List
GetUserListByName ( string usrName ) : List
GetUserName ( ) : string
GetUserProfileSearch ( string searchTerm ) : List
GetUserSearch ( string searchTerm ) : List
GetUsersInRole ( string groupName ) : List
IsUserInRole ( string groupName ) : bool
IsUserInRole ( string userName, string groupName ) : bool
RemoveUserFromRole ( string userName, string roleName ) : bool
ResetPassword ( ApplicationUser user, string code, string password ) : Microsoft.AspNet.Identity.IdentityResult
ResetPassword ( string email ) : bool
ResetPassword ( string resetUri, string email ) : bool
SecurityData ( ) : System

Private Methods

Method Description
AttemptCreateApplicationUser ( ApplicationUser user, string password, ExtendedUserData &newusr ) : Microsoft.AspNet.Identity.IdentityResult

Method Details

AddUserToRole() public static method

public static AddUserToRole ( System.Guid UserId, string roleName ) : bool
UserId System.Guid
roleName string
return bool

AddUserToRole() public static method

public static AddUserToRole ( string userName, string roleName ) : bool
userName string
roleName string
return bool

CreateApplicationUser() public method

public CreateApplicationUser ( ApplicationUser user, ExtendedUserData &newusr ) : Microsoft.AspNet.Identity.IdentityResult
user ApplicationUser
newusr ExtendedUserData
return Microsoft.AspNet.Identity.IdentityResult

CreateApplicationUser() public method

public CreateApplicationUser ( ApplicationUser user, string password, ExtendedUserData &newusr ) : Microsoft.AspNet.Identity.IdentityResult
user ApplicationUser
password string
newusr ExtendedUserData
return Microsoft.AspNet.Identity.IdentityResult

FindRole() public static method

public static FindRole ( string RoleName ) : UserRole
RoleName string
return UserRole

FindRoleByID() public static method

public static FindRoleByID ( string roleID ) : UserRole
roleID string
return UserRole

GenerateSimplePassword() public static method

public static GenerateSimplePassword ( ) : string
return string

GetCreditUserProfileSearch() public static method

public static GetCreditUserProfileSearch ( string searchTerm ) : List
searchTerm string
return List

GetCreditUserSearch() public static method

public static GetCreditUserSearch ( string searchTerm ) : List
searchTerm string
return List

GetIsAdminFromCache() public static method

public static GetIsAdminFromCache ( ) : bool
return bool

GetIsSiteEditorFromCache() public static method

public static GetIsSiteEditorFromCache ( ) : bool
return bool

GetProfileByUserID() public static method

public static GetProfileByUserID ( System.Guid userId ) : Carrotware.CMS.Core.UserProfile
userId System.Guid
return Carrotware.CMS.Core.UserProfile

GetProfileByUserName() public static method

public static GetProfileByUserName ( string userName ) : Carrotware.CMS.Core.UserProfile
userName string
return Carrotware.CMS.Core.UserProfile

GetRoleList() public static method

public static GetRoleList ( ) : List
return List

GetRoleListRestricted() public static method

public static GetRoleListRestricted ( ) : List
return List

GetUserByEmail() public static method

public static GetUserByEmail ( string email ) : ApplicationUser
email string
return ApplicationUser

GetUserByID() public static method

public static GetUserByID ( string key ) : ApplicationUser
key string
return ApplicationUser

GetUserByName() public static method

public static GetUserByName ( string username ) : ApplicationUser
username string
return ApplicationUser

GetUserList() public static method

public static GetUserList ( ) : List
return List

GetUserListByEmail() public static method

public static GetUserListByEmail ( string email ) : List
email string
return List

GetUserListByName() public static method

public static GetUserListByName ( string usrName ) : List
usrName string
return List

GetUserName() public static method

public static GetUserName ( ) : string
return string

GetUserProfileSearch() public static method

public static GetUserProfileSearch ( string searchTerm ) : List
searchTerm string
return List

GetUserSearch() public static method

public static GetUserSearch ( string searchTerm ) : List
searchTerm string
return List

GetUsersInRole() public static method

public static GetUsersInRole ( string groupName ) : List
groupName string
return List

IsUserInRole() public static method

public static IsUserInRole ( string groupName ) : bool
groupName string
return bool

IsUserInRole() public static method

public static IsUserInRole ( string userName, string groupName ) : bool
userName string
groupName string
return bool

RemoveUserFromRole() public static method

public static RemoveUserFromRole ( string userName, string roleName ) : bool
userName string
roleName string
return bool

ResetPassword() public method

public ResetPassword ( ApplicationUser user, string code, string password ) : Microsoft.AspNet.Identity.IdentityResult
user ApplicationUser
code string
password string
return Microsoft.AspNet.Identity.IdentityResult

ResetPassword() public method

public ResetPassword ( string email ) : bool
email string
return bool

ResetPassword() public method

public ResetPassword ( string resetUri, string email ) : bool
resetUri string
email string
return bool

SecurityData() public method

public SecurityData ( ) : System
return System