Uses of Class
org.silverpeas.core.webapi.comment.CommentEntity
-
Packages that use CommentEntity Package Description org.silverpeas.core.webapi.comment Provides the REST web service that handle requests about comments on a given resource in published in Silverpeas. -
-
Uses of CommentEntity in org.silverpeas.core.webapi.comment
Methods in org.silverpeas.core.webapi.comment that return CommentEntity Modifier and Type Method Description protected CommentEntity[]
CommentResource. asWebEntities(List<Comment> comments)
Converts the specified list of comments into their corresponding web entities.protected CommentEntity
CommentResource. asWebEntity(Comment comment, URI commentURI)
Converts the comment into its corresponding web entity.static CommentEntity
CommentEntity. fromComment(Comment comment)
Creates a new comment entity from the specified comment.CommentEntity[]
CommentResource. getAllComments()
Gets the JSON representation of all the comments on refered the resource.CommentEntity
CommentResource. getComment(String onCommentId)
Gets the JSON representation of the specified existing comment.CommentEntity
CommentEntity. newText(String aText)
Changes the text of this comment by the specified one.CommentEntity
CommentResource. updateComment(String commentId, CommentEntity commentToUpdate)
Updates the comment from its JSON representation and returns it once updated.CommentEntity
CommentEntity. withCurrentUserLanguage(String currentUserLanguage)
Sets a currentUserLanguage to this entity.CommentEntity
CommentEntity. withURI(URI uri)
Sets a URI to this entity.Methods in org.silverpeas.core.webapi.comment that return types with arguments of type CommentEntity Modifier and Type Method Description static List<CommentEntity>
CommentEntity. fromComments(List<Comment> comments)
Creates several new comment entities from the specified list of comments.static List<CommentEntity>
CommentEntity. fromComments(Comment... comments)
Creates several new comment entities from the specified comments.Methods in org.silverpeas.core.webapi.comment with parameters of type CommentEntity Modifier and Type Method Description protected void
CommentResource. checkIsValid(CommentEntity theComment)
Check the specified comment is valid.javax.ws.rs.core.Response
CommentResource. saveNewComment(CommentEntity commentToSave)
Creates a new comment from its JSON representation and returns it with its URI identifying it in Silverpeas.CommentEntity
CommentResource. updateComment(String commentId, CommentEntity commentToUpdate)
Updates the comment from its JSON representation and returns it once updated.
-