GWTApplication.client
Class AuthenticationDetails

java.lang.Object
  extended by GWTApplication.client.AuthenticationDetails
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class AuthenticationDetails
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

This is a entity class which is used to carry the authentication data which will be sent back from the server after the user logs onto the system.


Field Summary
 java.lang.String Name
          This is the christian name of the user
 java.util.ArrayList PriviledgeLevels
          These are priviledge levels which is associated with the user.
 java.lang.String Surname
          The surname of the authenticated user
 java.lang.String UserEmailAddress
          This is the users email address
 java.lang.String UserId
          This is the user identifier of the user which he uses to authenticates himself.
 
Constructor Summary
AuthenticationDetails()
          A constructor
 
Method Summary
 boolean hasPriviledgeLevel(java.lang.String DemandedPriviledgeLevel)
          Will be used for ascertaining whether or not a user has a the specific priviledge level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PriviledgeLevels

public java.util.ArrayList PriviledgeLevels
These are priviledge levels which is associated with the user. There are several privilege levels available within the application ranging from guest user to fault database administrator.


UserEmailAddress

public java.lang.String UserEmailAddress
This is the users email address


Name

public java.lang.String Name
This is the christian name of the user


Surname

public java.lang.String Surname
The surname of the authenticated user


UserId

public java.lang.String UserId
This is the user identifier of the user which he uses to authenticates himself.

Constructor Detail

AuthenticationDetails

public AuthenticationDetails()
A constructor

Method Detail

hasPriviledgeLevel

public boolean hasPriviledgeLevel(java.lang.String DemandedPriviledgeLevel)
Will be used for ascertaining whether or not a user has a the specific priviledge level.

Parameters:
DemandedPriviledgeLevel - This is the level of priviledge which we want to know the user reaches.
Returns:
boolean True if the user has this level of priviledge.