cern::laser::console::impl::UserHandlerImpl Class Reference

Inheritance diagram for cern::laser::console::impl::UserHandlerImpl:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::console::impl::UserHandlerImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UserHandlerImpl () throws LaserConsoleException
Collection getUsers () throws LaserConsoleException
User getUser (String name) throws LaserConsoleException
User createUser (String name, String password) throws LaserConsoleException
void removeUser (String name) throws LaserConsoleException

Private Member Functions

Object getConsoleUserEntityEJBHome () throws LaserConnectionException

Private Attributes

UserImpl user
ArrayList users = new ArrayList()

Constructor & Destructor Documentation

cern::laser::console::impl::UserHandlerImpl::UserHandlerImpl (  )  throws LaserConsoleException [inline]

References user, and users.


Member Function Documentation

User cern::laser::console::impl::UserHandlerImpl::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.

Object cern::laser::console::impl::UserHandlerImpl::getConsoleUserEntityEJBHome (  )  throws LaserConnectionException [inline, private]
User cern::laser::console::impl::UserHandlerImpl::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.

References user, and users.

Referenced by alma::alarmsystem::clients::CategoryClient::connect().

Collection cern::laser::console::impl::UserHandlerImpl::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.

References users.

void cern::laser::console::impl::UserHandlerImpl::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

Referenced by getUser(), and UserHandlerImpl().

ArrayList cern::laser::console::impl::UserHandlerImpl::users = new ArrayList() [private]

Referenced by getUser(), getUsers(), and UserHandlerImpl().


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

Generated by  doxygen 1.6.2