|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileManager
Manages user profile data. Defines methods used to create, access, update, and remove user profile data.
| 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. |
void |
deleteProfileImage(User user)
Deletes the users profile image |
java.util.Map<java.lang.Long,com.jivesoftware.community.UserProfile> |
getProfile(User user)
Gets a map of user profile values for a particular user mapped to their corresponding ProfileField id. |
java.io.InputStream |
getProfileImage(User user)
Returns the profile image for a user. |
void |
setProfile(User user,
java.util.List<com.jivesoftware.community.UserProfile> profile)
Sets a list of profile values for a particular user. |
void |
setProfileImage(User user,
java.lang.String mimeType,
java.io.InputStream in)
Set a new profile page image for the specified user. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
java.util.Map<java.lang.Long,com.jivesoftware.community.UserProfile> getProfile(User user)
user - get the profile for this user
void setProfile(User user,
java.util.List<com.jivesoftware.community.UserProfile> profile)
throws UnauthorizedException
user - the user that represents the profile listprofile - the list of user profile values to save
UnauthorizedException - if not the user or system admin.
void deleteProfileByUserID(long userID)
throws UnauthorizedException
userID - remove all user profile data associated with this userID.
UnauthorizedException - if not the user or system admin.
void deleteProfileByID(long fieldID)
throws UnauthorizedException
fieldID - remove all user profile data associated with this profile field id.
UnauthorizedException - if not the system admin.
void setProfileImage(User user,
java.lang.String mimeType,
java.io.InputStream in)
throws AttachmentException,
UnauthorizedException
user - The user to add an image for.mimeType - The mime type of the image.in - The content for the image.
AttachmentException - Thrown if the image cannot be added.
UnauthorizedException - if not the user or system admin.java.io.InputStream getProfileImage(User user)
user - The user to get an image for.
void deleteProfileImage(User user)
throws UnauthorizedException
user - The user to delete image for.
UnauthorizedException - if not the user or system admin.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||