This interface enables comments to be created on a content type.
ICommentableContentType
is defined in the Telligent.Evolution.Extensibility.Content.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface ICommentableContentType : IContentType, IPlugin { bool CanCreateComment(Guid contentId, int userId); bool CanDeleteComment(Guid commentId, int userId); bool CanModifyComment(Guid commentId, int userId); bool CanReadComment(Guid commentId, int userId); }
Methods
bool CanCreateComment(Guid contentId, int userId);
Returns true if the user can comment on the specified content. False if not.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
userId | int | User Id | Required |
Return Type
bool
bool CanDeleteComment(Guid commentId, int userId);
Returns true if the user can delete the comment. False if not.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Comment Id | Required | ||
userId | int | User Id | Required |
Return Type
bool
bool CanModifyComment(Guid commentId, int userId);
Returns true if the user can modify the comment. False if not.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Comment Id | Required | ||
userId | int | User Id | Required |
Return Type
bool
bool CanReadComment(Guid commentId, int userId);
Returns true if the user can read the comment. False if not.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Comment Id | Required | ||
userId | int | User Id | Required |
Return Type
bool