001/*
002 * Sonar, open source software quality management tool.
003 * Copyright (C) 2008-2012 SonarSource
004 * mailto:contact AT sonarsource DOT com
005 *
006 * Sonar is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * Sonar is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public
017 * License along with Sonar; if not, write to the Free Software
018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
019 */
020package org.sonar.core.resource;
021
022import java.util.Date;
023
024public final class SnapshotDto {
025  private Long id;
026  private Long parentId;
027  private Long rootId;
028  
029  private Date date;
030  private Date buildDate;
031  private Long resourceId;
032  private String status;
033  private Integer purgeStatus;
034  private Boolean last;
035  private String scope;
036  private String qualifier;
037  private String version;
038  private String path;
039  private Integer depth;
040  private Long rootProjectId;
041
042  public Long getId() {
043    return id;
044  }
045
046  public SnapshotDto setId(Long id) {
047    this.id = id;
048    return this;
049  }
050
051  public Long getParentId() {
052    return parentId;
053  }
054
055  public SnapshotDto setParentId(Long parentId) {
056    this.parentId = parentId;
057    return this;
058  }
059
060  public Long getRootId() {
061    return rootId;
062  }
063
064  public SnapshotDto setRootId(Long rootId) {
065    this.rootId = rootId;
066    return this;
067  }
068
069  public Date getDate() {
070    return date;//NOSONAR May expose internal representation by returning reference to mutable object
071  }
072
073  public SnapshotDto setDate(Date date) {
074    this.date = date;// NOSONAR May expose internal representation by incorporating reference to mutable object
075    return this;
076  }
077
078  public Date getBuildDate() {
079    return buildDate;//NOSONAR May expose internal representation by returning reference to mutable object
080  }
081
082  public SnapshotDto setBuildDate(Date buildDate) {
083    this.buildDate = buildDate;// NOSONAR May expose internal representation by incorporating reference to mutable object
084    return this;
085  }
086
087  public Long getResourceId() {
088    return resourceId;
089  }
090
091  public SnapshotDto setResourceId(Long resourceId) {
092    this.resourceId = resourceId;
093    return this;
094  }
095
096  public String getStatus() {
097    return status;
098  }
099
100  public SnapshotDto setStatus(String status) {
101    this.status = status;
102    return this;
103  }
104
105  public Integer getPurgeStatus() {
106    return purgeStatus;
107  }
108
109  public SnapshotDto setPurgeStatus(Integer purgeStatus) {
110    this.purgeStatus = purgeStatus;
111    return this;
112  }
113
114  public Boolean getLast() {
115    return last;
116  }
117
118  public SnapshotDto setLast(Boolean last) {
119    this.last = last;
120    return this;
121  }
122
123  public String getScope() {
124    return scope;
125  }
126
127  public SnapshotDto setScope(String scope) {
128    this.scope = scope;
129    return this;
130  }
131
132  public String getQualifier() {
133    return qualifier;
134  }
135
136  public SnapshotDto setQualifier(String qualifier) {
137    this.qualifier = qualifier;
138    return this;
139  }
140
141  public String getVersion() {
142    return version;
143  }
144
145  public SnapshotDto setVersion(String version) {
146    this.version = version;
147    return this;
148  }
149
150  public String getPath() {
151    return path;
152  }
153
154  public SnapshotDto setPath(String path) {
155    this.path = path;
156    return this;
157  }
158
159  public Integer getDepth() {
160    return depth;
161  }
162
163  public SnapshotDto setDepth(Integer depth) {
164    this.depth = depth;
165    return this;
166  }
167
168  public Long getRootProjectId() {
169    return rootProjectId;
170  }
171
172  public SnapshotDto setRootProjectId(Long rootProjectId) {
173    this.rootProjectId = rootProjectId;
174    return this;
175  }
176}