C# Class Orchard.Comments.Services.CommentService

Inheritance: ICommentService
Mostrar archivo Open project: ucdavis/Orchard

Public Methods

Method Description
ApproveComment ( int commentId ) : void
CommentService ( IClock clock, ICommentValidator commentValidator, IOrchardServices orchardServices ) : System
CommentsDisabledForCommentedContent ( int id ) : bool
CreateComment ( Orchard.Comments.Services.CreateCommentContext context, bool moderateComments ) : CommentPart
DeleteComment ( int commentId ) : void
DisableCommentsForCommentedContent ( int id ) : void
EnableCommentsForCommentedContent ( int id ) : void
GetComment ( int id ) : CommentPart
GetCommentedContent ( int id ) : Orchard.ContentManagement.ContentItem
GetComments ( ) : CommentPartRecord>.IContentQuery
GetComments ( CommentStatus status ) : CommentPartRecord>.IContentQuery
GetCommentsForCommentedContent ( int id ) : CommentPartRecord>.IContentQuery
GetCommentsForCommentedContent ( int id, CommentStatus status ) : CommentPartRecord>.IContentQuery
GetDisplayForCommentedContent ( int id ) : Orchard.ContentManagement.ContentItemMetadata
MarkCommentAsSpam ( int commentId ) : void
UnapproveComment ( int commentId ) : void
UpdateComment ( int id, string name, string email, string siteName, string commentText, CommentStatus status ) : void

Method Details

ApproveComment() public method

public ApproveComment ( int commentId ) : void
commentId int
return void

CommentService() public method

public CommentService ( IClock clock, ICommentValidator commentValidator, IOrchardServices orchardServices ) : System
clock IClock
commentValidator ICommentValidator
orchardServices IOrchardServices
return System

CommentsDisabledForCommentedContent() public method

public CommentsDisabledForCommentedContent ( int id ) : bool
id int
return bool

CreateComment() public method

public CreateComment ( Orchard.Comments.Services.CreateCommentContext context, bool moderateComments ) : CommentPart
context Orchard.Comments.Services.CreateCommentContext
moderateComments bool
return CommentPart

DeleteComment() public method

public DeleteComment ( int commentId ) : void
commentId int
return void

DisableCommentsForCommentedContent() public method

public DisableCommentsForCommentedContent ( int id ) : void
id int
return void

EnableCommentsForCommentedContent() public method

public EnableCommentsForCommentedContent ( int id ) : void
id int
return void

GetComment() public method

public GetComment ( int id ) : CommentPart
id int
return CommentPart

GetCommentedContent() public method

public GetCommentedContent ( int id ) : Orchard.ContentManagement.ContentItem
id int
return Orchard.ContentManagement.ContentItem

GetComments() public method

public GetComments ( ) : CommentPartRecord>.IContentQuery
return CommentPartRecord>.IContentQuery

GetComments() public method

public GetComments ( CommentStatus status ) : CommentPartRecord>.IContentQuery
status CommentStatus
return CommentPartRecord>.IContentQuery

GetCommentsForCommentedContent() public method

public GetCommentsForCommentedContent ( int id ) : CommentPartRecord>.IContentQuery
id int
return CommentPartRecord>.IContentQuery

GetCommentsForCommentedContent() public method

public GetCommentsForCommentedContent ( int id, CommentStatus status ) : CommentPartRecord>.IContentQuery
id int
status CommentStatus
return CommentPartRecord>.IContentQuery

GetDisplayForCommentedContent() public method

public GetDisplayForCommentedContent ( int id ) : Orchard.ContentManagement.ContentItemMetadata
id int
return Orchard.ContentManagement.ContentItemMetadata

MarkCommentAsSpam() public method

public MarkCommentAsSpam ( int commentId ) : void
commentId int
return void

UnapproveComment() public method

public UnapproveComment ( int commentId ) : void
commentId int
return void

UpdateComment() public method

public UpdateComment ( int id, string name, string email, string siteName, string commentText, CommentStatus status ) : void
id int
name string
email string
siteName string
commentText string
status CommentStatus
return void