|
Clearspace API (2.5.29) 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 |
Map<Long,com.jivesoftware.community.user.profile.ProfileFieldValue> |
getProfile(User user)
Gets a map of user profile values for a particular user mapped to their corresponding ProfileField id. |
Collection<com.jivesoftware.community.user.profile.ProfileFieldValueCount> |
getProfileFieldTermsByFieldID(long fieldID,
boolean enabledOnly)
Gets a list of distinct terms and their count used for any given profile field. |
InputStream |
getProfileImage(User user)
Returns the profile image for a user. |
boolean |
isAnonymousBrowsingPeoplePermitted()
Returns true if anonymous users can browse the user directory, search users, and goto profiles. |
boolean |
isFullNameEnabled()
Returns true if users' full names are to be displayed by default in the application and false if tehy are not. |
boolean |
isPersonalizedHomepageEnabled()
Returns true if users can personalize their homepage, false if they cannot. |
boolean |
isProfileImageEnabled()
Returns true if the profile image is enabled and false if it is not. |
void |
setAnonymousBrowsingPeoplePermitted(boolean isAnonymousBrowsingPeoplePermitted)
Set to true to allow anonymous users to browse the user directory, search users, and goto profiles. |
void |
setFullNameEnabled(boolean isFullNameEnabled)
Set to true if users' full names should be displayed by default and false if they should not. |
void |
setPersonalizedHomepageEnabled(boolean isPersonalizedHomepageEnabled)
Set to true to enable the personalized homepage for user, false will disable it. |
void |
setProfile(User user,
Collection<com.jivesoftware.community.user.profile.ProfileFieldValue> profile)
Sets a list of profile values for a particular user. |
void |
setProfileImage(User user,
InputStream in)
Set a new profile page image for the specified user. |
void |
setProfileImageEnabled(boolean isEnabled)
Enables or disables profile images. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
Map<Long,com.jivesoftware.community.user.profile.ProfileFieldValue> getProfile(User user)
throws UnauthorizedException
user - get the profile for this user
UnauthorizedException - if can't see the user's profile.
void setProfile(User user,
Collection<com.jivesoftware.community.user.profile.ProfileFieldValue> 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.boolean isProfileImageEnabled()
void setProfileImageEnabled(boolean isEnabled)
throws UnauthorizedException
isEnabled - true to enabled profile images false to disable profile images.
UnauthorizedException - if not the system admin.
void setProfileImage(User user,
InputStream in)
throws AttachmentException,
UnauthorizedException
user - The user to add an image for.in - The content for the image.
AttachmentException - Thrown if the image cannot be added.
UnauthorizedException - if not the user or system admin.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.
Collection<com.jivesoftware.community.user.profile.ProfileFieldValueCount> getProfileFieldTermsByFieldID(long fieldID,
boolean enabledOnly)
fieldID - the id for which distinct terms are being returned.enabledOnly - Only count terms associated with enabled users?
boolean isFullNameEnabled()
void setFullNameEnabled(boolean isFullNameEnabled)
throws UnauthorizedException
isFullNameEnabled - true if users' full names should be displayed by default and false if they should not.
UnauthorizedException - if not the user or system admin.boolean isPersonalizedHomepageEnabled()
void setPersonalizedHomepageEnabled(boolean isPersonalizedHomepageEnabled)
throws UnauthorizedException
isPersonalizedHomepageEnabled - true will enable the personalized homepage for user, false will disable it.
UnauthorizedException - if not the user or system admin.boolean isAnonymousBrowsingPeoplePermitted()
void setAnonymousBrowsingPeoplePermitted(boolean isAnonymousBrowsingPeoplePermitted)
throws UnauthorizedException
isAnonymousBrowsingPeoplePermitted - true to allow anonymous users to browse the user directory,
search users, and goto profiles.
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 | |||||||||