KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > server > user > UserImpl


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  *
19  * Contributor(s):
20  * Slobodan Vujasinovic
21  */

22
23
24
25
26
27 package com.lutris.appserver.server.user;
28
29 /**
30  * UserImpl object<P>
31  *
32  * User objects are compared in many places, <CODE>equals</CODE> must
33  * be work correctly for the particular implementation.
34  *
35  */

36 public class UserImpl implements User {
37     private String JavaDoc name = null;
38     
39     public UserImpl (String JavaDoc userName){
40      this.name = userName;
41     }
42     
43     /**
44      * Get user name associated with the object. The user name
45      * is assumed to be a unizue identifier for the user.
46      *
47      * @return
48      * the user name that uniquely identifies the user.
49      */

50     public String JavaDoc getName(){
51         return this.name;
52     }
53     
54     /**
55      * Set user name associated with the object. The user name
56      * is assumed to be a unizue identifier for the user.
57      */

58     public void setName(String JavaDoc userName){
59         this.name=userName;
60     }
61 }
62
63
Popular Tags