It's all about the answers!

Ask a question

Am I Using ServerAPI Best Practices?


Andrew Soloninka (5511924) | asked Mar 22 '13, 11:53 a.m.
 I am creating a server extension and I recently got into trouble by using Client API classes where I should have used Server API classes. I wanted to make sure I was on the right track. 

I was using .itemManager().fetchCompleteItem from ITeamRepository to convert a handle to an item.
I will be replacing it with .fetch from IRepositoryItemService

I was using ITeamBuildClient and ITeamBuildRecordClient to get and save build definitions and build engines.
I replacing these with ITeamBuildService

Am I on the right track?

Accepted answer


permanent link
Jorge Diaz (8664134) | answered Mar 22 '13, 2:56 p.m.
JAZZ DEVELOPER
Hi Andrew,

as discussed, yes "IRepositoryItemService" and "ITeamBuildService" will be services you need to be using for your server side programming for the operations you were trying to use "ITeamRepository", "ITeamBuildClient" and "ITeamBuildRecordClient".

Thanks,

Jorge.

Andrew Soloninka selected this answer as the correct answer

Your answer


Register or to post your answer.