Using IItemManager to modify items in the repository
I am trying to use IItemManager to modify items in the repository, but IItemManager.applyItemUpdates() does not seem to commit any change to the repository. Is this the correct way?
My problem is: I have an item attribute of type Content, and I am wondering how to upload data from the client. The jazzbot example is only server-side, while the documentation on IContentManager only shows how to upload a file directly to the workspace. Moreover, it refers to the non-existing function com.ibm.team.repository.client.ITeamRepository.save(IAuditable).
My problem is: I have an item attribute of type Content, and I am wondering how to upload data from the client. The jazzbot example is only server-side, while the documentation on IContentManager only shows how to upload a file directly to the workspace. Moreover, it refers to the non-existing function com.ibm.team.repository.client.ITeamRepository.save(IAuditable).
9 answers
I did. But to save the contents... where? I cannot pass an IContent in the params, and I cannot use IItemManager to modify the item in the repository.
The only way I see now is just a workaround, i.e. upload the contents somewhere in the workspace and then ask the server to read the content from that place and to put them into the item.
Or is there any straightforward support to perform this operation?
The only way I see now is just a workaround, i.e. upload the contents somewhere in the workspace and then ask the server to read the content from that place and to put them into the item.
Or is there any straightforward support to perform this operation?
Yes, I defined the item type myself using EMF Ecore. I defined a service derived from com.ibm.team.repository.service.AbstractService as I saw in the example https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough . The problem is: how can I pass the Content to the save method? IParameterWrapper only supports Strings and primitive types.