Class WCUserProfileWrapper
java.lang.Object
oracle.webcenter.peopleconnections.profile.WCUserProfileWrapper
- All Implemented Interfaces:
WCUserProfile
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.webcenter.peopleconnections.profile.WCUserProfile
WCUserProfile.PhotoSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuid()getID()Returns all the display names of the user in various locales.Returns the Display Name of the manager for this user, if the Display Name is available.getName()byte[]Method to return the 'original' (unscaled) photo of the user.byte[]Returns a photo of specified size for this user profile, looking it up in a system cache if possible.Returns an identifier for the photo, that is guaranteed to be unique for this user profile.This method returns a list of the reportee user names for this user.This method returns a list of the reportee this user.Returns the profiles of the reportees for this user.getTitle()voidInvalidates any photo images that may have been cached for this user profile.voidsave()voidsetBusinessCity(String busCity) voidsetBusinessCountry(String busCountry) voidsetBusinessEmail(String email) voidsetBusinessFax(String busFax) voidsetBusinessMobile(String busMobile) voidsetBusinessPager(String busPager) voidsetBusinessPhone(String busPhone) voidsetBusinessPOBox(String poBox) voidsetBusinessPostalCode(String poCode) voidsetBusinessState(String busState) voidsetBusinessStreet(String busStreet) voidsetDateofBirth(String dob) voidsetDateofHire(String doh) voidsetDefaultGroup(String defGrp) voidsetDepartment(String dept) voidsetDescription(String aboutMe) voidsetDisplayName(String dispName) voidsetEmployeeNumber(String empNo) voidsetEmployeeType(String empType) voidsetExpertise(String expertise) voidsetFirstName(String firstName) voidsetHomeAddress(String homeAddress) voidsetHomePhone(String homePhone) voidsetInitials(String initals) voidsetJPEGPhoto(String imagePath) Stores a specified image into this user profile to serve as the 'original' (unscaled) photo for the user.voidsetLastName(String lastName) voidsetMaidenName(String maidenName) voidsetManager(String manager) voidsetMiddleName(String midName) voidvoidsetNameSuffix(String nameSuf) voidsetOrganization(String org) voidsetOrganizationalUnit(String orgUnit) voidsetPersonalStatusNote(String note) voidsetPreferredLanguage(String prefLang) voidsetTimeZone(String tz) voidvoidsetWirelessAcctNumber(String wirelessActNo) voidupdatePhoto(byte[] photo) Clears the original photo that might have been stored in the application for this user profile, updates it with the specified image, and invalidates all cached images for this user profile.voidwriteVCardTo(OutputStream out)
-
Constructor Details
-
WCUserProfileWrapper
-
-
Method Details
-
getID
- Specified by:
getIDin interfaceWCUserProfile- Throws:
ProfileException
-
getGuid
- Specified by:
getGuidin interfaceWCUserProfile- Throws:
ProfileException
-
getUserName
- Specified by:
getUserNamein interfaceWCUserProfile- Throws:
ProfileException
-
getUpdateDate
- Specified by:
getUpdateDatein interfaceWCUserProfile- Throws:
ProfileException
-
getManager
- Specified by:
getManagerin interfaceWCUserProfile- Returns:
- the user ID of the manager for this user.
- Throws:
ProfileException
-
getManagerDisplayName
Returns the Display Name of the manager for this user, if the Display Name is available. Otherwise it will return the user ID.- Specified by:
getManagerDisplayNamein interfaceWCUserProfile- Returns:
- the Display name of the manager for this user.
- Throws:
ProfileException
-
getEmployeeNumber
- Specified by:
getEmployeeNumberin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessPOBox
- Specified by:
getBusinessPOBoxin interfaceWCUserProfile- Throws:
ProfileException
-
getTimeZone
- Specified by:
getTimeZonein interfaceWCUserProfile- Throws:
ProfileException
-
getTimeZoneAsObject
- Specified by:
getTimeZoneAsObjectin interfaceWCUserProfile- Throws:
ProfileException
-
getDescription
- Specified by:
getDescriptionin interfaceWCUserProfile- Throws:
ProfileException
-
getDepartment
- Specified by:
getDepartmentin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessPager
- Specified by:
getBusinessPagerin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessCity
- Specified by:
getBusinessCityin interfaceWCUserProfile- Throws:
ProfileException
-
getMaidenName
- Specified by:
getMaidenNamein interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessFax
- Specified by:
getBusinessFaxin interfaceWCUserProfile- Throws:
ProfileException
-
getDateofHire
- Specified by:
getDateofHirein interfaceWCUserProfile- Throws:
ProfileException
-
getNameSuffix
- Specified by:
getNameSuffixin interfaceWCUserProfile- Throws:
ProfileException
-
getMiddleName
- Specified by:
getMiddleNamein interfaceWCUserProfile- Throws:
ProfileException
-
getHomePhone
- Specified by:
getHomePhonein interfaceWCUserProfile- Throws:
ProfileException
-
getEmployeeType
- Specified by:
getEmployeeTypein interfaceWCUserProfile- Throws:
ProfileException
-
getLastName
- Specified by:
getLastNamein interfaceWCUserProfile- Throws:
ProfileException
-
getDateofBirth
- Specified by:
getDateofBirthin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessState
- Specified by:
getBusinessStatein interfaceWCUserProfile- Throws:
ProfileException
-
getHomeAddress
- Specified by:
getHomeAddressin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessStreet
- Specified by:
getBusinessStreetin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessPostalCode
- Specified by:
getBusinessPostalCodein interfaceWCUserProfile- Throws:
ProfileException
-
getInitials
- Specified by:
getInitialsin interfaceWCUserProfile- Throws:
ProfileException
-
getFirstName
- Specified by:
getFirstNamein interfaceWCUserProfile- Throws:
ProfileException
-
getDefaultGroup
- Specified by:
getDefaultGroupin interfaceWCUserProfile- Throws:
ProfileException
-
getOrganizationalUnit
- Specified by:
getOrganizationalUnitin interfaceWCUserProfile- Throws:
ProfileException
-
getWirelessAcctNumber
- Specified by:
getWirelessAcctNumberin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessPhone
- Specified by:
getBusinessPhonein interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessCountry
- Specified by:
getBusinessCountryin interfaceWCUserProfile- Throws:
ProfileException
-
getPreferredLanguage
- Specified by:
getPreferredLanguagein interfaceWCUserProfile- Throws:
ProfileException
-
getDisplayName
- Specified by:
getDisplayNamein interfaceWCUserProfile- Throws:
ProfileException
-
getLocalizedDisplayNames
Description copied from interface:WCUserProfileReturns all the display names of the user in various locales.- Specified by:
getLocalizedDisplayNamesin interfaceWCUserProfile- Returns:
- Map of display names of the user keyed by locale (and with key "*" pointing to the default, non-locale-specific, display name).
- Throws:
ProfileException- if any problem occurs retrieving the display names
-
getName
- Specified by:
getNamein interfaceWCUserProfile- Throws:
ProfileException
-
getTitle
- Specified by:
getTitlein interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessEmail
- Specified by:
getBusinessEmailin interfaceWCUserProfile- Throws:
ProfileException
-
getOrganization
- Specified by:
getOrganizationin interfaceWCUserProfile- Throws:
ProfileException
-
getBusinessMobile
- Specified by:
getBusinessMobilein interfaceWCUserProfile- Throws:
ProfileException
-
getExpertise
- Specified by:
getExpertisein interfaceWCUserProfile- Throws:
ProfileException
-
getReportees
- Specified by:
getReporteesin interfaceWCUserProfile- Returns:
- a list of the reportee user IDs for this user.
- Throws:
ProfileException
-
getReporteeList
Description copied from interface:WCUserProfileThis method returns a list of the reportee this user.- Specified by:
getReporteeListin interfaceWCUserProfile- Returns:
- a list of the reportee for this user.
- Throws:
ProfileException
-
getReporteeProfiles
Returns the profiles of the reportees for this user.- Specified by:
getReporteeProfilesin interfaceWCUserProfile- Returns:
- - list of reportee profiles for this user
- Throws:
ProfileException
-
getReporteeDisplayNames
This method returns a list of the reportee user names for this user. If the reportees have Display Names, those will be used. If not, the user ID will be returned.- Specified by:
getReporteeDisplayNamesin interfaceWCUserProfile- Returns:
- a list of the reportee user names for this user.
- Throws:
ProfileException
-
getPersonalStatusNote
- Specified by:
getPersonalStatusNotein interfaceWCUserProfile- Throws:
ProfileException
-
setPersonalStatusNote
- Specified by:
setPersonalStatusNotein interfaceWCUserProfile- Throws:
ProfileException
-
setExpertise
- Specified by:
setExpertisein interfaceWCUserProfile- Throws:
ProfileException
-
setHomePhone
- Specified by:
setHomePhonein interfaceWCUserProfile
-
setHomeAddress
- Specified by:
setHomeAddressin interfaceWCUserProfile
-
setDescription
- Specified by:
setDescriptionin interfaceWCUserProfile
-
setManager
- Specified by:
setManagerin interfaceWCUserProfile
-
setEmployeeNumber
- Specified by:
setEmployeeNumberin interfaceWCUserProfile
-
setBusinessPOBox
- Specified by:
setBusinessPOBoxin interfaceWCUserProfile
-
setTimeZone
- Specified by:
setTimeZonein interfaceWCUserProfile
-
setDepartment
- Specified by:
setDepartmentin interfaceWCUserProfile
-
setBusinessPager
- Specified by:
setBusinessPagerin interfaceWCUserProfile
-
setBusinessCity
- Specified by:
setBusinessCityin interfaceWCUserProfile
-
setMaidenName
- Specified by:
setMaidenNamein interfaceWCUserProfile
-
setBusinessFax
- Specified by:
setBusinessFaxin interfaceWCUserProfile
-
setDateofHire
- Specified by:
setDateofHirein interfaceWCUserProfile
-
setNameSuffix
- Specified by:
setNameSuffixin interfaceWCUserProfile
-
setMiddleName
- Specified by:
setMiddleNamein interfaceWCUserProfile
-
setEmployeeType
- Specified by:
setEmployeeTypein interfaceWCUserProfile
-
setLastName
- Specified by:
setLastNamein interfaceWCUserProfile
-
setDateofBirth
- Specified by:
setDateofBirthin interfaceWCUserProfile
-
setBusinessState
- Specified by:
setBusinessStatein interfaceWCUserProfile
-
setBusinessStreet
- Specified by:
setBusinessStreetin interfaceWCUserProfile
-
setBusinessPostalCode
- Specified by:
setBusinessPostalCodein interfaceWCUserProfile
-
setInitials
- Specified by:
setInitialsin interfaceWCUserProfile
-
setFirstName
- Specified by:
setFirstNamein interfaceWCUserProfile
-
setDefaultGroup
- Specified by:
setDefaultGroupin interfaceWCUserProfile
-
setOrganizationalUnit
- Specified by:
setOrganizationalUnitin interfaceWCUserProfile
-
setWirelessAcctNumber
- Specified by:
setWirelessAcctNumberin interfaceWCUserProfile
-
setBusinessPhone
- Specified by:
setBusinessPhonein interfaceWCUserProfile
-
setBusinessCountry
- Specified by:
setBusinessCountryin interfaceWCUserProfile
-
setPreferredLanguage
- Specified by:
setPreferredLanguagein interfaceWCUserProfile
-
setDisplayName
- Specified by:
setDisplayNamein interfaceWCUserProfile
-
setName
- Specified by:
setNamein interfaceWCUserProfile
-
setTitle
- Specified by:
setTitlein interfaceWCUserProfile
-
setBusinessEmail
- Specified by:
setBusinessEmailin interfaceWCUserProfile
-
setOrganization
- Specified by:
setOrganizationin interfaceWCUserProfile
-
setBusinessMobile
- Specified by:
setBusinessMobilein interfaceWCUserProfile
-
save
- Specified by:
savein interfaceWCUserProfile- Throws:
ProfileException
-
getPhoto
Returns a photo of specified size for this user profile, looking it up in a system cache if possible.- Specified by:
getPhotoin interfaceWCUserProfile- Parameters:
size- the size of the photo to be returned- Returns:
- binary contents of an image representing a photo of the user
- Throws:
ProfileException- if any error occurs while retrieving the photo
-
getOriginalPhoto
Description copied from interface:WCUserProfileMethod to return the 'original' (unscaled) photo of the user.- Specified by:
getOriginalPhotoin interfaceWCUserProfile- Returns:
- binary contents of the image representing the unscaled photo of
the user, or
nullif none could be found - Throws:
ProfileException- if any error occurs while retrieving the photo- See Also:
-
setJPEGPhoto
Stores a specified image into this user profile to serve as the 'original' (unscaled) photo for the user.- Specified by:
setJPEGPhotoin interfaceWCUserProfile- Parameters:
imagePath- path of an image file to be read and stored as the photo- Throws:
ProfileException- if any errors while storing the photo
-
invalidatePhotoCache
Invalidates any photo images that may have been cached for this user profile.- Specified by:
invalidatePhotoCachein interfaceWCUserProfile- Throws:
ProfileException- if any error occurs while clearing the cache.
-
updatePhoto
Description copied from interface:WCUserProfileClears the original photo that might have been stored in the application for this user profile, updates it with the specified image, and invalidates all cached images for this user profile.A typical use of this method is for sync'ing the application-stored photo for this user with whatever is stored in some other backend. For instance, a consumer can choose to call this method passing in the value returned by
WCUserProfile.getOriginalPhoto()if it determines that photo in the consumer backend has changed since the last timeWCUserProfile.getOriginalPhoto()for this user.- Specified by:
updatePhotoin interfaceWCUserProfile- Throws:
ProfileException- if any error occurs in the above process
-
getPhotoUID
Returns an identifier for the photo, that is guaranteed to be unique for this user profile.- Specified by:
getPhotoUIDin interfaceWCUserProfile- Returns:
- A unique string associated with the photo, such that for a given user profile, successive calls to this method would return the same value only if the contents of the 'original' photo associated with the user profile have not changed.
- Throws:
ProfileException- if any error occurs while retrieving identifier
-
getBusinessLocationMapURL
- Specified by:
getBusinessLocationMapURLin interfaceWCUserProfile- Throws:
ProfileException
-
writeVCardTo
- Specified by:
writeVCardToin interfaceWCUserProfile- Throws:
ProfileException
-