Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.profiles
Class ProfileManagerImpl

java.lang.Object
  extended by com.jivesoftware.profiles.ProfileManagerImpl
All Implemented Interfaces:
UserListener, ProfileManager

public class ProfileManagerImpl
extends java.lang.Object
implements ProfileManager


Method Summary
 void deleteProfileByID(long fieldID)
          Removes all user profile data associated with a particular profile field.
 void deleteProfileByUserID(long userID)
          Removes all user profile data associated with a particular user.
static ProfileManager getInstance()
          Provides singleton access to a ProfileManagerImpl instance.
 java.util.Map getProfile(User user)
          Gets a map of user profile values for a particular user mapped to their corresponding ProfileField id.
 void setProfile(User user, java.util.List profile)
          Sets a list of profile values for a particular user.
 void userCreated(UserEvent event)
          Fired when a user is created.
 void userDeleted(UserEvent event)
          Fired when a user is deleted.
 void userModified(UserEvent event)
          Fired when a user is modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProfileManager getInstance()
Provides singleton access to a ProfileManagerImpl instance.


getProfile

public java.util.Map getProfile(User user)
Description copied from interface: ProfileManager
Gets a map of user profile values for a particular user mapped to their corresponding ProfileField id.

Specified by:
getProfile in interface ProfileManager
Parameters:
user - get the profile for this user
Returns:
a map of user profile values for the specified user.

setProfile

public void setProfile(User user,
                       java.util.List profile)
Description copied from interface: ProfileManager
Sets a list of profile values for a particular user.

Specified by:
setProfile in interface ProfileManager
Parameters:
user - the user that represents the profile list
profile - the list of user profile values to save

deleteProfileByUserID

public void deleteProfileByUserID(long userID)
Description copied from interface: ProfileManager
Removes all user profile data associated with a particular user. This method is generally called when a user is removed from the system.

Specified by:
deleteProfileByUserID in interface ProfileManager
Parameters:
userID - remove all user profile data associated with this userID.

deleteProfileByID

public void deleteProfileByID(long fieldID)
Description copied from interface: ProfileManager
Removes all user profile data associated with a particular profile field. This method is generally called when a profile field is removed from the system.

Specified by:
deleteProfileByID in interface ProfileManager
Parameters:
fieldID - remove all user profile data associated with this profile field id.

userCreated

public void userCreated(UserEvent event)
Description copied from interface: UserListener
Fired when a user is created.

Specified by:
userCreated in interface UserListener
Parameters:
event - the UserEvent

userDeleted

public void userDeleted(UserEvent event)
Description copied from interface: UserListener
Fired when a user is deleted.

Specified by:
userDeleted in interface UserListener
Parameters:
event - the UserEvent

userModified

public void userModified(UserEvent event)
Description copied from interface: UserListener
Fired when a user is modified.

Specified by:
userModified in interface UserListener
Parameters:
event - the UserEvent

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.