

Public Member Functions | |
| UserNodeManager (Collection userList, String loggedUserName) | |
| void | initChildrenMap (NodeMap nodeMap) |
| java.util.Comparator | getComparator () |
| void | addConfiguration (BeanSupport conf) throws IntrospectionException |
| List | getConfigurationNames (String userName) |
Private Member Functions | |
| ConfigurationBean | findDefaultConfiguration () |
Private Attributes | |
| final Logger | logger |
| NodeMap | confMap |
| Collection | userList = null |
| String | loggedUserName = null |
| GPNode | loggedUserNode = null |
| cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::UserNodeManager | ( | Collection | userList, | |
| String | loggedUserName | |||
| ) | [inline] |
| userList | list with User objects | |
| loggedUserNode |
| void cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::addConfiguration | ( | BeanSupport | conf | ) | throws IntrospectionException [inline] |
This method add configuraton for given user
References cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::addConfiguration(), confMap, findDefaultConfiguration(), cern::gp::nodes::children::NodeCollection::getChildrenManager(), cern::gp::nodes::children::NodeMap::getNode(), cern::gp::nodes::GPNode::getNodeCollection(), loggedUserName, and cern::laser::guiplatform::configuration::ConfigurationBean::setIsDefault().
Referenced by cern::laser::guiplatform::windows::user::UserExplorer::addConfiguration().
| ConfigurationBean cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::findDefaultConfiguration | ( | ) | [inline, private] |
References confMap, cern::laser::guiplatform::configuration::ConfigurationBean::getIsDefault(), cern::gp::nodes::children::NodeMap::getNode(), cern::gp::nodes::GPNode::getNodeCollection(), and loggedUserName.
Referenced by addConfiguration().
| java.util.Comparator cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::getComparator | ( | ) | [inline] |
Returns a comparator that can be used to sort the collection of nodes managed by this class. null can be returned to specify that the collection should not be sorted. If a comparator is returned it should be able to compare two nodes belonging to the children managed by this manager. An adapter can be used to deal with the bean associated to the node instead of the nodes itself.
null Implements cern::gp::nodes::children::ChildrenManager.
| List cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::getConfigurationNames | ( | String | userName | ) | [inline] |
| void cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::initChildrenMap | ( | NodeMap | nodeMap | ) | [inline] |
Receives the NodeMap that is managed by this manager and that can be used to add or remove children.
This method is called lazily once when the children are going to be displayed. It is similar to the addNotify() of a GUI component.
The implementation of this method should do two things. First it should initialize the map of children with the current children. For that it can use the method addNode of the nodeMap. Second, and only if the children are dynamic and are changing based on some external events, it should keep the reference to the given nodeMap for future use.
If the children are not dynamic, which means that they don't change after they have been initialized here, there is no need to keep a reference to the nodeMap.
| nodeMap | the map representing the children managed by this manager |
Implements cern::gp::nodes::children::ChildrenMapManager.
References cern::gp::nodes::children::NodeMap::addNode(), confMap, cern::laser::guiplatform::user::UserBean::getConfigurations(), cern::gp::nodes::GPNode::getName(), cern::laser::console::User::getName(), logger, cern::laser::guiplatform::user::UserBean::setIsLogged(), and userList.
configuration for given user
Referenced by addConfiguration(), findDefaultConfiguration(), getConfigurationNames(), and initChildrenMap().
String cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::loggedUserName = null [private] |
logged user name
Referenced by addConfiguration(), and findDefaultConfiguration().
GPNode cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::loggedUserNode = null [private] |
logged user node
final Logger cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::logger [private] |
LogFactory.getLogger(UserNodeManager.class.getName())
Referenced by initChildrenMap().
Collection cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::userList = null [private] |
user list
Referenced by initChildrenMap().
1.6.2