1 /*****************************************************************************
5 * Creation date 01.11.2012
8 *****************************************************************************/
10 package org.splat.service.dto;
12 import java.util.Date;
15 * DTO for step comments.
19 public class StepCommentDTO {
21 * ID of the comment in the data base.
25 * The text of the comment itself.
29 * ID of the project element containing the step.
31 private Long _projectElementId;
33 * Number of step to which the comment is attached.
35 private Integer _step;
37 * The date on which the comment was made.
41 * Name of the user who made the comment.
43 private String _userName;
45 * Id of the user who made the comment.
49 * The user who made the comment.
51 private UserDTO _user;
53 * The title of the the comment.
55 private String _title;
58 * Default constructor.
60 public StepCommentDTO() {
65 * Constructor from all properties.* Constructor from all properties.
67 * @param text the text of the comment
68 * @param projectElementId the id
69 * @param step the step number
70 * @param date the date
71 * @param userId the user id
72 * @param userName the user name
73 * @param title the title
75 public StepCommentDTO(final Long id, final String text, final Long projectElementId, final Integer step,
76 final Date date, final Long userId, final String userName, final String title) {
79 _projectElementId = projectElementId;
96 * @param id the id to set
98 public void setId(final Long id) {
105 public String getText() {
110 * @param text the text to set
112 public void setText(final String text) {
116 * Get the projectElementID.
117 * @return the projectElementID
119 public Long getProjectElementId() {
120 return _projectElementId;
123 * Set the projectElementID.
124 * @param projectElementId the projectElementId to set
126 public void setProjectElementId(final Long projectElementId) {
127 _projectElementId = projectElementId;
133 public Integer getStep() {
138 * @param step the step to set
140 public void setStep(final Integer step) {
147 public Date getDate() {
152 * @param date the date to set
154 public void setDate(final Date date) {
159 * @return the userName
161 public String getUserName() {
166 * @param userName the userName to set
168 public void setUserName(final String userName) {
169 _userName = userName;
175 public Long getUserId() {
180 * @param userId the userId to set
182 public void setUserId(final Long userId) {
189 public UserDTO getUser() {
194 * @param user the user to set
196 public void setUser(final UserDTO user) {
203 public String getTitle() {
208 * @param title the title to set
210 public void setTitle(final String title) {
215 * Get the id. Used with this name in menupopup.jsp.
218 public Long getIndex() {