Salome HOME
Copyrights update 2015.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / StepCommentAttribute.java
1 /*****************************************************************************
2  * Company         EURIWARE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   29.10.2012
6  * @author         $Author$
7  * @version        $Revision$
8  *****************************************************************************/
9
10 package org.splat.dal.bo.som; 
11
12 import java.util.Date;
13
14 import org.splat.dal.bo.kernel.Any;
15 import org.splat.dal.bo.kernel.TextAttribute;
16 import org.splat.dal.bo.kernel.User;
17
18 /**
19  * User comment attached to a particular step.
20  * 
21  */
22 public class StepCommentAttribute extends TextAttribute {
23
24     /**
25          * The date the comment was made.
26          */
27     private Date _date;
28     /**
29          * Step the step to which the correspond to.
30          */
31     private Integer _step;
32     /**
33          * the user who made the comment.
34          */
35     private User _user;
36     /**
37      * The title of the the comment.
38      */
39     private String _title;
40
41         /**
42          * Database fetch constructor.
43          */
44         public StepCommentAttribute() {
45                 super();
46         }
47
48         /**
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
56          */
57         public StepCommentAttribute(final Any from, final String value, final Date date,
58                                                                 final Integer step, final User user, final String title) {
59                 super(from, value);
60                 _date = date;
61                 _step = step;
62                 _user = user;
63                 _title = title;
64         }
65
66         /**
67          * Get the date.
68          * @return the date
69          */
70         public Date getDate() {
71                 return _date;
72         }
73
74         /**
75          * Set the date.
76          * @param date the date to set
77          */
78         public void setDate(final Date date) {
79                 _date = date;
80         }
81
82         /**
83          * Get the step.
84          * @return the step
85          */
86         public Integer getStep() {
87                 return _step;
88         }
89
90         /**
91          * Set the step.
92          * @param step the step to set
93          */
94         public void setStep(final Integer step) {
95                 _step = step;
96         }
97
98         /**
99          * Get the user.
100          * @return the user
101          */
102         public User getUser() {
103                 return _user;
104         }
105
106         /**
107          * Set the user.
108          * @param user the user to set
109          */
110         public void setUser(final User user) {
111                 _user = user;
112         }
113         /**
114          * Get the title.
115          * @return the title
116          */
117         public String getTitle() {
118                 return _title;
119         }
120         /**
121          * Set the title.
122          * @param title the title to set
123          */
124         public void setTitle(final String title) {
125                 _title = title;
126         }
127 }