Class CommentItResource.CommentsItem

  • Enclosing class:
    CommentItResource

    public static class CommentItResource.CommentsItem
    extends java.lang.Object
    JAXB object used to represent the CommentItResource.CommentsList of a single item (itemId on a specific CommentIt service instance).
    Since:
    8.0.0
    Version:
    $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentsItem()
      Empty constructor used by the XmlAdapters
      CommentsItem​(java.lang.String serviceInstanceId, java.lang.String itemId, java.util.List<Comment> comments, int totalComments, UriInfo uriInfo, boolean canPostComment)
      Constructor that also initializes the CommentItResource.CommentsList
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommentsItem

        public CommentsItem()
        Empty constructor used by the XmlAdapters
        Since:
        8.0.0
      • CommentsItem

        public CommentsItem​(java.lang.String serviceInstanceId,
                            java.lang.String itemId,
                            java.util.List<Comment> comments,
                            int totalComments,
                            UriInfo uriInfo,
                            boolean canPostComment)
        Constructor that also initializes the CommentItResource.CommentsList
        Parameters:
        serviceInstanceId - The instance identifier for the CommentIt service being use.
        itemId - The item identifier this CommentItResource.CommentsItem represents.
        comments - A list containing the Comment objects
        totalComments - The total amount of comments this item has as given by CommentItManager.getCommentsCount(String itemId, String serviceInstanceId).
        uriInfo - the UriInfo
        Since:
        8.0.0