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.user;
021
022import java.util.Date;
023
024/**
025 * @since 3.0
026 */
027public final class AuthorDto {
028
029  private Long id;
030  private Long personId;
031  private String login;
032  private Date createdAt;
033  private Date updatedAt;
034
035  public Long getId() {
036    return id;
037  }
038
039  public AuthorDto setId(Long id) {
040    this.id = id;
041    return this;
042  }
043
044  public Long getPersonId() {
045    return personId;
046  }
047
048  public AuthorDto setPersonId(Long personId) {
049    this.personId = personId;
050    return this;
051  }
052
053  public String getLogin() {
054    return login;
055  }
056
057  public AuthorDto setLogin(String login) {
058    this.login = login;
059    return this;
060  }
061
062  public Date getCreatedAt() {
063    return createdAt;//NOSONAR May expose internal representation by returning reference to mutable object
064  }
065
066  public AuthorDto setCreatedAt(Date createdAt) {
067    this.createdAt = createdAt;// NOSONAR May expose internal representation by incorporating reference to mutable object
068    return this;
069  }
070
071  public Date getUpdatedAt() {
072    return updatedAt;//NOSONAR May expose internal representation by returning reference to mutable object
073  }
074
075  public AuthorDto setUpdatedAt(Date updatedAt) {
076    this.updatedAt = updatedAt;// NOSONAR May expose internal representation by incorporating reference to mutable object
077    return this;
078  }
079
080}