1 /*****************************************************************************
5 * Creation date 20.02.2013
8 * @copyright OPEN CASCADE 2012-2015
9 *****************************************************************************/
11 package org.splat.service.dto;
13 import java.io.Serializable;
14 import java.util.Date;
16 import org.splat.dal.bo.som.ProgressState;
19 * Study DTO class. Used in study search results.
21 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
23 public class StudyDTO implements Proxy, Serializable {
25 * Study persistent id.
27 private transient final Long _rid;
31 private transient final String _sid;
33 * Study progress state.
35 private transient final ProgressState _state;
39 private transient final String _title;
43 private transient final String _name;
47 private transient String _type;
51 private transient Date _date;
53 * Last modification date.
55 private Date _lastModificationDate;
57 * Serialization version id.
59 private static final long serialVersionUID = -4386494192709562221L;
62 * Constructor from properties except for creation and modification dates.
69 * study progress state
73 * study author display name
75 public StudyDTO(final Long id, final String reference,
76 final ProgressState state, final String title, final String author) {
87 * @see org.splat.service.dto.Proxy#getAuthorName()
89 public String getAuthorName() {
96 * @see org.splat.service.dto.Proxy#getIndex()
98 public Long getIndex() {
105 * @see org.splat.service.dto.Proxy#getProgressState()
107 public ProgressState getProgressState() {
114 * @see org.splat.service.dto.Proxy#getReference()
116 public String getReference() {
123 * @see org.splat.service.dto.Proxy#getTitle()
125 public String getTitle() {
132 * @see org.splat.service.dto.Proxy#getType()
134 public String getType() {
142 public Date getDate() {
148 * @param date the date to set
150 public void setDate(final Date date) {
155 * Get the lastModificationDate.
156 * @return the lastModificationDate
158 public Date getLastModificationDate() {
159 return _lastModificationDate;
163 * Set the lastModificationDate.
164 * @param lastModificationDate the lastModificationDate to set
166 public void setLastModificationDate(final Date lastModificationDate) {
167 _lastModificationDate = lastModificationDate;