01: /*
02: * Enhydra Java Application Server Project
03: *
04: * The contents of this file are subject to the Enhydra Public License
05: * Version 1.1 (the "License"); you may not use this file except in
06: * compliance with the License. You may obtain a copy of the License on
07: * the Enhydra web site ( http://www.enhydra.org/ ).
08: *
09: * 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: package com.lutris.appserver.server.user;
24:
25: /**
26: * UserImpl object<P>
27: *
28: * User objects are compared in many places, <CODE>equals</CODE> must
29: * be work correctly for the particular implementation.
30: *
31: */
32: public class UserImpl implements User {
33: private String name = null;
34:
35: public UserImpl(String userName) {
36: this .name = userName;
37: }
38:
39: /**
40: * Get user name associated with the object. The user name
41: * is assumed to be a unizue identifier for the user.
42: *
43: * @return
44: * the user name that uniquely identifies the user.
45: */
46: public String getName() {
47: return this .name;
48: }
49:
50: /**
51: * Set user name associated with the object. The user name
52: * is assumed to be a unizue identifier for the user.
53: */
54: public void setName(String userName) {
55: this.name = userName;
56: }
57: }
|