Files
Orchard/src/Orchard.Web/Modules/Orchard.Comments/Services/ICommentService.cs
Sebastien Ros d945a8eaf1 Adding Approve, Delete and Moderate GET actions driven by tokens
Allow comments tokens to be chained with Text ones (HtmlEncode, ...)

--HG--
branch : 1.x
2013-03-06 14:34:07 -08:00

23 lines
1.1 KiB
C#

using System;
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);
void ApproveComment(int commentId);
void UnapproveComment(int commentId);
void DeleteComment(int commentId);
bool CommentsDisabledForCommentedContent(int id);
void DisableCommentsForCommentedContent(int id);
void EnableCommentsForCommentedContent(int id);
bool DecryptNonce(string nonce, out int id);
string CreateNonce(CommentPart comment, TimeSpan delay);
}
}