how can i search,get or fetch members by user id? RTC 402 plugin
Accepted answer
Because the plugin extends AbstractService you have access to the getService() method.
so you can load the IContributor service.
import com.ibm.team.repository.common.service.IContributorService;
IContributorService varname = getService(IContributorService.class);
now you have access to all the fetch methods u want.
note that in your plugin xml, you must declare
"com.ibm.team.repository.common.service.IContributorService" as a required service, or you cannot load it.
amazing what u can find by looking at the plugin.xml for the repository.service plugin in the sdk.
folder (for example) rtc 4.0.3 gm/RTC-SDK-4.0.3/plugins/com.ibm.team.repository.service_1.2.1400.v20130511_2355
<prerequisites>
<optionalService interface="com.ibm.team.repository.common.service.IContributorService"/>
</prerequisites>
so you can load the IContributor service.
import com.ibm.team.repository.common.service.IContributorService;
IContributorService varname = getService(IContributorService.class);
now you have access to all the fetch methods u want.
note that in your plugin xml, you must declare
"com.ibm.team.repository.common.service.IContributorService" as a required service, or you cannot load it.
amazing what u can find by looking at the plugin.xml for the repository.service plugin in the sdk.
folder (for example) rtc 4.0.3 gm/RTC-SDK-4.0.3/plugins/com.ibm.team.repository.service_1.2.1400.v20130511_2355
<prerequisites>
<optionalService interface="com.ibm.team.repository.common.service.IContributorService"/>
</prerequisites>