org.sakaiproject.profile2.legacy
Class ProfileManagerImpl

java.lang.Object
  extended by org.sakaiproject.profile2.legacy.ProfileManagerImpl
All Implemented Interfaces:
org.sakaiproject.api.app.profile.ProfileManager

public class ProfileManagerImpl
extends Object
implements org.sakaiproject.api.app.profile.ProfileManager

This is the implementation of the original ProfileManager, but modified to get its data from Profile2. You can activate this in sakai.properties via: profile.manager.integration.bean=org.sakaiproject.profile.legacy.ProfileManager Note it will not allow you to write any data, only retrieve, so is useful for integrations that use the existing ProfileManager, eg Roster, YAFT, etc and you want to be compatible with both Profile and Profile2.


Constructor Summary
ProfileManagerImpl()
           
 
Method Summary
 void destroy()
           
 boolean displayCompleteProfile(org.sakaiproject.api.app.profile.Profile profile)
          
 List findProfiles(String arg0)
          additional methods from original profile API which we don't need real implementations of as they are specific to the Profile tool
 byte[] getInstitutionalPhotoByUserId(String userId)
          
 byte[] getInstitutionalPhotoByUserId(String userId, boolean viewerHasPermission)
          
 org.sakaiproject.api.app.profile.Profile getProfile()
           
 Map<String,org.sakaiproject.api.app.profile.Profile> getProfiles(Set<String> userIds)
          
 org.sakaiproject.api.app.profile.Profile getUserProfileById(String userId)
          
 void init()
           
 boolean isCurrentUserProfile(org.sakaiproject.api.app.profile.Profile profile)
          Is this profile the current user's profile?
 boolean isDisplayNoPhoto(org.sakaiproject.api.app.profile.Profile arg0)
           
 boolean isDisplayPictureURL(org.sakaiproject.api.app.profile.Profile arg0)
           
 boolean isDisplayUniversityPhoto(org.sakaiproject.api.app.profile.Profile arg0)
           
 boolean isDisplayUniversityPhotoUnavailable(org.sakaiproject.api.app.profile.Profile arg0)
           
 boolean isShowSearch()
           
 boolean isShowTool()
           
 void save(org.sakaiproject.api.app.profile.Profile arg0)
           
 void setImageLogic(ProfileImageLogic imageLogic)
           
 void setProfileLogic(ProfileLogic profileLogic)
           
 void setSakaiProxy(SakaiProxy sakaiProxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileManagerImpl

public ProfileManagerImpl()
Method Detail

getUserProfileById

public org.sakaiproject.api.app.profile.Profile getUserProfileById(String userId)

Specified by:
getUserProfileById in interface org.sakaiproject.api.app.profile.ProfileManager

displayCompleteProfile

public boolean displayCompleteProfile(org.sakaiproject.api.app.profile.Profile profile)

Specified by:
displayCompleteProfile in interface org.sakaiproject.api.app.profile.ProfileManager

getInstitutionalPhotoByUserId

public byte[] getInstitutionalPhotoByUserId(String userId)

Specified by:
getInstitutionalPhotoByUserId in interface org.sakaiproject.api.app.profile.ProfileManager

getInstitutionalPhotoByUserId

public byte[] getInstitutionalPhotoByUserId(String userId,
                                            boolean viewerHasPermission)

Specified by:
getInstitutionalPhotoByUserId in interface org.sakaiproject.api.app.profile.ProfileManager

getProfiles

public Map<String,org.sakaiproject.api.app.profile.Profile> getProfiles(Set<String> userIds)

Specified by:
getProfiles in interface org.sakaiproject.api.app.profile.ProfileManager

isCurrentUserProfile

public boolean isCurrentUserProfile(org.sakaiproject.api.app.profile.Profile profile)
Is this profile the current user's profile?

Specified by:
isCurrentUserProfile in interface org.sakaiproject.api.app.profile.ProfileManager
Parameters:
profile -
Returns:

init

public void init()
Specified by:
init in interface org.sakaiproject.api.app.profile.ProfileManager

destroy

public void destroy()
Specified by:
destroy in interface org.sakaiproject.api.app.profile.ProfileManager

setProfileLogic

public void setProfileLogic(ProfileLogic profileLogic)

setImageLogic

public void setImageLogic(ProfileImageLogic imageLogic)

setSakaiProxy

public void setSakaiProxy(SakaiProxy sakaiProxy)

findProfiles

public List findProfiles(String arg0)
additional methods from original profile API which we don't need real implementations of as they are specific to the Profile tool

Specified by:
findProfiles in interface org.sakaiproject.api.app.profile.ProfileManager

getProfile

public org.sakaiproject.api.app.profile.Profile getProfile()
Specified by:
getProfile in interface org.sakaiproject.api.app.profile.ProfileManager

isDisplayNoPhoto

public boolean isDisplayNoPhoto(org.sakaiproject.api.app.profile.Profile arg0)
Specified by:
isDisplayNoPhoto in interface org.sakaiproject.api.app.profile.ProfileManager

isDisplayPictureURL

public boolean isDisplayPictureURL(org.sakaiproject.api.app.profile.Profile arg0)
Specified by:
isDisplayPictureURL in interface org.sakaiproject.api.app.profile.ProfileManager

isDisplayUniversityPhoto

public boolean isDisplayUniversityPhoto(org.sakaiproject.api.app.profile.Profile arg0)
Specified by:
isDisplayUniversityPhoto in interface org.sakaiproject.api.app.profile.ProfileManager

isDisplayUniversityPhotoUnavailable

public boolean isDisplayUniversityPhotoUnavailable(org.sakaiproject.api.app.profile.Profile arg0)
Specified by:
isDisplayUniversityPhotoUnavailable in interface org.sakaiproject.api.app.profile.ProfileManager

isShowSearch

public boolean isShowSearch()
Specified by:
isShowSearch in interface org.sakaiproject.api.app.profile.ProfileManager

isShowTool

public boolean isShowTool()
Specified by:
isShowTool in interface org.sakaiproject.api.app.profile.ProfileManager

save

public void save(org.sakaiproject.api.app.profile.Profile arg0)
Specified by:
save in interface org.sakaiproject.api.app.profile.ProfileManager


Copyright © 2008-2013 The Sakai Foundation. All Rights Reserved.