public interface ICommentsListProvider
Modifier and Type | Method and Description |
---|---|
String |
addComment(String text,
boolean isHtml,
List<org.apache.commons.fileupload.FileItem> attachments)
Adds new comment
|
boolean |
canCreateComment()
If current user could create new comments
|
boolean |
canDeleteComment(String commentID)
If current user could delete specific comment
|
boolean |
canUpdateComment(String commentID)
If current user could update specific comment
|
void |
deleteComment(String commentID)
Deletes specified comment
|
ICommentEntry[] |
getCommentsList()
Returns list of all comments
|
String |
getContainerID()
Returns containerID for the comments list
|
void |
refresh()
Refreshes content of the provider
|
void |
setContainerID(String containerID)
Sets containerID for this comments list
|
void |
updateComment(String commendID,
String text,
List<org.apache.commons.fileupload.FileItem> attachments,
List<String> deleteAttachments)
Updates an existing comment
|
String getContainerID()
void setContainerID(String containerID) throws Exception
Exception
boolean canCreateComment() throws Exception
Exception
boolean canDeleteComment(String commentID) throws Exception
Exception
boolean canUpdateComment(String commentID) throws Exception
Exception
ICommentEntry[] getCommentsList() throws Exception
Exception
void deleteComment(String commentID) throws Exception
Exception
String addComment(String text, boolean isHtml, List<org.apache.commons.fileupload.FileItem> attachments) throws Exception
text
- comment textisHtml
- if text is in HTML formatattachments
- list of attachmentsException
void updateComment(String commendID, String text, List<org.apache.commons.fileupload.FileItem> attachments, List<String> deleteAttachments) throws Exception
commendID
- commentID to updatetext
- new text for commentattachments
- list of new or updates attachmentsdeleteAttachments
- list of deleted attachments (by name)Exception
void refresh()