Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::laser::guiplatform::user::helpers::UserHandler Class Reference

Inheritance diagram for cern::laser::guiplatform::user::helpers::UserHandler:

Inheritance graph
[legend]
Collaboration diagram for cern::laser::guiplatform::user::helpers::UserHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

cern.laser.console.User createUser (String name, String password) throws LaserConsoleException
cern.laser.console.User getUser (String name) throws LaserConsoleException
Collection getUsers () throws LaserConsoleException
void removeUser (String name) throws LaserConsoleException

Static Public Member Functions

cern.laser.console.UserHandler get ()

Private Member Functions

 UserHandler ()

Static Private Attributes

final Logger logger
final int userCounter = 6
final int confCounter = 5
final String userName = "bartek"
final String confName = "config"
List userList = null
cern.laser.guiplatform.user.helpers.UserHandler INSTANCE = null

Detailed Description

This class is only for simulating bussines layer. In the future is should be changed.

Author:
pawlowsk


Constructor & Destructor Documentation

cern::laser::guiplatform::user::helpers::UserHandler::UserHandler  )  [inline, private]
 

Creates a new instance of UserHandler


Member Function Documentation

cern.laser.console.User cern::laser::guiplatform::user::helpers::UserHandler::createUser String  name,
String  password
throws LaserConsoleException [inline, virtual]
 

Factory method. Define a new alarm console user.

Parameters:
name the user name.
password the user password.
Returns:
a new alarm console user instance.
Exceptions:
LaserConsoleException if the request can not be served.
LaserUserDuplicationException if the user already exists.

Implements cern::laser::console::UserHandler.

cern.laser.console.UserHandler cern::laser::guiplatform::user::helpers::UserHandler::get  )  [inline, static]
 

Factory method.

Returns:
an instance of the implementation class
Exceptions:
LaserConsoleException if the request can not be served

Reimplemented from cern::laser::console::UserHandler.

cern.laser.console.User cern::laser::guiplatform::user::helpers::UserHandler::getUser String  name  )  throws LaserConsoleException [inline, virtual]
 

Get the user by its name.

Parameters:
name the user name.
Returns:
the alarm console user .
Exceptions:
LaserConsoleException if the request can not be served.
LaserUserNotFoundException if the user does not exist.

Implements cern::laser::console::UserHandler.

Collection cern::laser::guiplatform::user::helpers::UserHandler::getUsers  )  throws LaserConsoleException [inline, virtual]
 

Get all the defined alarm console users.

Returns:
defined alarm console users.
Exceptions:
LaserConsoleException if the request can not be served.

Implements cern::laser::console::UserHandler.

void cern::laser::guiplatform::user::helpers::UserHandler::removeUser String  name  )  throws LaserConsoleException [inline, virtual]
 

Remove an alarm console user.

Parameters:
name the name of the user to remove.
Exceptions:
LaserConsoleException if the request can not be served.
LaserUserNotFoundException if the user does not exist.

Implements cern::laser::console::UserHandler.


Member Data Documentation

final int cern::laser::guiplatform::user::helpers::UserHandler::confCounter = 5 [static, private]
 

final String cern::laser::guiplatform::user::helpers::UserHandler::confName = "config" [static, private]
 

cern.laser.guiplatform.user.helpers.UserHandler cern::laser::guiplatform::user::helpers::UserHandler::INSTANCE = null [static, private]
 

final Logger cern::laser::guiplatform::user::helpers::UserHandler::logger [static, private]
 

Initial value:

Logger.getLogger(UserHandler.class.getName())
logger for that class

final int cern::laser::guiplatform::user::helpers::UserHandler::userCounter = 6 [static, private]
 

List cern::laser::guiplatform::user::helpers::UserHandler::userList = null [static, private]
 

final String cern::laser::guiplatform::user::helpers::UserHandler::userName = "bartek" [static, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:35 2009 for ACS Java API by doxygen 1.3.8