Class Comment


  • public class Comment
    extends Object
    A comment posted by an user about some entity.
    Since:
    8.0.0
    Version:
    $Revision: 17049 $ $Date: 2015-03-03 11:26:53 -0300 (Tue, 03 Mar 2015) $
    • Field Detail

      • NAMED_QUERY_FIND_COMMENTS_BY_ITEMID

        protected static final String NAMED_QUERY_FIND_COMMENTS_BY_ITEMID
        See Also:
        Constant Field Values
      • NAMED_QUERY_DELETE_COMMENTS_BY_SERVICEINSTANCEID

        protected static final String NAMED_QUERY_DELETE_COMMENTS_BY_SERVICEINSTANCEID
        See Also:
        Constant Field Values
      • NAMED_QUERY_FIND_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID

        protected static final String NAMED_QUERY_FIND_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
        See Also:
        Constant Field Values
      • NAMED_QUERY_FIND_COUNT_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID

        protected static final String NAMED_QUERY_FIND_COUNT_COMMENTS_BY_ITEMID_AND_SERVICEINSTANCEID
        See Also:
        Constant Field Values
    • Constructor Detail

      • Comment

        public Comment()
    • Method Detail

      • getId

        public String getId()
        Returns this comment's identifier.
        Returns:
        this comment's identifier.
        Since:
        8.0.0
      • setId

        public void setId​(String id)
        Sets this comment's identifier.
        Parameters:
        id - the identifier value to set.
        Since:
        8.0.0
      • getServiceInstanceId

        public String getServiceInstanceId()
        Returns the identifier of the service instance from this comment.
        Returns:
        the identifier of the service instance from this comment.
        Since:
        8.0.0
      • setServiceInstanceId

        public void setServiceInstanceId​(String serviceInstanceId)
        Sets the identifier of the service instance from this comment.
        Parameters:
        serviceInstanceId - the service instance identifier value to set.
        Since:
        8.0.0
      • getItemId

        public String getItemId()
        Returns the identifier of the entity which this comment is related.
        Returns:
        the the identifier of the entity which this comment is related.
        Since:
        8.0.0
      • setItemId

        public void setItemId​(String itemId)
        Sets the identifier of the entity which this comment is related.
        Parameters:
        itemId - the entity's identifier value to set.
        Since:
        8.0.0
      • getItemName

        public String getItemName()
        Returns the title of the entity which this comment is related.
        Returns:
        the title of the entity which this comment is related.
        Since:
        8.0.0
      • setItemName

        public void setItemName​(String itemName)
        Sets the title of the entity which this comment is related.
        Parameters:
        itemName - the entity's title value to set.
        Since:
        8.0.0
      • getItemServiceInstanceId

        public String getItemServiceInstanceId()
        Returns the identifier of the service instance from the entity which this comment is related.
        Returns:
        the identifier of the service instance from the entity which this comment is related.
        Since:
        8.0.0
      • setItemServiceInstanceId

        public void setItemServiceInstanceId​(String itemServiceInstanceId)
        Sets the identifier of the service instance from the entity which this comment is related.
        Parameters:
        itemServiceInstanceId - the entity's service instance identifier value to set.
        Since:
        8.0.0
      • getItemUrl

        public String getItemUrl()
        Returns the URL to the details page of entity which this comment is related.
        Returns:
        the URL to the details page of entity which this comment is related.
        Since:
        8.0.0
      • setItemUrl

        public void setItemUrl​(String itemUrl)
        Sets the URL to the details page of entity which this comment is related.
        Parameters:
        itemUrl - the entity's details page URL value to set.
        Since:
        8.0.0
      • getCommentText

        public String getCommentText()
        Returns this comment's text.
        Returns:
        this comment's text.
        Since:
        8.0.0
      • setCommentText

        public void setCommentText​(String commentText)
        Sets this comment's text.
        Parameters:
        commentText - the text value to set.
        Since:
        8.0.0
      • getCommentDate

        public Date getCommentDate()
        Returns this comment's creation date.
        Returns:
        this comment's creation date.
        Since:
        8.0.0
      • getUserId

        public String getUserId()
        Returns the identifier of the user which created this comment.
        Returns:
        the identifier of the user which created this comment.
        Since:
        8.0.0
      • setUserId

        public void setUserId​(String userId)
        Sets the identifier of the user which created this comment.
        Parameters:
        userId - the user's identifier value to set.
        Since:
        8.0.0