Some questions on extending Jazz Repository
![]()
Hi,
I was trying to extend the Jazz repository and would really appreciate help in the following: a) Once I have uploaded some data in the repository, how can I remove/delete that data ? Do I need to expose delete operations from my service interface ? b) Once I create a data model ecore and generate a Jazz component, are there some basic CRUD services generated which I can avail w/o needing to write my own set of services ? c) The items I have defined in the repository, extend the basic type IAuditable. Is there any service available to get the audit history for an item and further on a particular instance of the item in that history ? Thanks - Vibha |
2 answers
![]()
When you create a new data model in Jazz, you can use the IRepositoryItemService on the server side to create/update/delete your new items. You can also use that to fetch the historic states for items that extend IAuditable.
For allowing creating of items remotely, you need to expose your own service that allows the creation or deletion. Usually, the service that is exposed will provide extra checks to make sure that the proper users are creating or deleting data and that data being saved is valid. |
![]()
vssinha wrote:
Hi, If you're interested in basic CRUD services to your artifacts, you can extend (or not) the ICrudService interface that allows for RESTful access to your artifacts. That interface and its approach is described here: https://jazz.net/wiki/bin/view/Main/JazzRESTServicesV1 Todd Jazz Server Development |