The sample code to get the currently logged in user profile information is as below
import oracle.webcenter.peopleconnections.profile.WCUserProfile;
String currentUserId = ADFContext.getCurrent().getSecurityContext().getUserName();
WCUserProfile currentProfile = ProfileFactory.getProfileManager().getProfile(currentUserId);
currentProfile.getDisplayName();
The complete documentation for WCUserProfile is here
import oracle.webcenter.peopleconnections.profile.WCUserProfile;
String currentUserId = ADFContext.getCurrent().getSecurityContext().getUserName();
WCUserProfile currentProfile = ProfileFactory.getProfileManager().getProfile(currentUserId);
currentProfile.getDisplayName();
The complete documentation for WCUserProfile is here
Some other supported methods are as below
- currentProfile.getBusinessCity()
- currentProfile.getBusinessCountry()
- currentProfile.getBusinessEmail()
- currentProfile.getBusinessFax()
- currentProfile.getBusinessLocationMapURL()
- currentProfile.getBusinessMobile()
- currentProfile.getBusinessPOBox()
- currentProfile.getBusinessPager()
- currentProfile.getBusinessPhone()
- currentProfile.getBusinessPostalCode()
- currentProfile.getBusinessState()
- currentProfile.getBusinessStreet()
- currentProfile.getDateofBirth()
- currentProfile.getDateofHire()
- currentProfile.getDefaultGroup()
- currentProfile.getDepartment()
- currentProfile.getDescription()
- currentProfile.getDisplayName()
- currentProfile.getEmployeeNumber()
- currentProfile.getEmployeeType()
- currentProfile.getExpertise()
- currentProfile.getFirstName()
- currentProfile.getGuid()
- currentProfile.getHomeAddress()
- currentProfile.getHomePhone()
- currentProfile.getID()
- currentProfile.getInitials()
- currentProfile.getLastName()
- currentProfile.getLocalizedDisplayNames()
- currentProfile.getMaidenName()
- currentProfile.getManager()
- currentProfile.getManagerDisplayName()
- currentProfile.getMiddleName()
- currentProfile.getName()
- currentProfile.getNameSuffix()
- currentProfile.getOrganization()
- currentProfile.getOrganizationalUnit()
- currentProfile.getOriginalPhoto()
- currentProfile.getPersonalStatusNote()
- currentProfile.getPhoto(WCUserProfile.PhotoSize size)
- currentProfile.getPhotoUID()
- currentProfile.getPreferredLanguage()
- currentProfile.getReporteeDisplayNames()
- currentProfile.getReporteeList()
- currentProfile.getReporteeProfiles()
- currentProfile.getReportees()
- currentProfile.getTimeZone()
- currentProfile.getTimeZoneAsObject()
- currentProfile.getTitle()
- currentProfile.getUpdateDate()
- currentProfile.getUserName()
- currentProfile.getWirelessAcctNumber()
No comments:
Post a Comment