org.exoplatform.services.jcr.ext.organization
Class UserProfileHandlerImpl

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.organization.CommonHandler
      extended by org.exoplatform.services.jcr.ext.organization.UserProfileHandlerImpl
All Implemented Interfaces:
org.exoplatform.services.organization.UserProfileEventListenerHandler, org.exoplatform.services.organization.UserProfileHandler

public class UserProfileHandlerImpl
extends CommonHandler
implements org.exoplatform.services.organization.UserProfileHandler, org.exoplatform.services.organization.UserProfileEventListenerHandler

Created by The eXo Platform SAS Date: 24.07.2008

Version:
$Id: UserProfileHandlerImpl.java 22908 2008-11-11 15:24:52Z tolusha $
Author:
Peter Nedonosko

Field Summary
static java.lang.String EXO_ATTRIBUTES
          The child not to storage users profile properties.
protected  java.util.List<org.exoplatform.services.organization.UserProfileEventListener> listeners
          The list of listeners to broadcast events.
protected static org.apache.commons.logging.Log log
          Log.
protected  JCROrganizationServiceImpl service
          Organization service implementation covering the handler.
 
Method Summary
 void addUserProfileEventListener(org.exoplatform.services.organization.UserProfileEventListener listener)
          
 org.exoplatform.services.organization.UserProfile createUserProfileInstance()
          
 org.exoplatform.services.organization.UserProfile createUserProfileInstance(java.lang.String userName)
          
 org.exoplatform.services.organization.UserProfile findUserProfileByName(java.lang.String userName)
          
 java.util.Collection findUserProfiles()
          
 java.util.List<org.exoplatform.services.organization.UserProfileEventListener> getUserProfileListeners()
          
 org.exoplatform.services.organization.UserProfile removeUserProfile(java.lang.String userName, boolean broadcast)
          
 void removeUserProfileEventListener(org.exoplatform.services.organization.UserProfileEventListener listener)
          Remove registered listener.
 void saveUserProfile(org.exoplatform.services.organization.UserProfile profile, boolean broadcast)
          
 
Methods inherited from class org.exoplatform.services.jcr.ext.organization.CommonHandler
readDateProperty, readStringProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXO_ATTRIBUTES

public static final java.lang.String EXO_ATTRIBUTES
The child not to storage users profile properties.

See Also:
Constant Field Values

listeners

protected final java.util.List<org.exoplatform.services.organization.UserProfileEventListener> listeners
The list of listeners to broadcast events.


service

protected final JCROrganizationServiceImpl service
Organization service implementation covering the handler.


log

protected static org.apache.commons.logging.Log log
Log.

Method Detail

addUserProfileEventListener

public void addUserProfileEventListener(org.exoplatform.services.organization.UserProfileEventListener listener)

Specified by:
addUserProfileEventListener in interface org.exoplatform.services.organization.UserProfileHandler

createUserProfileInstance

public org.exoplatform.services.organization.UserProfile createUserProfileInstance()

Specified by:
createUserProfileInstance in interface org.exoplatform.services.organization.UserProfileHandler

createUserProfileInstance

public org.exoplatform.services.organization.UserProfile createUserProfileInstance(java.lang.String userName)

Specified by:
createUserProfileInstance in interface org.exoplatform.services.organization.UserProfileHandler

findUserProfileByName

public org.exoplatform.services.organization.UserProfile findUserProfileByName(java.lang.String userName)
                                                                        throws java.lang.Exception

Specified by:
findUserProfileByName in interface org.exoplatform.services.organization.UserProfileHandler
Throws:
java.lang.Exception

findUserProfiles

public java.util.Collection findUserProfiles()
                                      throws java.lang.Exception

Specified by:
findUserProfiles in interface org.exoplatform.services.organization.UserProfileHandler
Throws:
java.lang.Exception

removeUserProfile

public org.exoplatform.services.organization.UserProfile removeUserProfile(java.lang.String userName,
                                                                           boolean broadcast)
                                                                    throws java.lang.Exception

Specified by:
removeUserProfile in interface org.exoplatform.services.organization.UserProfileHandler
Throws:
java.lang.Exception

removeUserProfileEventListener

public void removeUserProfileEventListener(org.exoplatform.services.organization.UserProfileEventListener listener)
Remove registered listener.

Parameters:
listener - The registered listener for removing

saveUserProfile

public void saveUserProfile(org.exoplatform.services.organization.UserProfile profile,
                            boolean broadcast)
                     throws java.lang.Exception

Specified by:
saveUserProfile in interface org.exoplatform.services.organization.UserProfileHandler
Throws:
java.lang.Exception

getUserProfileListeners

public java.util.List<org.exoplatform.services.organization.UserProfileEventListener> getUserProfileListeners()

Specified by:
getUserProfileListeners in interface org.exoplatform.services.organization.UserProfileEventListenerHandler


Copyright © 2011 eXo Platform SAS. All Rights Reserved.