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()
void
Invalidates any photo images that may have been cached for this user profile.void
save()
void
setBusinessCity
(String busCity) void
setBusinessCountry
(String busCountry) void
setBusinessEmail
(String email) void
setBusinessFax
(String busFax) void
setBusinessMobile
(String busMobile) void
setBusinessPager
(String busPager) void
setBusinessPhone
(String busPhone) void
setBusinessPOBox
(String poBox) void
setBusinessPostalCode
(String poCode) void
setBusinessState
(String busState) void
setBusinessStreet
(String busStreet) void
setDateofBirth
(String dob) void
setDateofHire
(String doh) void
setDefaultGroup
(String defGrp) void
setDepartment
(String dept) void
setDescription
(String aboutMe) void
setDisplayName
(String dispName) void
setEmployeeNumber
(String empNo) void
setEmployeeType
(String empType) void
setExpertise
(String expertise) void
setFirstName
(String firstName) void
setHomeAddress
(String homeAddress) void
setHomePhone
(String homePhone) void
setInitials
(String initals) void
setJPEGPhoto
(String imagePath) Stores a specified image into this user profile to serve as the 'original' (unscaled) photo for the user.void
setLastName
(String lastName) void
setMaidenName
(String maidenName) void
setManager
(String manager) void
setMiddleName
(String midName) void
void
setNameSuffix
(String nameSuf) void
setOrganization
(String org) void
setOrganizationalUnit
(String orgUnit) void
setPersonalStatusNote
(String note) void
setPreferredLanguage
(String prefLang) void
setTimeZone
(String tz) void
void
setWirelessAcctNumber
(String wirelessActNo) void
updatePhoto
(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.void
writeVCardTo
(OutputStream out)
-
Constructor Details
-
WCUserProfileWrapper
-
-
Method Details
-
getID
- Specified by:
getID
in interfaceWCUserProfile
- Throws:
ProfileException
-
getGuid
- Specified by:
getGuid
in interfaceWCUserProfile
- Throws:
ProfileException
-
getUserName
- Specified by:
getUserName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getUpdateDate
- Specified by:
getUpdateDate
in interfaceWCUserProfile
- Throws:
ProfileException
-
getManager
- Specified by:
getManager
in 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:
getManagerDisplayName
in interfaceWCUserProfile
- Returns:
- the Display name of the manager for this user.
- Throws:
ProfileException
-
getEmployeeNumber
- Specified by:
getEmployeeNumber
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessPOBox
- Specified by:
getBusinessPOBox
in interfaceWCUserProfile
- Throws:
ProfileException
-
getTimeZone
- Specified by:
getTimeZone
in interfaceWCUserProfile
- Throws:
ProfileException
-
getTimeZoneAsObject
- Specified by:
getTimeZoneAsObject
in interfaceWCUserProfile
- Throws:
ProfileException
-
getDescription
- Specified by:
getDescription
in interfaceWCUserProfile
- Throws:
ProfileException
-
getDepartment
- Specified by:
getDepartment
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessPager
- Specified by:
getBusinessPager
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessCity
- Specified by:
getBusinessCity
in interfaceWCUserProfile
- Throws:
ProfileException
-
getMaidenName
- Specified by:
getMaidenName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessFax
- Specified by:
getBusinessFax
in interfaceWCUserProfile
- Throws:
ProfileException
-
getDateofHire
- Specified by:
getDateofHire
in interfaceWCUserProfile
- Throws:
ProfileException
-
getNameSuffix
- Specified by:
getNameSuffix
in interfaceWCUserProfile
- Throws:
ProfileException
-
getMiddleName
- Specified by:
getMiddleName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getHomePhone
- Specified by:
getHomePhone
in interfaceWCUserProfile
- Throws:
ProfileException
-
getEmployeeType
- Specified by:
getEmployeeType
in interfaceWCUserProfile
- Throws:
ProfileException
-
getLastName
- Specified by:
getLastName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getDateofBirth
- Specified by:
getDateofBirth
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessState
- Specified by:
getBusinessState
in interfaceWCUserProfile
- Throws:
ProfileException
-
getHomeAddress
- Specified by:
getHomeAddress
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessStreet
- Specified by:
getBusinessStreet
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessPostalCode
- Specified by:
getBusinessPostalCode
in interfaceWCUserProfile
- Throws:
ProfileException
-
getInitials
- Specified by:
getInitials
in interfaceWCUserProfile
- Throws:
ProfileException
-
getFirstName
- Specified by:
getFirstName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getDefaultGroup
- Specified by:
getDefaultGroup
in interfaceWCUserProfile
- Throws:
ProfileException
-
getOrganizationalUnit
- Specified by:
getOrganizationalUnit
in interfaceWCUserProfile
- Throws:
ProfileException
-
getWirelessAcctNumber
- Specified by:
getWirelessAcctNumber
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessPhone
- Specified by:
getBusinessPhone
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessCountry
- Specified by:
getBusinessCountry
in interfaceWCUserProfile
- Throws:
ProfileException
-
getPreferredLanguage
- Specified by:
getPreferredLanguage
in interfaceWCUserProfile
- Throws:
ProfileException
-
getDisplayName
- Specified by:
getDisplayName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getLocalizedDisplayNames
Description copied from interface:WCUserProfile
Returns all the display names of the user in various locales.- Specified by:
getLocalizedDisplayNames
in 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:
getName
in interfaceWCUserProfile
- Throws:
ProfileException
-
getTitle
- Specified by:
getTitle
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessEmail
- Specified by:
getBusinessEmail
in interfaceWCUserProfile
- Throws:
ProfileException
-
getOrganization
- Specified by:
getOrganization
in interfaceWCUserProfile
- Throws:
ProfileException
-
getBusinessMobile
- Specified by:
getBusinessMobile
in interfaceWCUserProfile
- Throws:
ProfileException
-
getExpertise
- Specified by:
getExpertise
in interfaceWCUserProfile
- Throws:
ProfileException
-
getReportees
- Specified by:
getReportees
in interfaceWCUserProfile
- Returns:
- a list of the reportee user IDs for this user.
- Throws:
ProfileException
-
getReporteeList
Description copied from interface:WCUserProfile
This method returns a list of the reportee this user.- Specified by:
getReporteeList
in interfaceWCUserProfile
- Returns:
- a list of the reportee for this user.
- Throws:
ProfileException
-
getReporteeProfiles
Returns the profiles of the reportees for this user.- Specified by:
getReporteeProfiles
in 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:
getReporteeDisplayNames
in interfaceWCUserProfile
- Returns:
- a list of the reportee user names for this user.
- Throws:
ProfileException
-
getPersonalStatusNote
- Specified by:
getPersonalStatusNote
in interfaceWCUserProfile
- Throws:
ProfileException
-
setPersonalStatusNote
- Specified by:
setPersonalStatusNote
in interfaceWCUserProfile
- Throws:
ProfileException
-
setExpertise
- Specified by:
setExpertise
in interfaceWCUserProfile
- Throws:
ProfileException
-
setHomePhone
- Specified by:
setHomePhone
in interfaceWCUserProfile
-
setHomeAddress
- Specified by:
setHomeAddress
in interfaceWCUserProfile
-
setDescription
- Specified by:
setDescription
in interfaceWCUserProfile
-
setManager
- Specified by:
setManager
in interfaceWCUserProfile
-
setEmployeeNumber
- Specified by:
setEmployeeNumber
in interfaceWCUserProfile
-
setBusinessPOBox
- Specified by:
setBusinessPOBox
in interfaceWCUserProfile
-
setTimeZone
- Specified by:
setTimeZone
in interfaceWCUserProfile
-
setDepartment
- Specified by:
setDepartment
in interfaceWCUserProfile
-
setBusinessPager
- Specified by:
setBusinessPager
in interfaceWCUserProfile
-
setBusinessCity
- Specified by:
setBusinessCity
in interfaceWCUserProfile
-
setMaidenName
- Specified by:
setMaidenName
in interfaceWCUserProfile
-
setBusinessFax
- Specified by:
setBusinessFax
in interfaceWCUserProfile
-
setDateofHire
- Specified by:
setDateofHire
in interfaceWCUserProfile
-
setNameSuffix
- Specified by:
setNameSuffix
in interfaceWCUserProfile
-
setMiddleName
- Specified by:
setMiddleName
in interfaceWCUserProfile
-
setEmployeeType
- Specified by:
setEmployeeType
in interfaceWCUserProfile
-
setLastName
- Specified by:
setLastName
in interfaceWCUserProfile
-
setDateofBirth
- Specified by:
setDateofBirth
in interfaceWCUserProfile
-
setBusinessState
- Specified by:
setBusinessState
in interfaceWCUserProfile
-
setBusinessStreet
- Specified by:
setBusinessStreet
in interfaceWCUserProfile
-
setBusinessPostalCode
- Specified by:
setBusinessPostalCode
in interfaceWCUserProfile
-
setInitials
- Specified by:
setInitials
in interfaceWCUserProfile
-
setFirstName
- Specified by:
setFirstName
in interfaceWCUserProfile
-
setDefaultGroup
- Specified by:
setDefaultGroup
in interfaceWCUserProfile
-
setOrganizationalUnit
- Specified by:
setOrganizationalUnit
in interfaceWCUserProfile
-
setWirelessAcctNumber
- Specified by:
setWirelessAcctNumber
in interfaceWCUserProfile
-
setBusinessPhone
- Specified by:
setBusinessPhone
in interfaceWCUserProfile
-
setBusinessCountry
- Specified by:
setBusinessCountry
in interfaceWCUserProfile
-
setPreferredLanguage
- Specified by:
setPreferredLanguage
in interfaceWCUserProfile
-
setDisplayName
- Specified by:
setDisplayName
in interfaceWCUserProfile
-
setName
- Specified by:
setName
in interfaceWCUserProfile
-
setTitle
- Specified by:
setTitle
in interfaceWCUserProfile
-
setBusinessEmail
- Specified by:
setBusinessEmail
in interfaceWCUserProfile
-
setOrganization
- Specified by:
setOrganization
in interfaceWCUserProfile
-
setBusinessMobile
- Specified by:
setBusinessMobile
in interfaceWCUserProfile
-
save
- Specified by:
save
in 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:
getPhoto
in 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:WCUserProfile
Method to return the 'original' (unscaled) photo of the user.- Specified by:
getOriginalPhoto
in interfaceWCUserProfile
- Returns:
- binary contents of the image representing the unscaled photo of
the user, or
null
if 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:
setJPEGPhoto
in 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:
invalidatePhotoCache
in interfaceWCUserProfile
- Throws:
ProfileException
- if any error occurs while clearing the cache.
-
updatePhoto
Description copied from interface:WCUserProfile
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.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:
updatePhoto
in 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:
getPhotoUID
in 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:
getBusinessLocationMapURL
in interfaceWCUserProfile
- Throws:
ProfileException
-
writeVCardTo
- Specified by:
writeVCardTo
in interfaceWCUserProfile
- Throws:
ProfileException
-