org.olat.ldap.ui
Class IdentitySelectionTreeModel

java.lang.Object
  extended by org.olat.core.gui.components.tree.GenericTreeModel
      extended by org.olat.ldap.ui.IdentitySelectionTreeModel
All Implemented Interfaces:
java.io.Serializable, TreeModel, INodeFilter

public class IdentitySelectionTreeModel
extends GenericTreeModel
implements INodeFilter

Description:

This tree model displays a list of identities

Initial Date: 11.11.2008

Author:
Florian Gnaegi, frentix GmbH, http://www.frentix.com
See Also:
Serialized Form

Constructor Summary
IdentitySelectionTreeModel(java.util.List<Identity> identities, java.lang.String usageIdentifyer, java.util.Locale locale)
          Constructor
 
Method Summary
 boolean accept(INode node)
           
 java.util.List<Identity> getIdentities(java.util.Set<java.lang.String> selected)
          Get all identities from the set of tree nodes identifyers
 
Methods inherited from class org.olat.core.gui.components.tree.GenericTreeModel
findNodeByUserObject, getNodeById, getRootNode, setRootNode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentitySelectionTreeModel

public IdentitySelectionTreeModel(java.util.List<Identity> identities,
                                  java.lang.String usageIdentifyer,
                                  java.util.Locale locale)
Constructor

Parameters:
identities - The list of identities
usageIdentifyer - The usageIdentifyer to tell the model which user properties should be used
locale - The locale used to format the user properties
Method Detail

accept

public boolean accept(INode node)
Specified by:
accept in interface INodeFilter
See Also:
INodeFilter.accept(org.olat.core.util.nodes.INode)

getIdentities

public java.util.List<Identity> getIdentities(java.util.Set<java.lang.String> selected)
Get all identities from the set of tree nodes identifyers

Parameters:
selected -
Returns: