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

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.

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]
 


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.

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.

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.

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

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

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.

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.

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]
 

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

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.

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


Member Data Documentation

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

AlarmService cern::laser::console::impl::UserImpl::laser [private]
 

LocalConsoleUser cern::laser::console::impl::UserImpl::user [private]
 


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