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

static
cern.laser.console.UserHandler 
get ()

Private Member Functions

 UserHandler ()

Static Private Attributes

static final Logger logger
static final int userCounter = 6
static final int confCounter = 5
static final String userName = "bartek"
static final String confName = "config"
static List userList = null
static
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

Referenced by get().


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.

static 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.

References INSTANCE, and 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 String cern::laser::guiplatform::user::helpers::UserHandler::confName = "config" [static, private]

Referenced by get().

Initial value:
 
        Logger.getLogger(UserHandler.class.getName())

logger for that class

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

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2