How to get username out of it's UUID ?
5 answers
the contributormanager is correct.
in the javadoc here is the api
fetchContributorRecordByIdentity(IContributorIdentity identity, which returns the contributor record from the identity, which is a UUID
IContributorRecord.getName(); will return the name.
and the javadoc is in the download section
Sam
HI,
I tried but did't make it.
I'm using server side plugin and need to have the username/userid on deliver action.
I thought I will make it like this:
String wkspOwner = data.getSourceWorkspace().getOwner().toString();
but it doesn't give the userid.
How can I get the userid out of the user UUID or how can I get the userid on deliver action (server side).
Need your assistance,
Yehiel
HI I got the data:
/*********get user name*************************
IContributorHandle wkspOwnerhandle = (IContributorHandle) data.getSourceWorkspace().getOwner();
IItem contributerHandle = itemService.fetchItem(wkspOwnerhandle, null);
IContributor userid = (IContributor) contributerHandle.getFullState();
String userName = userid.getName();
I did't use UUID but I got the userid of the wkspace owner on deliver operation - server side.
Regards,
Yehiel