It's all about the answers!

Ask a question

Retrieving IContributorHandle using Contributor attributes


0
1
vinay reddy (1711205) | asked Mar 06 '09, 2:00 p.m.
Contributor item attributes (values) would be coming from UI and using any of those values, I need to get the IContributorHandle of that Contributor at the service end. Which attribute could be used for this purpose and what is the relevant api function to get the handle?

One answer



permanent link
vinay reddy (1711205) | answered Mar 13 '09, 3:15 a.m.
itemId is a good choice and one can use that like the following to get the contributor handle

IContributorHandle contributorHandle = (IContributorHandle) IContributor.ITEM_TYPE
.createItemHandle(UUID.valueOf(params.itemId), null);//itemId is a string here passed from UI

Your answer


Register or to post your answer.