KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > cap > JDOAdminUser


1 /*
2  * Created on 29 oct. 2004
3  */

4 package org.objectweb.speedo.pobjects.cap;
5
6 import java.util.Collection JavaDoc;
7
8
9 /**
10  * @author mhoudu
11  */

12 public class JDOAdminUser {
13
14     /** the user identifier */
15     private String JavaDoc id;
16     
17     /** the user login */
18     private String JavaDoc login;
19     
20     /** the user email */
21     private String JavaDoc email;
22     
23     /** the user roles */
24     private Collection JavaDoc roles;
25     
26     /**
27      * Default constructor.
28      * @param id The user identifier.
29      * @param login The user login.
30      * @param email The user email.
31      * @param roles The user roles.
32      */

33     public JDOAdminUser(
34             String JavaDoc id,
35             String JavaDoc login,
36             String JavaDoc email,
37             Collection JavaDoc roles)
38     {
39         this.id = id;
40         this.login = login;
41         this.email = email;
42         this.roles = roles;
43     }
44     
45     /**
46      * Gets the id.
47      * @return Returns the id.
48      */

49     public String JavaDoc getId()
50     {
51         return id;
52     }
53     
54     /**
55      * Sets the id.
56      * @param id The id to set.
57      */

58     public void setId(String JavaDoc id)
59     {
60         this.id = id;
61     }
62
63     /**
64      * Gets the login.
65      * @return Returns the login.
66      */

67     public String JavaDoc getLogin()
68     {
69         return login;
70     }
71     
72     /**
73      * Sets the login.
74      * @param login The login to set.
75      */

76     public void setLogin(String JavaDoc login)
77     {
78         this.login = login;
79     }
80     
81     /**
82      * Gets the email.
83      * @return Returns the email.
84      */

85     public String JavaDoc getEmail()
86     {
87         return email;
88     }
89
90     /**
91      * Sets the email.
92      * @param email The email to set.
93      */

94     public void setEmail(String JavaDoc email)
95     {
96         this.email = email;
97     }
98
99     /**
100      * Gets the roles.
101      * @return Returns the roles.
102      */

103     public Collection JavaDoc getRoles()
104     {
105         return roles;
106     }
107     
108     /**
109      * Sets the roles.
110      * @param roles The roles to set.
111      */

112     public void setRoles(Collection JavaDoc roles)
113     {
114         this.roles = roles;
115     }
116
117 }
Popular Tags