public String getUsername() returns a string representing
the user name of the person.
Parameters
None
Returns
Returns a String representing the user name of the person.
Example
PersonService ps = session.getServiceRegistry().getPersonService(); Person p = ps.getPerson("tbedford"); Log.d(TAG, "avatarIdentifier: " + p.getAvatarIdentifier()); Log.d(TAG, "firstName: " + p.getFirstName()); Log.d(TAG, "fullName: " + p.getFullName()); Log.d(TAG, "identifier: " + p.getIdentifier()); Log.d(TAG, "lastName: " + p.getLastName());
Would produce output such as the following:
07-03 10:31:39.287: D/URL(628): http://10.244.51.185:8080/alfresco/service/api/people/tbedford 07-03 10:31:39.337: D/ConnectToRepo(628): avatarIdentifier: workspace://SpacesStore/65eb9006-7cac-46f2-a1af-8498351cdc25 07-03 10:31:39.337: D/ConnectToRepo(628): firstName: Tony 07-03 10:31:39.337: D/ConnectToRepo(628): fullName: Tony Bedford 07-03 10:31:39.337: D/ConnectToRepo(628): identifier: tbedford 07-03 10:31:39.337: D/ConnectToRepo(628): lastName: Bedford