cern::laser::guiplatform::user::UserBean Class Reference

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

List of all members.

Public Member Functions

 UserBean (User user) throws LaserException
void setIsLogged (boolean flag)
String getDisplayName ()
String getName ()
String[] getNodeActions ()
String getNodeDefaultAction ()
java.awt.Image getNodeIcon ()
cern.gp.beans.PropertyInfo[] getPropertyInfo ()
String getShortDescription ()
java.util.Collection getConfigurations ()
void setConfigurations (java.util.List conf)
ConfigurationBean getDefaultConfiguration ()

Private Attributes

User user = null
String name = null
boolean isLogged = false
java.util.Collection configurations = null

Static Private Attributes

static final Logger logger = LogFactory.getLogger(UserBean.class.getName())

Detailed Description

This is Alarm User Beans, (User, which comes from bussines API, wrapper)

Author:
pawlowsk

Constructor & Destructor Documentation

cern::laser::guiplatform::user::UserBean::UserBean ( User  user  )  throws LaserException [inline]

Member Function Documentation

java.util.Collection cern::laser::guiplatform::user::UserBean::getConfigurations (  )  [inline]

This method returns configurations for user

References configurations.

Referenced by cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::initChildrenMap().

ConfigurationBean cern::laser::guiplatform::user::UserBean::getDefaultConfiguration (  )  [inline]

This method returns default configuration for this user

Returns:
default configuration ConfigurationBean object of null if user does not have default configuration
String cern::laser::guiplatform::user::UserBean::getDisplayName (  )  [inline]

Returns the internal display name of the associated bean. If null is returned a default name will be used.

  • Property name : displayName
  • Visibility : normal (visible in a property sheet)
  • Default value (when null is returned from this method) : if getName() is available it is used instead of getDisplayName(), else beanInfo.getBeanDescriptor().getDisplayName() is used
Returns:
the internal display name of the associated bean or null

Reimplemented from cern::gp::beans::BeanSupport.

References isLogged, and name.

String cern::laser::guiplatform::user::UserBean::getName (  )  [inline]

Returns the internal name of the associated bean. If null is returned a default name will be used.

  • Property name : name
  • Visibility : normal (visible in a property sheet)
  • Default value (when null is returned from this method) : a unique name generated using BeanUtils. generateUniqueBeanName()
Returns:
the internal name of the associated bean or null.

Reimplemented from cern::gp::beans::BeanSupport.

References name.

String [] cern::laser::guiplatform::user::UserBean::getNodeActions (  )  [inline]

Returns an array of qualified name of actions for the node representing the associated bean. Null can be used in the array to represent a separator.

  • Property name : nodeActions
  • Visibility : hidden (not visible in a property sheet)
  • Default value (when null is returned from this method) : use the possible tagging of the BeanDescriptor of the BeanInfo : BeanTagger.getActions(beanInfo.getBeanDescriptor())
Returns:
an array of qualified name of actions for a node representing the bean.

Reimplemented from cern::gp::beans::BeanSupport.

String cern::laser::guiplatform::user::UserBean::getNodeDefaultAction (  )  [inline]

Returns the qualified name of the default action for the node representing the associated bean. The default action is the one triggered when the user double-clic on the node. If null is returned a default default action will be used.

  • Property name : nodeDefaultAction
  • Visibility : hidden
  • Default value (when null is returned from this method) : use the possible tagging of the BeanDescriptor of the BeanInfo : BeanTagger.getDefaultAction(beanInfo.getBeanDescriptor())
Returns:
the qualified name of the default action for the node or null representing the associated bean.

Reimplemented from cern::gp::beans::BeanSupport.

java.awt.Image cern::laser::guiplatform::user::UserBean::getNodeIcon (  )  [inline]

Returns the icon in 16x16 size used to display the node representing the associated bean. If null is returned a default icon will be used.

  • Property name : nodeIcon
  • Visibility : hidden (not visible in a property sheet)
  • Default value (when null is returned from this method) : beanInfo.getIcon()
Returns:
the icon in 16x16 size used to display the node representing the associated bean or null

Reimplemented from cern::gp::beans::BeanSupport.

References logger.

cern.gp.beans.PropertyInfo [] cern::laser::guiplatform::user::UserBean::getPropertyInfo (  )  [inline]

Returns an array of PropertyInfo specifying information on some properties.

Each PropertyInfo of this array defines information for one property of this bean. Defining a PropertyInfo for a given property is usefull when there is no explicit BeanInfo for the bean and when the property have non default characteristics such as, for instance, a specific PropertyEditor.

  • Property name : propertyInfo
  • Visibility : hidden (not visible in a property sheet)
  • Default value (when null is returned from this method) : use PropertyDescriptors from BeanInfo
Returns:
true is the value of the properties can be cached in the node, false else or null for default behavior

Reimplemented from cern::gp::beans::BeanSupport.

String cern::laser::guiplatform::user::UserBean::getShortDescription (  )  [inline]

Returns a short description of the associated bean (used in tooltip for instance). If null is returned a default description will be used.

  • Property name : shortDescription
  • Visibility : normal (visible in a property sheet)
  • Default value (when null is returned from this method) : beanInfo.getBeanDescriptor(). getShortDescription()
Returns:
a short description of the associated bean or null

Reimplemented from cern::gp::beans::BeanSupport.

void cern::laser::guiplatform::user::UserBean::setConfigurations ( java.util.List  conf  )  [inline]

This method sets configuration list for given user

List with ConfigurationBean</objects>

References configurations.

void cern::laser::guiplatform::user::UserBean::setIsLogged ( boolean  flag  )  [inline]

Member Data Documentation

java.util.Collection cern::laser::guiplatform::user::UserBean::configurations = null [private]

Configurations for given alarm user (ConfigurationBean objects)

Referenced by getConfigurations(), setConfigurations(), and UserBean().

indicates wheteher this user is logged

Referenced by getDisplayName(), and setIsLogged().

final Logger cern::laser::guiplatform::user::UserBean::logger = LogFactory.getLogger(UserBean.class.getName()) [static, private]

logger

Referenced by getNodeIcon().

user first name user last name alarm user name (login name)

Referenced by getDisplayName(), getName(), and UserBean().

user from business layer

Referenced by UserBean().


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

Generated by  doxygen 1.6.2