C# Class ForumServer.DataLayer.DataManagerLocal

Inheritance: IDataManager
Datei anzeigen Open project: sagioto/forum

Public Methods

Method Description
AddModerator ( string subforum, string moderatorName ) : bool
AddPost ( Post post, string subforum ) : bool
AddReply ( Post reply, Postkey originalPost ) : bool
AddSubforum ( Subforum subforum ) : bool
AddUser ( User user ) : bool
DataManagerLocal ( ) : System
EditPost ( Post postToUpdate, Postkey originalPost ) : bool
GetAdmin ( ) : User
GetAllLoggedInUsers ( ) : List
GetAllPosts ( ) : List
GetAllShouldBeBannedUserNames ( ) : List
GetModerators ( string subforum ) : List
GetPost ( Postkey postkey ) : Post
GetSubforum ( string subforumName ) : Subforum
GetSubforums ( ) : List
GetUser ( string username ) : User
GetUserPosts ( string username ) : List
InitForumData ( ) : void
RemoveModerator ( string subforum, string moderatorName ) : bool
RemovePost ( Postkey postkey ) : bool
RemoveSubforum ( string subforum ) : bool
SetAdmin ( User admin ) : bool
SetModerators ( string subforum, List moderatorsList ) : bool
SetUserState ( string username, UserState state ) : bool
UpdateUser ( User user ) : bool

Private Methods

Method Description
GetAllReplyOfPost ( Post post ) : List
GetPost ( Postkey postkey, Post &returnedPost ) : void
GetRepliesOfUser ( Post post, string username, List listOfUserPosts, List &returnedReplies ) : void
GetReply ( Postkey postkey, Post>.Dictionary postsList, Post &returnedPost ) : void
GetUserPosts ( string username, List &returnedPosts ) : void
RemoveReply ( Postkey postkey, Post>.Dictionary repliesList ) : bool
UpdateReply ( Post replyToUpdate, Post>.Dictionary postsList ) : bool

Method Details

AddModerator() public method

public AddModerator ( string subforum, string moderatorName ) : bool
subforum string
moderatorName string
return bool

AddPost() public method

public AddPost ( Post post, string subforum ) : bool
post ForumShared.SharedDataTypes.Post
subforum string
return bool

AddReply() public method

public AddReply ( Post reply, Postkey originalPost ) : bool
reply ForumShared.SharedDataTypes.Post
originalPost Postkey
return bool

AddSubforum() public method

public AddSubforum ( Subforum subforum ) : bool
subforum ForumUtils.SharedDataTypes.Subforum
return bool

AddUser() public method

public AddUser ( User user ) : bool
user ForumServer.DataTypes.User
return bool

DataManagerLocal() public method

public DataManagerLocal ( ) : System
return System

EditPost() public method

public EditPost ( Post postToUpdate, Postkey originalPost ) : bool
postToUpdate ForumShared.SharedDataTypes.Post
originalPost Postkey
return bool

GetAdmin() public method

public GetAdmin ( ) : User
return ForumServer.DataTypes.User

GetAllLoggedInUsers() public method

public GetAllLoggedInUsers ( ) : List
return List

GetAllPosts() public method

public GetAllPosts ( ) : List
return List

GetAllShouldBeBannedUserNames() public method

public GetAllShouldBeBannedUserNames ( ) : List
return List

GetModerators() public method

public GetModerators ( string subforum ) : List
subforum string
return List

GetPost() public method

public GetPost ( Postkey postkey ) : Post
postkey Postkey
return ForumShared.SharedDataTypes.Post

GetSubforum() public method

public GetSubforum ( string subforumName ) : Subforum
subforumName string
return ForumUtils.SharedDataTypes.Subforum

GetSubforums() public method

public GetSubforums ( ) : List
return List

GetUser() public method

public GetUser ( string username ) : User
username string
return ForumServer.DataTypes.User

GetUserPosts() public method

public GetUserPosts ( string username ) : List
username string
return List

InitForumData() public method

public InitForumData ( ) : void
return void

RemoveModerator() public method

public RemoveModerator ( string subforum, string moderatorName ) : bool
subforum string
moderatorName string
return bool

RemovePost() public method

public RemovePost ( Postkey postkey ) : bool
postkey Postkey
return bool

RemoveSubforum() public method

public RemoveSubforum ( string subforum ) : bool
subforum string
return bool

SetAdmin() public method

public SetAdmin ( User admin ) : bool
admin ForumServer.DataTypes.User
return bool

SetModerators() public method

public SetModerators ( string subforum, List moderatorsList ) : bool
subforum string
moderatorsList List
return bool

SetUserState() public method

public SetUserState ( string username, UserState state ) : bool
username string
state UserState
return bool

UpdateUser() public method

public UpdateUser ( User user ) : bool
user ForumServer.DataTypes.User
return bool