1 /*****************************************************************************
5 * Creation date 29.10.2012
8 *****************************************************************************/
10 package org.splat.dal.bo.som;
12 import java.util.Date;
14 import org.splat.dal.bo.kernel.Any;
15 import org.splat.dal.bo.kernel.TextAttribute;
16 import org.splat.dal.bo.kernel.User;
19 * User comment attached to a particular step.
22 public class StepCommentAttribute extends TextAttribute {
25 * The date the comment was made.
29 * Step the step to which the correspond to.
31 private Integer _step;
33 * the user who made the comment.
37 * The title of the the comment.
39 private String _title;
42 * Database fetch constructor.
44 public StepCommentAttribute() {
49 * Constructor with all necessary parameters.
50 * @param from owner of the comment, a project element
51 * @param value the text of the comment
52 * @param date the date
53 * @param step the step
54 * @param user the user
55 * @param title the title
57 public StepCommentAttribute(final Any from, final String value, final Date date,
58 final Integer step, final User user, final String title) {
70 public Date getDate() {
76 * @param date the date to set
78 public void setDate(final Date date) {
86 public Integer getStep() {
92 * @param step the step to set
94 public void setStep(final Integer step) {
102 public User getUser() {
108 * @param user the user to set
110 public void setUser(final User user) {
117 public String getTitle() {
122 * @param title the title to set
124 public void setTitle(final String title) {