comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultUser.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultUser.java@821a02bbfb4e
children d2db1f80183d
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 /*
2 * Copyright (c) 2011 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8 package org.dive4elements.river.client.shared.model;
9
10
11 /**
12 * Trivial implementation of a user. Useful to be subclassed.
13 *
14 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
15 */
16 public class DefaultUser
17 implements User
18 {
19 /** The identifier of the user.*/
20 protected String identifier;
21
22 /** The name of the user.*/
23 protected String name;
24
25
26 /**
27 * The default constructor.
28 */
29 public DefaultUser() {
30 }
31
32
33 /**
34 * A constructor that creates a new user.
35 *
36 * @param identifier The uuid of the user.
37 * @param name The name of the user.
38 */
39 public DefaultUser(String identifier, String name) {
40 this.identifier = identifier;
41 this.name = name;
42 }
43
44
45 /**
46 * Returns the identifier of this user.
47 *
48 * @return the identifier of this user.
49 */
50 public String identifier() {
51 return identifier;
52 }
53
54
55 /**
56 * Returns the name of the user.
57 *
58 * @return the name of the user.
59 */
60 public String getName() {
61 return name;
62 }
63
64
65 /**
66 * Set the identifier of the user.
67 *
68 * @param identifier The new identifier.
69 */
70 public void setIdentifier(String identifier) {
71 this.identifier = identifier;
72 }
73
74
75 /**
76 * Set the name of the user.
77 *
78 * @param name The name for this user.
79 */
80 public void setName(String name) {
81 this.name = name;
82 }
83 }
84 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org