C# Class JabbR.Services.PersistedRepository

Inheritance: IJabbrRepository
Datei anzeigen Open project: ucdavis/JabbR

Public Methods

Method Description
Add ( JabbR.Models.ChatClient client ) : void
Add ( ChatMessage message ) : void
Add ( JabbR.Models.ChatRoom room ) : void
Add ( JabbR.Models.ChatUser user ) : void
Add ( JabbR.Models.ChatUserIdentity identity ) : void
AddUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
CommitChanges ( ) : void
Dispose ( ) : void
GetAllowedRooms ( JabbR.Models.ChatUser user ) : IQueryable
GetClientById ( string clientId, bool includeUser = false ) : JabbR.Models.ChatClient
GetMessagesById ( string id ) : ChatMessage
GetMessagesByRoom ( JabbR.Models.ChatRoom room ) : IQueryable
GetOnlineUsers ( ) : IQueryable
GetOnlineUsers ( JabbR.Models.ChatRoom room ) : IQueryable
GetPreviousMessages ( string messageId ) : IQueryable
GetRoomByName ( string roomName ) : JabbR.Models.ChatRoom
GetUserByClientId ( string clientId ) : JabbR.Models.ChatUser
GetUserById ( string userId ) : JabbR.Models.ChatUser
GetUserByIdentity ( string providerName, string userIdentity ) : JabbR.Models.ChatUser
GetUserByLegacyIdentity ( string userIdentity ) : JabbR.Models.ChatUser
GetUserByName ( string userName ) : JabbR.Models.ChatUser
IsUserInRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : bool
PersistedRepository ( JabbrContext db ) : System
Remove ( JabbR.Models.ChatClient client ) : void
Remove ( JabbR.Models.ChatRoom room ) : void
Remove ( JabbR.Models.ChatUser user ) : void
Remove ( JabbR.Models.ChatUserIdentity identity ) : void
RemoveAllClients ( ) : void
RemoveUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
SearchUsers ( string name ) : IQueryable

Private Methods

Method Description
GetMessagesByRoom ( string roomName ) : IQueryable
RunNonLazy ( System.Action action ) : void

Method Details

Add() public method

public Add ( JabbR.Models.ChatClient client ) : void
client JabbR.Models.ChatClient
return void

Add() public method

public Add ( ChatMessage message ) : void
message JabbR.Models.ChatMessage
return void

Add() public method

public Add ( JabbR.Models.ChatRoom room ) : void
room JabbR.Models.ChatRoom
return void

Add() public method

public Add ( JabbR.Models.ChatUser user ) : void
user JabbR.Models.ChatUser
return void

Add() public method

public Add ( JabbR.Models.ChatUserIdentity identity ) : void
identity JabbR.Models.ChatUserIdentity
return void

AddUserRoom() public method

public AddUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
user JabbR.Models.ChatUser
room JabbR.Models.ChatRoom
return void

CommitChanges() public method

public CommitChanges ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetAllowedRooms() public method

public GetAllowedRooms ( JabbR.Models.ChatUser user ) : IQueryable
user JabbR.Models.ChatUser
return IQueryable

GetClientById() public method

public GetClientById ( string clientId, bool includeUser = false ) : JabbR.Models.ChatClient
clientId string
includeUser bool
return JabbR.Models.ChatClient

GetMessagesById() public method

public GetMessagesById ( string id ) : ChatMessage
id string
return JabbR.Models.ChatMessage

GetMessagesByRoom() public method

public GetMessagesByRoom ( JabbR.Models.ChatRoom room ) : IQueryable
room JabbR.Models.ChatRoom
return IQueryable

GetOnlineUsers() public method

public GetOnlineUsers ( ) : IQueryable
return IQueryable

GetOnlineUsers() public method

public GetOnlineUsers ( JabbR.Models.ChatRoom room ) : IQueryable
room JabbR.Models.ChatRoom
return IQueryable

GetPreviousMessages() public method

public GetPreviousMessages ( string messageId ) : IQueryable
messageId string
return IQueryable

GetRoomByName() public method

public GetRoomByName ( string roomName ) : JabbR.Models.ChatRoom
roomName string
return JabbR.Models.ChatRoom

GetUserByClientId() public method

public GetUserByClientId ( string clientId ) : JabbR.Models.ChatUser
clientId string
return JabbR.Models.ChatUser

GetUserById() public method

public GetUserById ( string userId ) : JabbR.Models.ChatUser
userId string
return JabbR.Models.ChatUser

GetUserByIdentity() public method

public GetUserByIdentity ( string providerName, string userIdentity ) : JabbR.Models.ChatUser
providerName string
userIdentity string
return JabbR.Models.ChatUser

GetUserByLegacyIdentity() public method

public GetUserByLegacyIdentity ( string userIdentity ) : JabbR.Models.ChatUser
userIdentity string
return JabbR.Models.ChatUser

GetUserByName() public method

public GetUserByName ( string userName ) : JabbR.Models.ChatUser
userName string
return JabbR.Models.ChatUser

IsUserInRoom() public method

public IsUserInRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : bool
user JabbR.Models.ChatUser
room JabbR.Models.ChatRoom
return bool

PersistedRepository() public method

public PersistedRepository ( JabbrContext db ) : System
db JabbR.Models.JabbrContext
return System

Remove() public method

public Remove ( JabbR.Models.ChatClient client ) : void
client JabbR.Models.ChatClient
return void

Remove() public method

public Remove ( JabbR.Models.ChatRoom room ) : void
room JabbR.Models.ChatRoom
return void

Remove() public method

public Remove ( JabbR.Models.ChatUser user ) : void
user JabbR.Models.ChatUser
return void

Remove() public method

public Remove ( JabbR.Models.ChatUserIdentity identity ) : void
identity JabbR.Models.ChatUserIdentity
return void

RemoveAllClients() public method

public RemoveAllClients ( ) : void
return void

RemoveUserRoom() public method

public RemoveUserRoom ( JabbR.Models.ChatUser user, JabbR.Models.ChatRoom room ) : void
user JabbR.Models.ChatUser
room JabbR.Models.ChatRoom
return void

SearchUsers() public method

public SearchUsers ( string name ) : IQueryable
name string
return IQueryable