cern::laser::console::impl::UserImpl Class Reference

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

List of all members.

Classes

class  LocalConsoleUser

Public Member Functions

 UserImpl (String newUserName) throws LaserConsoleException
String getName () throws LaserConsoleException
void setName (String newName) throws LaserConsoleException
String getPassword () throws LaserConsoleException
void setPassword (String newPassword) throws LaserConsoleException
String getDefaultPrinter () throws LaserConsoleException
void setDefaultPrinter (String newDefaultPrinter) throws LaserConsoleException
Collection getConfigurations () throws LaserConsoleException, LaserConnectionException
Configuration getConfiguration (String name) throws LaserConsoleException, LaserConnectionException
Configuration createConfiguration (String name) throws LaserConsoleException
Configuration createConfiguration (Configuration configuration) throws LaserConsoleException
void removeConfiguration (String name) throws LaserConsoleException
Configuration getDefaultConfiguration () throws LaserConsoleException, LaserConnectionException
void setDefaultConfiguration (String name) throws LaserConsoleException
boolean isDefaultConfiguration (String name) throws LaserConsoleException
String toString ()

Private Member Functions

Object getConsoleConfigurationEntityEJBHome () throws LaserConnectionException
Object getConsoleUserEntityEJB () throws LaserConnectionException, LaserUserNotFoundException

Private Attributes

AlarmService laser
ArrayList configurations = new ArrayList()
LocalConsoleUser user

Constructor & Destructor Documentation

cern::laser::console::impl::UserImpl::UserImpl ( String  newUserName  )  throws LaserConsoleException [inline]

References laser, and user.


Member Function Documentation

Configuration cern::laser::console::impl::UserImpl::createConfiguration ( Configuration  configuration  )  throws LaserConsoleException [inline]

Create a new alarm console configuration for the user using a given configuration.

Parameters:
configuration the configuration to be used to create the new one.
Returns:
the configuration that has been created from the given configuration.
Exceptions:
LaserConsoleException if the request could not be served.
LaserConfigurationDuplicationException if the configuration already exists.

Implements cern::laser::console::User.

Configuration cern::laser::console::impl::UserImpl::createConfiguration ( String  name  )  throws LaserConsoleException [inline]

Create a new alarm console configuration for the user.

Parameters:
name the name of the configuration to create.
Returns:
the configuration that has been created with default values.
Exceptions:
LaserConsoleException if the request could not be served.
LaserConfigurationDuplicationException if the configuration already exists.

Implements cern::laser::console::User.

References getDefaultConfiguration(), cern::laser::console::Configuration::getSelection(), and cern::laser::client::services::selection::Selection::setCategorySelection().

Configuration cern::laser::console::impl::UserImpl::getConfiguration ( String  name  )  throws LaserConsoleException, LaserConnectionException [inline]

Accessor method.

Returns:
the user console configuration.
Parameters:
name the name of the configuration.
Exceptions:
LaserConnectionException if the console cannot connect to the BL
LaserConfigurationNotFoundException if the configuration does not exist.

Implements cern::laser::console::User.

Collection cern::laser::console::impl::UserImpl::getConfigurations (  )  throws LaserConsoleException, LaserConnectionException [inline]

Accessor method.

Returns:
the user console configurations.
Exceptions:
LaserConsoleException if the request could not be served.
LaserConnectionException if the console cannot connect to the BL

Implements cern::laser::console::User.

References configurations, and getDefaultConfiguration().

Object cern::laser::console::impl::UserImpl::getConsoleConfigurationEntityEJBHome (  )  throws LaserConnectionException [inline, private]
Object cern::laser::console::impl::UserImpl::getConsoleUserEntityEJB (  )  throws LaserConnectionException, LaserUserNotFoundException [inline, private]
Configuration cern::laser::console::impl::UserImpl::getDefaultConfiguration (  )  throws LaserConsoleException, LaserConnectionException [inline]

Get the user's default configuration.

Returns:
the user console default configuration, null if not set.
Exceptions:
LaserConsoleException if the request could not be served.
LaserConnectionException if the console cannot connect to the BL

Implements cern::laser::console::User.

References getName(), and setName().

Referenced by createConfiguration(), and getConfigurations().

String cern::laser::console::impl::UserImpl::getDefaultPrinter (  )  throws LaserConsoleException [inline]
String cern::laser::console::impl::UserImpl::getName (  )  throws LaserConsoleException [inline]

Accessor method.

Returns:
the user name.
Exceptions:
LaserConsoleException if the request could not be served.

Implements cern::laser::console::User.

References user, and cern::laser::console::impl::UserImpl::LocalConsoleUser::userId.

Referenced by getDefaultConfiguration(), and toString().

String cern::laser::console::impl::UserImpl::getPassword (  )  throws LaserConsoleException [inline]

Accessor method.

Returns:
the user password.
Exceptions:
LaserConsoleException if the request could not be served.

Implements cern::laser::console::User.

References cern::laser::console::impl::UserImpl::LocalConsoleUser::password, and user.

Referenced by toString().

boolean cern::laser::console::impl::UserImpl::isDefaultConfiguration ( String  name  )  throws LaserConsoleException [inline]

Check the user default configuration.

Parameters:
name the configuration name.
Returns:
true if the configuration is the user's default, false otherwise
Exceptions:
LaserConsoleException if the request could not be served.

Implements cern::laser::console::User.

void cern::laser::console::impl::UserImpl::removeConfiguration ( String  name  )  throws LaserConsoleException [inline]

Remove a configuration for the user.

Parameters:
name the name of the configuration to remove.
Exceptions:
LaserConsoleException if the request could not be served.
LaserConfigurationNotFoundException if the configuration does not exist.

Implements cern::laser::console::User.

void cern::laser::console::impl::UserImpl::setDefaultConfiguration ( String  name  )  throws LaserConsoleException [inline]

Set the user's default configuration.

Parameters:
name the user's console new default configuration name.
Exceptions:
LaserConsoleException if the request could not be served.
LaserConfigurationNotFoundException if the configuration does not exist.

Implements cern::laser::console::User.

void cern::laser::console::impl::UserImpl::setDefaultPrinter ( String  newDefaultPrinter  )  throws LaserConsoleException [inline]
void cern::laser::console::impl::UserImpl::setName ( String  newName  )  throws LaserConsoleException [inline]
void cern::laser::console::impl::UserImpl::setPassword ( String  newPassword  )  throws LaserConsoleException [inline]

Accessor method.

Returns:
newPassword the user password.
Exceptions:
LaserConsoleException if the request could not be served.

Implements cern::laser::console::User.

References cern::laser::console::impl::UserImpl::LocalConsoleUser::password, and user.

String cern::laser::console::impl::UserImpl::toString (  )  [inline]

References getName(), and getPassword().


Member Data Documentation

ArrayList cern::laser::console::impl::UserImpl::configurations = new ArrayList() [private]

Referenced by getConfigurations().

Referenced by UserImpl().


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

Generated by  doxygen 1.6.2