mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00

- Rearranged the display and added action links. * haven't done anything with the item-specic comment view (Detail action) yet - it might not be necessary now especially since there is no path to it --HG-- branch : dev
23 lines
1.2 KiB
C#
23 lines
1.2 KiB
C#
using Orchard.Comments.Models;
|
|
using Orchard.ContentManagement;
|
|
|
|
namespace Orchard.Comments.Services {
|
|
public interface ICommentService : IDependency {
|
|
IContentQuery<CommentPart, CommentPartRecord> GetComments();
|
|
IContentQuery<CommentPart, CommentPartRecord> GetComments(CommentStatus status);
|
|
IContentQuery<CommentPart, CommentPartRecord> GetCommentsForCommentedContent(int id);
|
|
IContentQuery<CommentPart, CommentPartRecord> GetCommentsForCommentedContent(int id, CommentStatus status);
|
|
CommentPart GetComment(int id);
|
|
ContentItemMetadata GetDisplayForCommentedContent(int id);
|
|
ContentItem GetCommentedContent(int id);
|
|
CommentPart CreateComment(CreateCommentContext commentRecord, bool moderateComments);
|
|
void UpdateComment(int id, string name, string email, string siteName, string commentText, CommentStatus status);
|
|
void ApproveComment(int commentId);
|
|
void UnapproveComment(int commentId);
|
|
void MarkCommentAsSpam(int commentId);
|
|
void DeleteComment(int commentId);
|
|
bool CommentsClosedForCommentedContent(int id);
|
|
void CloseCommentsForCommentedContent(int id);
|
|
void EnableCommentsForCommentedContent(int id);
|
|
}
|
|
} |