cst.common.businessLayer
Class User
java.lang.Object
cst.common.businessLayer.User
- All Implemented Interfaces:
- Displayable, java.lang.Cloneable
public class User
- extends java.lang.Object
- implements Displayable, java.lang.Cloneable
A user of the applications. The user class includes the minimum information needed to
perform security checks and create an audit trail of changes.
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Constructor Summary |
User()
|
User(java.lang.String userID)
|
User(java.lang.String userID,
java.lang.String password)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
systemID
protected int systemID
userID
protected java.lang.String userID
password
protected java.lang.String password
User
public User(java.lang.String userID,
java.lang.String password)
User
public User(java.lang.String userID)
User
public User()
getSystemID
public int getSystemID()
- Returns:
- the systemID
setSystemID
public void setSystemID(int systemID)
- Parameters:
systemID
- the systemID to set
getUserID
public java.lang.String getUserID()
- Returns:
- the id
setUserID
public void setUserID(java.lang.String userID)
- Parameters:
id
- the id to set
getPassword
public java.lang.String getPassword()
- Returns:
- the password
setPassword
public void setPassword(java.lang.String password)
- Parameters:
password
- the password to set
equalsUser
public boolean equalsUser(User user)
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interface Displayable
getDisplayItemIdentifier
public java.lang.String getDisplayItemIdentifier()
- Specified by:
getDisplayItemIdentifier
in interface Displayable
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object