*/
public void event(UserRequest ureq, Controller sourceController, Event event) {
if (sourceController == tableCtr) {
if (event.getCommand().equals(Table.COMMANDLINK_ROWACTION_CLICKED)) {
// Single row selects
TableEvent te = (TableEvent) event;
String actionid = te.getActionId();
if (actionid.equals(COMMAND_VCARD)) {
// get identitiy and open new visiting card controller in new window
int rowid = te.getRowId();
final Identity identity = identitiesTableModel.getIdentityAt(rowid);
ControllerCreator userInfoMainControllerCreator = new ControllerCreator() {
public Controller createController(UserRequest lureq, WindowControl lwControl) {
return new UserInfoMainController(lureq, lwControl, identity);
}
};
//wrap the content controller into a full header layout
ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, userInfoMainControllerCreator);
//open in new browser window
PopupBrowserWindow pbw = getWindowControl().getWindowBackOffice().getWindowManager().createNewPopupBrowserWindowFor(ureq, layoutCtrlr);
pbw.open(ureq);
//
} else if (actionid.equals(COMMAND_SELECTUSER)) {
int rowid = te.getRowId();
Identity identity = identitiesTableModel.getIdentityAt(rowid);
// TODO whats this??
fireEvent(ureq, new SingleIdentityChosenEvent(identity));
}