|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.profile2.legacy.ProfileManagerImpl
public class ProfileManagerImpl
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 |
|---|
public ProfileManagerImpl()
| Method Detail |
|---|
public org.sakaiproject.api.app.profile.Profile getUserProfileById(String userId)
getUserProfileById in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean displayCompleteProfile(org.sakaiproject.api.app.profile.Profile profile)
displayCompleteProfile in interface org.sakaiproject.api.app.profile.ProfileManagerpublic byte[] getInstitutionalPhotoByUserId(String userId)
getInstitutionalPhotoByUserId in interface org.sakaiproject.api.app.profile.ProfileManager
public byte[] getInstitutionalPhotoByUserId(String userId,
boolean viewerHasPermission)
getInstitutionalPhotoByUserId in interface org.sakaiproject.api.app.profile.ProfileManagerpublic Map<String,org.sakaiproject.api.app.profile.Profile> getProfiles(Set<String> userIds)
getProfiles in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isCurrentUserProfile(org.sakaiproject.api.app.profile.Profile profile)
isCurrentUserProfile in interface org.sakaiproject.api.app.profile.ProfileManagerprofile -
public void init()
init in interface org.sakaiproject.api.app.profile.ProfileManagerpublic void destroy()
destroy in interface org.sakaiproject.api.app.profile.ProfileManagerpublic void setProfileLogic(ProfileLogic profileLogic)
public void setImageLogic(ProfileImageLogic imageLogic)
public void setSakaiProxy(SakaiProxy sakaiProxy)
public List findProfiles(String arg0)
findProfiles in interface org.sakaiproject.api.app.profile.ProfileManagerpublic org.sakaiproject.api.app.profile.Profile getProfile()
getProfile in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isDisplayNoPhoto(org.sakaiproject.api.app.profile.Profile arg0)
isDisplayNoPhoto in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isDisplayPictureURL(org.sakaiproject.api.app.profile.Profile arg0)
isDisplayPictureURL in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isDisplayUniversityPhoto(org.sakaiproject.api.app.profile.Profile arg0)
isDisplayUniversityPhoto in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isDisplayUniversityPhotoUnavailable(org.sakaiproject.api.app.profile.Profile arg0)
isDisplayUniversityPhotoUnavailable in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isShowSearch()
isShowSearch in interface org.sakaiproject.api.app.profile.ProfileManagerpublic boolean isShowTool()
isShowTool in interface org.sakaiproject.api.app.profile.ProfileManagerpublic void save(org.sakaiproject.api.app.profile.Profile arg0)
save in interface org.sakaiproject.api.app.profile.ProfileManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||