Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultUser.java @ 3548:fed914a42a10
Merged revisions 5373,5377-5378 via svnmerge from
file:///home/clients/bsh/bsh-generischer-viewer/Material/SVN/flys-client/trunk
........
r5373 | ingo | 2012-09-07 11:21:25 +0200 (Fr, 07 Sep 2012) | 1 line
Tagged 'flys-client' as 2.9
........
r5377 | bricks | 2012-09-07 13:37:00 +0200 (Fr, 07 Sep 2012) | 2 lines
Move RemoteServiceServlet to server package
........
r5378 | bricks | 2012-09-07 13:58:11 +0200 (Fr, 07 Sep 2012) | 4 lines
Refactor UserServiceImpl getCurrentUser method
Return the logged in user in getCurrentUser method.
........
flys-client/tags/2.9@5381 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 07 Sep 2012 12:03:15 +0000 |
parents | 2da6be38d8b6 |
children |
line wrap: on
line source
/* * Copyright (c) 2011 by Intevation GmbH * * This program is free software under the LGPL (>=v2.1) * Read the file LGPL.txt coming with the software for details * or visit http://www.gnu.org/licenses/ if it does not exist. */ package de.intevation.flys.client.shared.model; /** * Trivial implementation of a user. Useful to be subclassed. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class DefaultUser implements User { /** The identifier of the user.*/ protected String identifier; /** The name of the user.*/ protected String name; /** * The default constructor. */ public DefaultUser() { } /** * A constructor that creates a new user. * * @param identifier The uuid of the user. * @param name The name of the user. */ public DefaultUser(String identifier, String name) { this.identifier = identifier; this.name = name; } /** * Returns the identifier of this user. * * @return the identifier of this user. */ public String identifier() { return identifier; } /** * Returns the name of the user. * * @return the name of the user. */ public String getName() { return name; } /** * Set the identifier of the user. * * @param identifier The new identifier. */ public void setIdentifier(String identifier) { this.identifier = identifier; } /** * Set the name of the user. * * @param name The name for this user. */ public void setName(String name) { this.name = name; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :