org.exoplatform.mail.service.impl
Class NewUserListener

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.organization.UserEventListener
          extended by org.exoplatform.mail.service.impl.NewUserListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

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

Author:
: Huu-Dung Kieu huu-dung.kieu@bull.be This is a plugin running every time a new user is created. The goal is to create a default mail account for each user. The plugin configuration is defined in the portal/conf/cs/cs-plugin-configuration.xml file.

Field Summary
static java.lang.String[] defaultFolders_
           
static java.lang.String FD_DRAFTS
           
static java.lang.String FD_INBOX
           
static java.lang.String FD_SENT
           
static java.lang.String FD_SPAM
           
static java.lang.String FD_TRASH
           
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
NewUserListener(MailService mservice, org.exoplatform.container.xml.InitParams params)
           
 
Method Summary
 void postSave(org.exoplatform.services.organization.User user, boolean isNew)
           
 
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
 

Field Detail

FD_INBOX

public static final java.lang.String FD_INBOX

FD_DRAFTS

public static final java.lang.String FD_DRAFTS

FD_SENT

public static final java.lang.String FD_SENT

FD_SPAM

public static final java.lang.String FD_SPAM

FD_TRASH

public static final java.lang.String FD_TRASH

defaultFolders_

public static final java.lang.String[] defaultFolders_
Constructor Detail

NewUserListener

public NewUserListener(MailService mservice,
                       org.exoplatform.container.xml.InitParams params)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

postSave

public void postSave(org.exoplatform.services.organization.User user,
                     boolean isNew)
              throws java.lang.Exception
Overrides:
postSave in class org.exoplatform.services.organization.UserEventListener
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.