/* * Created on Sep 30, 2004 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package net.reliableresponse.notification.ldap; import net.reliableresponse.notification.broker.BrokerFactory; import net.reliableresponse.notification.usermgmt.User; /** * @author Administrator * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class FirstNameSetting implements LDAPSetting{ /* (non-Javadoc) * @see net.reliableresponse.notification.ldap.LDAPSetting#addSetting(java.lang.String, java.lang.String) */ public void addSetting(User user, String value) { if (value == null) return; BrokerFactory.getLoggingBroker().logDebug("Setting "+user.getUuid()+"'s firstName to "+value); user.setFirstName(value); } public void checkForUpdates (User storedUser, User ldapUser) { String firstName = ldapUser.getFirstName(); if (firstName != null) storedUser.setFirstName(firstName); } public void postCheck(User user) { } }