C# Class ForumServer.DataLayer.DataManager

Inheritance: IDataManager
Exibir arquivo Open project: sagioto/forum Class Usage Examples

Public Methods

Method Description
AddModerator ( string subforum, string moderatorName ) : bool
AddPost ( Post post, string subforum ) : bool
AddReply ( Post reply, Postkey postKey ) : bool
AddSubforum ( Subforum subforum ) : bool
AddUser ( User user ) : bool
ChangeAdmin ( User newAdmin, User oldAdmin ) : bool
CleanForumData ( ) : void
DataManager ( ) : System
EditPost ( Post postToUpdate, Postkey oldPostKey ) : 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
GetPostEntity ( Postkey postkey ) : IEnumerable
GetPostKeyEntity ( Postkey postkey ) : IEnumerable
GetSubforum ( SubforumEntity subforumEntity ) : Subforum
PostEntityToPost ( PostEntity pe ) : Post

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 postKey ) : bool
reply ForumShared.SharedDataTypes.Post
postKey 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

ChangeAdmin() public method

public ChangeAdmin ( User newAdmin, User oldAdmin ) : bool
newAdmin ForumServer.DataTypes.User
oldAdmin ForumServer.DataTypes.User
return bool

CleanForumData() public method

public CleanForumData ( ) : void
return void

DataManager() public method

public DataManager ( ) : System
return System

EditPost() public method

public EditPost ( Post postToUpdate, Postkey oldPostKey ) : bool
postToUpdate ForumShared.SharedDataTypes.Post
oldPostKey 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