It's all about the answers!

Ask a question

Some questions on extending Jazz Repository


Vibha Sinha (1643610) | asked Jul 09 '08, 6:44 a.m.
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



permanent link
Matt Lavin (2.7k2) | answered Jul 09 '08, 9:06 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
Todd Lainhart (40611) | answered Jul 10 '08, 10:28 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
vssinha wrote:
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 ?


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

Your answer


Register or to post your answer.