public class WCUserProfileWrapper extends java.lang.Object implements WCUserProfile
WCUserProfile.PhotoSize| Constructor and Description |
|---|
WCUserProfileWrapper(WCUserProfile userProfile) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBusinessCity() |
java.lang.String |
getBusinessCountry() |
java.lang.String |
getBusinessEmail() |
java.lang.String |
getBusinessFax() |
java.lang.String |
getBusinessLocationMapURL() |
java.lang.String |
getBusinessMobile() |
java.lang.String |
getBusinessPager() |
java.lang.String |
getBusinessPhone() |
java.lang.String |
getBusinessPOBox() |
java.lang.String |
getBusinessPostalCode() |
java.lang.String |
getBusinessState() |
java.lang.String |
getBusinessStreet() |
java.lang.String |
getDateofBirth() |
java.lang.String |
getDateofHire() |
java.lang.String |
getDefaultGroup() |
java.lang.String |
getDepartment() |
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName() |
java.lang.String |
getEmployeeNumber() |
java.lang.String |
getEmployeeType() |
java.lang.String |
getExpertise() |
java.lang.String |
getFirstName() |
java.lang.String |
getGuid() |
java.lang.String |
getHomeAddress() |
java.lang.String |
getHomePhone() |
java.lang.String |
getID() |
java.lang.String |
getInitials() |
java.lang.String |
getLastName() |
java.util.Map<java.lang.String,java.lang.String> |
getLocalizedDisplayNames()
Returns all the display names of the user in various locales.
|
java.lang.String |
getMaidenName() |
java.lang.String |
getManager() |
java.lang.String |
getManagerDisplayName()
Returns the Display Name of the manager for this user, if
the Display Name is available.
|
java.lang.String |
getMiddleName() |
java.lang.String |
getName() |
java.lang.String |
getNameSuffix() |
java.lang.String |
getOrganization() |
java.lang.String |
getOrganizationalUnit() |
byte[] |
getOriginalPhoto()
Method to return the 'original' (unscaled) photo of the user.
|
java.lang.String |
getPersonalStatusNote() |
byte[] |
getPhoto(WCUserProfile.PhotoSize size)
Returns a photo of specified size for this user profile, looking it up
in a system cache if possible.
|
java.lang.String |
getPhotoUID()
Returns an identifier for the photo, that is guaranteed to be unique
for this user profile.
|
java.lang.String |
getPreferredLanguage() |
java.util.List<java.lang.String> |
getReporteeDisplayNames()
This method returns a list of the reportee user names for this user.
|
java.util.List<Reportee> |
getReporteeList()
This method returns a list of the reportee this user.
|
java.util.List<WCUserProfile> |
getReporteeProfiles()
Returns the profiles of the reportees for this user.
|
java.util.List<java.lang.String> |
getReportees() |
java.lang.String |
getTimeZone() |
java.util.TimeZone |
getTimeZoneAsObject() |
java.lang.String |
getTitle() |
java.sql.Timestamp |
getUpdateDate() |
java.lang.String |
getUserName() |
java.lang.String |
getWirelessAcctNumber() |
void |
invalidatePhotoCache()
Invalidates any photo images that may have been cached for this
user profile.
|
void |
save() |
void |
setBusinessCity(java.lang.String busCity) |
void |
setBusinessCountry(java.lang.String busCountry) |
void |
setBusinessEmail(java.lang.String email) |
void |
setBusinessFax(java.lang.String busFax) |
void |
setBusinessMobile(java.lang.String busMobile) |
void |
setBusinessPager(java.lang.String busPager) |
void |
setBusinessPhone(java.lang.String busPhone) |
void |
setBusinessPOBox(java.lang.String poBox) |
void |
setBusinessPostalCode(java.lang.String poCode) |
void |
setBusinessState(java.lang.String busState) |
void |
setBusinessStreet(java.lang.String busStreet) |
void |
setDateofBirth(java.lang.String dob) |
void |
setDateofHire(java.lang.String doh) |
void |
setDefaultGroup(java.lang.String defGrp) |
void |
setDepartment(java.lang.String dept) |
void |
setDescription(java.lang.String aboutMe) |
void |
setDisplayName(java.lang.String dispName) |
void |
setEmployeeNumber(java.lang.String empNo) |
void |
setEmployeeType(java.lang.String empType) |
void |
setExpertise(java.lang.String expertise) |
void |
setFirstName(java.lang.String firstName) |
void |
setHomeAddress(java.lang.String homeAddress) |
void |
setHomePhone(java.lang.String homePhone) |
void |
setInitials(java.lang.String initals) |
void |
setJPEGPhoto(java.lang.String imagePath)
Stores a specified image into this user profile to serve as the
'original' (unscaled) photo for the user.
|
void |
setLastName(java.lang.String lastName) |
void |
setMaidenName(java.lang.String maidenName) |
void |
setManager(java.lang.String manager) |
void |
setMiddleName(java.lang.String midName) |
void |
setName(java.lang.String name) |
void |
setNameSuffix(java.lang.String nameSuf) |
void |
setOrganization(java.lang.String org) |
void |
setOrganizationalUnit(java.lang.String orgUnit) |
void |
setPersonalStatusNote(java.lang.String note) |
void |
setPreferredLanguage(java.lang.String prefLang) |
void |
setTimeZone(java.lang.String tz) |
void |
setTitle(java.lang.String title) |
void |
setWirelessAcctNumber(java.lang.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(java.io.OutputStream out) |
public WCUserProfileWrapper(WCUserProfile userProfile)
public java.lang.String getID()
throws ProfileException
getID in interface WCUserProfileProfileExceptionpublic java.lang.String getGuid()
throws ProfileException
getGuid in interface WCUserProfileProfileExceptionpublic java.lang.String getUserName()
throws ProfileException
getUserName in interface WCUserProfileProfileExceptionpublic java.sql.Timestamp getUpdateDate()
throws ProfileException
getUpdateDate in interface WCUserProfileProfileExceptionpublic java.lang.String getManager()
throws ProfileException
getManager in interface WCUserProfileProfileExceptionpublic java.lang.String getManagerDisplayName()
throws ProfileException
getManagerDisplayName in interface WCUserProfileProfileExceptionpublic java.lang.String getEmployeeNumber()
throws ProfileException
getEmployeeNumber in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessPOBox()
throws ProfileException
getBusinessPOBox in interface WCUserProfileProfileExceptionpublic java.lang.String getTimeZone()
throws ProfileException
getTimeZone in interface WCUserProfileProfileExceptionpublic java.util.TimeZone getTimeZoneAsObject()
throws ProfileException
getTimeZoneAsObject in interface WCUserProfileProfileExceptionpublic java.lang.String getDescription()
throws ProfileException
getDescription in interface WCUserProfileProfileExceptionpublic java.lang.String getDepartment()
throws ProfileException
getDepartment in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessPager()
throws ProfileException
getBusinessPager in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessCity()
throws ProfileException
getBusinessCity in interface WCUserProfileProfileExceptionpublic java.lang.String getMaidenName()
throws ProfileException
getMaidenName in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessFax()
throws ProfileException
getBusinessFax in interface WCUserProfileProfileExceptionpublic java.lang.String getDateofHire()
throws ProfileException
getDateofHire in interface WCUserProfileProfileExceptionpublic java.lang.String getNameSuffix()
throws ProfileException
getNameSuffix in interface WCUserProfileProfileExceptionpublic java.lang.String getMiddleName()
throws ProfileException
getMiddleName in interface WCUserProfileProfileExceptionpublic java.lang.String getHomePhone()
throws ProfileException
getHomePhone in interface WCUserProfileProfileExceptionpublic java.lang.String getEmployeeType()
throws ProfileException
getEmployeeType in interface WCUserProfileProfileExceptionpublic java.lang.String getLastName()
throws ProfileException
getLastName in interface WCUserProfileProfileExceptionpublic java.lang.String getDateofBirth()
throws ProfileException
getDateofBirth in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessState()
throws ProfileException
getBusinessState in interface WCUserProfileProfileExceptionpublic java.lang.String getHomeAddress()
throws ProfileException
getHomeAddress in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessStreet()
throws ProfileException
getBusinessStreet in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessPostalCode()
throws ProfileException
getBusinessPostalCode in interface WCUserProfileProfileExceptionpublic java.lang.String getInitials()
throws ProfileException
getInitials in interface WCUserProfileProfileExceptionpublic java.lang.String getFirstName()
throws ProfileException
getFirstName in interface WCUserProfileProfileExceptionpublic java.lang.String getDefaultGroup()
throws ProfileException
getDefaultGroup in interface WCUserProfileProfileExceptionpublic java.lang.String getOrganizationalUnit()
throws ProfileException
getOrganizationalUnit in interface WCUserProfileProfileExceptionpublic java.lang.String getWirelessAcctNumber()
throws ProfileException
getWirelessAcctNumber in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessPhone()
throws ProfileException
getBusinessPhone in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessCountry()
throws ProfileException
getBusinessCountry in interface WCUserProfileProfileExceptionpublic java.lang.String getPreferredLanguage()
throws ProfileException
getPreferredLanguage in interface WCUserProfileProfileExceptionpublic java.lang.String getDisplayName()
throws ProfileException
getDisplayName in interface WCUserProfileProfileExceptionpublic java.util.Map<java.lang.String,java.lang.String> getLocalizedDisplayNames()
throws ProfileException
WCUserProfilegetLocalizedDisplayNames in interface WCUserProfileProfileException - if any problem occurs retrieving the display namespublic java.lang.String getName()
throws ProfileException
getName in interface WCUserProfileProfileExceptionpublic java.lang.String getTitle()
throws ProfileException
getTitle in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessEmail()
throws ProfileException
getBusinessEmail in interface WCUserProfileProfileExceptionpublic java.lang.String getOrganization()
throws ProfileException
getOrganization in interface WCUserProfileProfileExceptionpublic java.lang.String getBusinessMobile()
throws ProfileException
getBusinessMobile in interface WCUserProfileProfileExceptionpublic java.lang.String getExpertise()
throws ProfileException
getExpertise in interface WCUserProfileProfileExceptionpublic java.util.List<java.lang.String> getReportees()
throws ProfileException
getReportees in interface WCUserProfileProfileExceptionpublic java.util.List<Reportee> getReporteeList() throws ProfileException
WCUserProfilegetReporteeList in interface WCUserProfileProfileExceptionpublic java.util.List<WCUserProfile> getReporteeProfiles() throws ProfileException
getReporteeProfiles in interface WCUserProfileProfileExceptionpublic java.util.List<java.lang.String> getReporteeDisplayNames()
throws ProfileException
getReporteeDisplayNames in interface WCUserProfileProfileExceptionpublic java.lang.String getPersonalStatusNote()
throws ProfileException
getPersonalStatusNote in interface WCUserProfileProfileExceptionpublic void setPersonalStatusNote(java.lang.String note)
throws ProfileException
setPersonalStatusNote in interface WCUserProfileProfileExceptionpublic void setExpertise(java.lang.String expertise)
throws ProfileException
setExpertise in interface WCUserProfileProfileExceptionpublic void setHomePhone(java.lang.String homePhone)
setHomePhone in interface WCUserProfilepublic void setHomeAddress(java.lang.String homeAddress)
setHomeAddress in interface WCUserProfilepublic void setDescription(java.lang.String aboutMe)
setDescription in interface WCUserProfilepublic void setManager(java.lang.String manager)
setManager in interface WCUserProfilepublic void setEmployeeNumber(java.lang.String empNo)
setEmployeeNumber in interface WCUserProfilepublic void setBusinessPOBox(java.lang.String poBox)
setBusinessPOBox in interface WCUserProfilepublic void setTimeZone(java.lang.String tz)
setTimeZone in interface WCUserProfilepublic void setDepartment(java.lang.String dept)
setDepartment in interface WCUserProfilepublic void setBusinessPager(java.lang.String busPager)
setBusinessPager in interface WCUserProfilepublic void setBusinessCity(java.lang.String busCity)
setBusinessCity in interface WCUserProfilepublic void setMaidenName(java.lang.String maidenName)
setMaidenName in interface WCUserProfilepublic void setBusinessFax(java.lang.String busFax)
setBusinessFax in interface WCUserProfilepublic void setDateofHire(java.lang.String doh)
setDateofHire in interface WCUserProfilepublic void setNameSuffix(java.lang.String nameSuf)
setNameSuffix in interface WCUserProfilepublic void setMiddleName(java.lang.String midName)
setMiddleName in interface WCUserProfilepublic void setEmployeeType(java.lang.String empType)
setEmployeeType in interface WCUserProfilepublic void setLastName(java.lang.String lastName)
setLastName in interface WCUserProfilepublic void setDateofBirth(java.lang.String dob)
setDateofBirth in interface WCUserProfilepublic void setBusinessState(java.lang.String busState)
setBusinessState in interface WCUserProfilepublic void setBusinessStreet(java.lang.String busStreet)
setBusinessStreet in interface WCUserProfilepublic void setBusinessPostalCode(java.lang.String poCode)
setBusinessPostalCode in interface WCUserProfilepublic void setInitials(java.lang.String initals)
setInitials in interface WCUserProfilepublic void setFirstName(java.lang.String firstName)
setFirstName in interface WCUserProfilepublic void setDefaultGroup(java.lang.String defGrp)
setDefaultGroup in interface WCUserProfilepublic void setOrganizationalUnit(java.lang.String orgUnit)
setOrganizationalUnit in interface WCUserProfilepublic void setWirelessAcctNumber(java.lang.String wirelessActNo)
setWirelessAcctNumber in interface WCUserProfilepublic void setBusinessPhone(java.lang.String busPhone)
setBusinessPhone in interface WCUserProfilepublic void setBusinessCountry(java.lang.String busCountry)
setBusinessCountry in interface WCUserProfilepublic void setPreferredLanguage(java.lang.String prefLang)
setPreferredLanguage in interface WCUserProfilepublic void setDisplayName(java.lang.String dispName)
setDisplayName in interface WCUserProfilepublic void setName(java.lang.String name)
setName in interface WCUserProfilepublic void setTitle(java.lang.String title)
setTitle in interface WCUserProfilepublic void setBusinessEmail(java.lang.String email)
setBusinessEmail in interface WCUserProfilepublic void setOrganization(java.lang.String org)
setOrganization in interface WCUserProfilepublic void setBusinessMobile(java.lang.String busMobile)
setBusinessMobile in interface WCUserProfilepublic void save()
throws ProfileException
save in interface WCUserProfileProfileExceptionpublic byte[] getPhoto(WCUserProfile.PhotoSize size) throws ProfileException
getPhoto in interface WCUserProfilesize - the size of the photo to be returnedProfileException - if any error occurs while retrieving the photopublic byte[] getOriginalPhoto()
throws ProfileException
WCUserProfilegetOriginalPhoto in interface WCUserProfilenull if none could be foundProfileException - if any error occurs while retrieving the photoWCUserProfile.setJPEGPhoto(java.lang.String)public void setJPEGPhoto(java.lang.String imagePath)
throws ProfileException
setJPEGPhoto in interface WCUserProfileimagePath - path of an image file to be read and stored as the photoProfileException - if any errors while storing the photopublic void invalidatePhotoCache()
throws ProfileException
invalidatePhotoCache in interface WCUserProfileProfileException - if any error occurs while clearing the cache.public void updatePhoto(byte[] photo)
throws ProfileException
WCUserProfileA 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 time
WCUserProfile.getOriginalPhoto() for this user.
updatePhoto in interface WCUserProfileProfileException - if any error occurs in the above processpublic java.lang.String getPhotoUID()
throws ProfileException
getPhotoUID in interface WCUserProfileProfileException - if any error occurs while retrieving identifierpublic java.lang.String getBusinessLocationMapURL()
throws ProfileException
getBusinessLocationMapURL in interface WCUserProfileProfileExceptionpublic void writeVCardTo(java.io.OutputStream out)
throws ProfileException
writeVCardTo in interface WCUserProfileProfileException