Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

de.mbohlen.uml2ejb.samples.carrental.admins

Class AdminService


public class AdminService

Can create administrative users of the application and authenticate as such.


 Method Summary
public String   authenticateAsAdministrator(String name , String accountNo , String password )

Authenticates a user as administrator. 

public String   createAdministrator(String name , String accountNo , String password )

Creates a new administrator. 

arrow_up
 

 Method Detail

authenticateAsAdministrator

public String authenticateAsAdministrator(String name , String accountNo , String password )

Authenticates a user as administrator.

When there is no single object of this type in the database, the method creates a new one and stores it. So, be careful to remember the first password that you give!

Parameters:
accountNo - the account number of the potential administrator

password - the password to authenticate

Returns:
a String with the administrator object's id to be kept in the web session

 
arrow_up
 
 

createAdministrator

public String createAdministrator(String name , String accountNo , String password )

Creates a new administrator. Works only if there is no other administrator object in the system.

Parameters:
name - The display name of the new administrator

accountNo - the account number of the potential administrator

password - the password to authenticate

Returns:
a String with the id of the administrator object to be kept in the web session

 
arrow_up
 

Created  2002 - 12 - 7

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.