C# Class MongoMembership.Mongo.MongoGateway

Inheritance: IMongoGateway
Mostra file Open project: FoC-/MongoMembership

Private Properties

Property Type Description
CreateIndex void
MongoGateway System
RegisterClassMapping void

Public Methods

Method Description
CreateRole ( Role role ) : void
CreateUser ( User user ) : void
DropRoles ( ) : void
DropUsers ( ) : void
GetAll ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllAnonym ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllAnonymByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllByEmail ( string applicationName, string email, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllInactiveAnonymSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllInactiveSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllRoles ( string applicationName ) : string[]
GetByEmail ( string applicationName, string email ) : User
GetById ( string id ) : User
GetByUserName ( string applicationName, string username ) : User
GetInactiveAnonymSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetInactiveSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetRolesForUser ( string applicationName, string username ) : string[]
GetUserForPeriodOfTime ( string applicationName, System.TimeSpan timeSpan ) : int
GetUsersInRole ( string applicationName, string roleName ) : string[]
IsRoleExists ( string applicationName, string roleName ) : bool
IsUserInRole ( string applicationName, string username, string roleName ) : bool
MongoGateway ( string mongoConnectionString ) : System
RemoveRole ( string applicationName, string roleName ) : void
RemoveUser ( User user ) : void
UpdateUser ( User user ) : void

Private Methods

Method Description
CreateIndex ( ) : void
MongoGateway ( ) : System
RegisterClassMapping ( ) : void

Method Details

CreateRole() public method

public CreateRole ( Role role ) : void
role Role
return void

CreateUser() public method

public CreateUser ( User user ) : void
user User
return void

DropRoles() public method

public DropRoles ( ) : void
return void

DropUsers() public method

public DropUsers ( ) : void
return void

GetAll() public method

public GetAll ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllAnonym() public method

public GetAllAnonym ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllAnonymByUserName() public method

public GetAllAnonymByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllByEmail() public method

public GetAllByEmail ( string applicationName, string email, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
email string
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllByUserName() public method

public GetAllByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllInactiveAnonymSince() public method

public GetAllInactiveAnonymSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
inactiveDate System.DateTime
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllInactiveSince() public method

public GetAllInactiveSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
inactiveDate System.DateTime
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetAllRoles() public method

public GetAllRoles ( string applicationName ) : string[]
applicationName string
return string[]

GetByEmail() public method

public GetByEmail ( string applicationName, string email ) : User
applicationName string
email string
return User

GetById() public method

public GetById ( string id ) : User
id string
return User

GetByUserName() public method

public GetByUserName ( string applicationName, string username ) : User
applicationName string
username string
return User

GetInactiveAnonymSinceByUserName() public method

public GetInactiveAnonymSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
userInactiveSinceDate System.DateTime
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetInactiveSinceByUserName() public method

public GetInactiveSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
userInactiveSinceDate System.DateTime
pageIndex int
pageSize int
totalRecords int
return IEnumerable

GetRolesForUser() public method

public GetRolesForUser ( string applicationName, string username ) : string[]
applicationName string
username string
return string[]

GetUserForPeriodOfTime() public method

public GetUserForPeriodOfTime ( string applicationName, System.TimeSpan timeSpan ) : int
applicationName string
timeSpan System.TimeSpan
return int

GetUsersInRole() public method

public GetUsersInRole ( string applicationName, string roleName ) : string[]
applicationName string
roleName string
return string[]

IsRoleExists() public method

public IsRoleExists ( string applicationName, string roleName ) : bool
applicationName string
roleName string
return bool

IsUserInRole() public method

public IsUserInRole ( string applicationName, string username, string roleName ) : bool
applicationName string
username string
roleName string
return bool

MongoGateway() public method

public MongoGateway ( string mongoConnectionString ) : System
mongoConnectionString string
return System

RemoveRole() public method

public RemoveRole ( string applicationName, string roleName ) : void
applicationName string
roleName string
return void

RemoveUser() public method

public RemoveUser ( User user ) : void
user User
return void

UpdateUser() public method

public UpdateUser ( User user ) : void
user User
return void