project35.soa.security
Class User

java.lang.Object
  extended by project35.soa.security.User
Direct Known Subclasses:
Guest, SuperUser

public class User
extends java.lang.Object

holds information about an end-user. Used in conjunction with a security service to control an end-user's access to features.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
static User GUEST
           
protected  java.lang.String ID
           
protected  java.lang.String password
           
static User SUPER_USER
           
 
Constructor Summary
User()
           
User(java.lang.String ID, java.lang.String password)
           
 
Method Summary
 java.lang.String getID()
          Get the value of ID.
 java.lang.String getIpAddress()
          Get the value of ipAddress.
 java.lang.String getOrganisation()
          Get the value of organisation.
 java.lang.String getPassword()
          Get the value of password.
 void setID(java.lang.String ID)
          Set the value of ID.
 void setIpAddress(java.lang.String ipAddress)
          Set the value of ipAddress.
 void setOrganisation(java.lang.String organisation)
          Set the value of organisation.
 void setPassword(java.lang.String password)
          Set the value of password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUEST

public static final User GUEST

SUPER_USER

public static final User SUPER_USER

ID

protected java.lang.String ID

password

protected java.lang.String password
Constructor Detail

User

public User()

User

public User(java.lang.String ID,
            java.lang.String password)
Method Detail

setID

public void setID(java.lang.String ID)
Set the value of ID.

Parameters:
ID - Value to assign to ID.

setPassword

public void setPassword(java.lang.String password)
Set the value of password.

Parameters:
password - Value to assign to password.

setOrganisation

public void setOrganisation(java.lang.String organisation)
Set the value of organisation.

Parameters:
organisation - Value to assign to organisation.

setIpAddress

public void setIpAddress(java.lang.String ipAddress)
Set the value of ipAddress.

Parameters:
ipAddress - Value to assign to ipAddress.

getID

public java.lang.String getID()
Get the value of ID.

Returns:
value of ID.

getPassword

public java.lang.String getPassword()
Get the value of password.

Returns:
value of password.

getOrganisation

public java.lang.String getOrganisation()
Get the value of organisation.

Returns:
value of organisation.

getIpAddress

public java.lang.String getIpAddress()
Get the value of ipAddress.

Returns:
value of ipAddress.