org.exoplatform.platform.gadgets.listeners
Class InitNewUserDashboardListener

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.organization.UserEventListener
          extended by org.exoplatform.platform.gadgets.listeners.InitNewUserDashboardListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class InitNewUserDashboardListener
extends org.exoplatform.services.organization.UserEventListener

Version:
$Revision$
Author:
Anouar Chattouna

Field Summary
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
InitNewUserDashboardListener(UserDashboardConfigurationService userDashboardConfigurationService)
           
 
Method Summary
 void postSave(org.exoplatform.services.organization.User user, boolean isNew)
          This method is called after the user has been saved but not commited yet.
 
Methods inherited from class org.exoplatform.services.organization.UserEventListener
postDelete, preDelete, preSave
 
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitNewUserDashboardListener

public InitNewUserDashboardListener(UserDashboardConfigurationService userDashboardConfigurationService)
Method Detail

postSave

public void postSave(org.exoplatform.services.organization.User user,
                     boolean isNew)
This method is called after the user has been saved but not commited yet. It initializes the concerned user's dashboard and prepopulates some gadgets on it.

Overrides:
postSave in class org.exoplatform.services.organization.UserEventListener
Parameters:
user - The user instance has been saved.
isNew - if the user is a new record in the database or not


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.