Add a temporary hard-coded notice for the extended token validity period. This should...
[pithos] / gss / src / gr / ebs / gss / server / domain / dto / UserClassDTO.java
1 /*
2  * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.
3  *
4  * This file is part of GSS.
5  *
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.
10  *
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.
15  *
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/>.
18  */
19 package gr.ebs.gss.server.domain.dto;
20
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
24
25 /**
26  * A group of users with common attributes.
27  *
28  * @author droutsis
29  */
30 public class UserClassDTO implements Serializable {
31
32         /**
33          * The serial version UID of the class.
34          */
35         private static final long serialVersionUID = 1L;
36
37         /**
38          * The persistence ID of the object.
39          */
40         private Long id;
41
42         /**
43          * A name for this class.
44          */
45         private String name;
46
47         /**
48          * The disk quota of this user class.
49          */
50         private long quota;
51
52         /**
53          * The users belonging to this class
54          *
55          */
56         private List<UserDTO> users = new ArrayList<UserDTO>();
57
58         /*
59          * (non-Javadoc)
60          *
61          * @see java.lang.Object#toString()
62          */
63         public String toString() {
64                 return name;
65         }
66
67         /**
68          * Retrieve the id.
69          *
70          * @return the id
71          */
72         public Long getId() {
73                 return id;
74         }
75
76         /**
77          * Modify the id.
78          *
79          * @param newId the id to set
80          */
81         public void setId(final Long newId) {
82                 id = newId;
83         }
84
85         /**
86          * Retrieve the name.
87          *
88          * @return the name
89          */
90         public String getName() {
91                 return name;
92         }
93
94         /**
95          * Modify the name.
96          *
97          * @param newName the name to set
98          */
99         public void setName(final String newName) {
100                 name = newName;
101         }
102
103         /**
104          * Retrieve the quota.
105          *
106          * @return the quota
107          */
108         public long getQuota() {
109                 return quota;
110         }
111
112         /**
113          * Modify the quota.
114          *
115          * @param newQuota the quota to set
116          */
117         public void setQuota(final long newQuota) {
118                 quota = newQuota;
119         }
120
121         /**
122          * Retrieve the users.
123          *
124          * @return the users
125          */
126         public List<UserDTO> getUsers() {
127                 return users;
128         }
129
130         /**
131          * Modify the users.
132          *
133          * @param newUsers the users to set
134          */
135         public void setUsers(final List<UserDTO> newUsers) {
136                 users = newUsers;
137         }
138 }