org.sakaiproject.api.app.profile
Interface ProfileManager


public interface ProfileManager

Author:
rshastri

Method Summary
 void destroy()
           
 boolean displayCompleteProfile(Profile profile)
           
 List findProfiles(String searchString)
          Searches the list of user profiles matching given search criteria
 byte[] getInstitutionalPhotoByUserId(String uid)
          Searches the university photo for given username
 byte[] getInstitutionalPhotoByUserId(String uid, boolean siteMaintainer)
          Allow user with update access to site view id photo of member users
 Profile getProfile()
          Returns user mutable profile of currently logged in user
 Map<String,Profile> getProfiles(Set<String> userIds)
          Returns a map of user IDs to Profiles.
 Profile getUserProfileById(String id)
           
 void init()
           
 boolean isCurrentUserProfile(Profile profile)
           
 boolean isDisplayNoPhoto(Profile profile)
           
 boolean isDisplayPictureURL(Profile profile)
           
 boolean isDisplayUniversityPhoto(Profile profile)
           
 boolean isDisplayUniversityPhotoUnavailable(Profile profile)
           
 boolean isShowSearch()
           
 boolean isShowTool()
           
 void save(Profile profile)
          Save or Update an existing profile
 

Method Detail

init

void init()

destroy

void destroy()

save

void save(Profile profile)
Save or Update an existing profile

Parameters:
profile -

getProfile

Profile getProfile()
Returns user mutable profile of currently logged in user

Returns:

getProfiles

Map<String,Profile> getProfiles(Set<String> userIds)
Returns a map of user IDs to Profiles.

Parameters:
userIds - A collection of user IDs
Returns:

findProfiles

List findProfiles(String searchString)
Searches the list of user profiles matching given search criteria

Parameters:
searchString -
Returns:

getInstitutionalPhotoByUserId

byte[] getInstitutionalPhotoByUserId(String uid)
Searches the university photo for given username

Parameters:
uid -
Returns:

getInstitutionalPhotoByUserId

byte[] getInstitutionalPhotoByUserId(String uid,
                                     boolean siteMaintainer)
Allow user with update access to site view id photo of member users

Parameters:
uid -
siteMaintainer -
Returns:

displayCompleteProfile

boolean displayCompleteProfile(Profile profile)
Parameters:
profile -
Returns:

isCurrentUserProfile

boolean isCurrentUserProfile(Profile profile)
Parameters:
profile -
Returns:

isDisplayPictureURL

boolean isDisplayPictureURL(Profile profile)
Parameters:
profile -
Returns:

isDisplayUniversityPhoto

boolean isDisplayUniversityPhoto(Profile profile)
Parameters:
profile -
Returns:

isDisplayUniversityPhotoUnavailable

boolean isDisplayUniversityPhotoUnavailable(Profile profile)
Parameters:
profile -
Returns:

isDisplayNoPhoto

boolean isDisplayNoPhoto(Profile profile)
Parameters:
profile -
Returns:

isShowTool

boolean isShowTool()
Parameters:
profile -
Returns:

isShowSearch

boolean isShowSearch()

getUserProfileById

Profile getUserProfileById(String id)
Parameters:
id -
Returns:


Copyright © 2004-2012 Sakai Project. All Rights Reserved.