2 * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.
4 * This file is part of GSS.
6 * GSS is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GSS. If not, see <http://www.gnu.org/licenses/>.
19 package gr.ebs.gss.server.domain.dto;
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
26 * A group of users with common attributes.
30 public class UserClassDTO implements Serializable {
33 * The serial version UID of the class.
35 private static final long serialVersionUID = 1L;
38 * The persistence ID of the object.
43 * A name for this class.
48 * The disk quota of this user class.
53 * The users belonging to this class
56 private List<UserDTO> users = new ArrayList<UserDTO>();
61 * @see java.lang.Object#toString()
63 public String toString() {
79 * @param newId the id to set
81 public void setId(final Long newId) {
90 public String getName() {
97 * @param newName the name to set
99 public void setName(final String newName) {
104 * Retrieve the quota.
108 public long getQuota() {
115 * @param newQuota the quota to set
117 public void setQuota(final long newQuota) {
122 * Retrieve the users.
126 public List<UserDTO> getUsers() {
133 * @param newUsers the users to set
135 public void setUsers(final List<UserDTO> newUsers) {