Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members

agents.sam.SamImpl Class Reference

Inherits interfaces.SamPOA.

Inheritance diagram for agents.sam.SamImpl:

[legend]
Collaboration diagram for agents.sam.SamImpl:
[legend]
List of all members.

Public Member Functions

 SamImpl ()
void run ()
boolean autenticate (String userName, String password)
int register (String userName, String password)
int unregister (String userName)
String[] getAllUserRegistred ()
int updatePassword (String user, String password)
String getPassword (String userName)

Static Public Member Functions

static void main (String args[])

Private Member Functions

String getChildTagValue (Element elem, String tagName)
int storeUser (String userName, String password)
int unstoreUser (String userName)
boolean isUserStored (String userName)
Node createUserXML (String password)
String createUserInfo (Node node)

Private Attributes

Collection col = null
final String myFileIor = "sam.ior"
DocumentBuilder db = null
String magConfFile = "../../../mag.conf"

Detailed Description

Author:
stanley
TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates


Constructor & Destructor Documentation

agents.sam.SamImpl.SamImpl  ) 
 


Member Function Documentation

boolean agents.sam.SamImpl.autenticate String  userName,
String  password
 

It is responsible for legalizing the user

Parameters:
userName - Name of user .
password - password
Returns:
true/false

String agents.sam.SamImpl.createUserInfo Node  node  )  [private]
 

Node agents.sam.SamImpl.createUserXML String  password  )  [private]
 

String [] agents.sam.SamImpl.getAllUserRegistred  ) 
 

Implements interfaces.SamOperations.

String agents.sam.SamImpl.getChildTagValue Element  elem,
String  tagName
[private]
 

String agents.sam.SamImpl.getPassword String  userName  ) 
 

boolean agents.sam.SamImpl.isUserStored String  userName  )  [private]
 

static void agents.sam.SamImpl.main String  args[]  )  [static]
 

int agents.sam.SamImpl.register String  userName,
String  password
 

void agents.sam.SamImpl.run  ) 
 

int agents.sam.SamImpl.storeUser String  userName,
String  password
[private]
 

int agents.sam.SamImpl.unregister String  userName  ) 
 

int agents.sam.SamImpl.unstoreUser String  userName  )  [private]
 

int agents.sam.SamImpl.updatePassword String  user,
String  password
 


Member Data Documentation

Collection agents.sam.SamImpl.col = null [private]
 

DocumentBuilder agents.sam.SamImpl.db = null [private]
 

String agents.sam.SamImpl.magConfFile = "../../../mag.conf" [private]
 

final String agents.sam.SamImpl.myFileIor = "sam.ior" [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Feb 17 09:37:57 2006 for MAG by  doxygen 1.4.4