org.olat.admin.user.delete
Class UserDeleteTableModel

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultTableDataModel
      extended by org.olat.admin.user.delete.UserDeleteTableModel
All Implemented Interfaces:
TableDataModel

public class UserDeleteTableModel
extends DefaultTableDataModel

The user table data model for user deletion. This uses a list of Identities and not org.olat.user.User to build the list!

Author:
Christian Guretzki

Constructor Summary
UserDeleteTableModel(java.util.List objects, java.util.Locale locale, boolean isAdministrativeUser)
           
 
Method Summary
 void addColumnDescriptors(TableController tableCtr, java.lang.String actionCommand)
          Add all column descriptors to this table that are available in the table model.
 void addColumnDescriptors(TableController tableCtr, java.lang.String actionCommand, java.lang.String deleteEmailKey)
          The table contains a suplementary column for the "delete email date".
 int getColumnCount()
          The table model contains userPropertyHandlers.size() columns plus a column for the username, one for the last login date, and one for the delete email date.
 java.lang.Object getValueAt(int row, int col)
           
 
Methods inherited from class org.olat.core.gui.components.table.DefaultTableDataModel
createCopyWithEmptyList, getObject, getObjects, getObjects, getRowCount, setLocale, setObjects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDeleteTableModel

public UserDeleteTableModel(java.util.List objects,
                            java.util.Locale locale,
                            boolean isAdministrativeUser)
Parameters:
objects -
locale -
isAdministrativeUser -
Method Detail

addColumnDescriptors

public void addColumnDescriptors(TableController tableCtr,
                                 java.lang.String actionCommand)
Add all column descriptors to this table that are available in the table model. The table contains userPropertyHandlers.size() columns plus a column for the username and one for the last login date.

Parameters:
tableCtr -
actionCommand - command fired when the login name is clicked or NULL when no command is used

addColumnDescriptors

public void addColumnDescriptors(TableController tableCtr,
                                 java.lang.String actionCommand,
                                 java.lang.String deleteEmailKey)
The table contains a suplementary column for the "delete email date".

Parameters:
tableCtr -
actionCommand -
deleteEmailKey -

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Specified by:
getValueAt in interface TableDataModel
Specified by:
getValueAt in class DefaultTableDataModel
Returns:
See Also:
DefaultTableDataModel.getValueAt(int, int)

getColumnCount

public int getColumnCount()
The table model contains userPropertyHandlers.size() columns plus a column for the username, one for the last login date, and one for the delete email date.

Specified by:
getColumnCount in interface TableDataModel
Specified by:
getColumnCount in class DefaultTableDataModel
Returns:
See Also:
DefaultTableDataModel.getColumnCount()