Uses of Class
com.silverpeas.comment.web.CommentEntity

Packages that use CommentEntity
com.silverpeas.comment.web Provides the REST web service that handle requests about comments on a given resource in published in Silverpeas. 
 

Uses of CommentEntity in com.silverpeas.comment.web
 

Methods in com.silverpeas.comment.web that return CommentEntity
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 com.silverpeas.comment.web that return types with arguments of type CommentEntity
static List<CommentEntity> CommentEntity.fromComments(Comment... comments)
          Creates several new comment entities from the specified comments.
static List<CommentEntity> CommentEntity.fromComments(List<Comment> comments)
          Creates several new comment entities from the specified list of comments.
 

Methods in com.silverpeas.comment.web with parameters of type CommentEntity
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.
 



Copyright © 2016 Silverpeas. All Rights Reserved.