org.mega.gasp.platform.impl
Class ActorImpl

java.lang.Object
  extended byorg.mega.gasp.platform.impl.ActorImpl
All Implemented Interfaces:
Actor

public class ActorImpl
extends java.lang.Object
implements Actor

Actor represents the link between an application and a user. The Actor ID is generated at the first login in the application, it is permanent and stored in the DataBase on server side, it is also stored on client side. This Actor ID is generated only if the user have the required rigths to the application.

Author:
PELLERIN Romain (pellerin@cnam.fr) - MEGA Project

Field Summary
private  int actorID
           
private  int appID
           
private  java.lang.String name
           
private  java.lang.String pseudo
           
private  boolean pseudoModified
           
private  java.lang.String pwd
           
 
Constructor Summary
ActorImpl(int aID, int applicationID, java.lang.String username, java.lang.String password, java.lang.String lastUsedPseudo)
           
 
Method Summary
 int getActorID()
          Returns the Actor ID.
 int getApplicationID()
          Returns the Application ID associated.
 java.lang.String getPassword()
          Returns the the password of the actor.
 java.lang.String getPseudoName()
          Returns the current pseudo name of the user session.
 java.lang.String getUsername()
          Returns the username of the actor.
 boolean isPseudoHasModified()
          Tells if the pseudo has modified during the session.
 void setPseudoName(java.lang.String name)
          Set the current pseudo name of the user session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actorID

private int actorID

appID

private int appID

name

private java.lang.String name

pwd

private java.lang.String pwd

pseudo

private java.lang.String pseudo

pseudoModified

private boolean pseudoModified
Constructor Detail

ActorImpl

public ActorImpl(int aID,
                 int applicationID,
                 java.lang.String username,
                 java.lang.String password,
                 java.lang.String lastUsedPseudo)
Method Detail

getActorID

public int getActorID()
Returns the Actor ID.

Specified by:
getActorID in interface Actor
Returns:
the Actor ID

getApplicationID

public int getApplicationID()
Returns the Application ID associated.

Specified by:
getApplicationID in interface Actor
Returns:
the Application ID

getUsername

public java.lang.String getUsername()
Returns the username of the actor.

Specified by:
getUsername in interface Actor
Returns:
username

getPassword

public java.lang.String getPassword()
Returns the the password of the actor.

Specified by:
getPassword in interface Actor
Returns:
password

getPseudoName

public java.lang.String getPseudoName()
Returns the current pseudo name of the user session.

Specified by:
getPseudoName in interface Actor
Returns:
the ActorSession ID

setPseudoName

public void setPseudoName(java.lang.String name)
Set the current pseudo name of the user session.

Specified by:
setPseudoName in interface Actor

isPseudoHasModified

public boolean isPseudoHasModified()
Tells if the pseudo has modified during the session.

Specified by:
isPseudoHasModified in interface Actor