Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Store] A resource lock?
[EMF Store] A resource lock? [message #1063987] Mon, 17 June 2013 03:22 Go to next message
Laurent Odermatt is currently offline Laurent Odermatt
Messages: 13
Registered: May 2013
Junior Member
Hello,

Is it possible to lock an object / project against other's modifications? I didn't find anything about this functionality.
If it is not implemented yet, do you have any idea how to do it?

Cheers,

Laurent
Re: [EMF Store] A resource lock? [message #1063991 is a reply to message #1063987] Mon, 17 June 2013 03:49 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian Koegel
Messages: 188
Registered: July 2009
Senior Member
Hi Laurent,

no it is currently not possible to do this since it was not yet
implemented.
To implement it, one could use properties on the project to define which
objects are locked. A question in terms of requirements is how to
distribute the locks to offline clients? It could happen that a lock is
established while a client has already checked out a project. Should the
server in this case reject a commit on the locked contents in the project?

Cheers,
Maximilian

Am 17.06.2013 09:22, schrieb Laurent Odermatt:
> Hello,
>
> Is it possible to lock an object / project against other's
> modifications? I didn't find anything about this functionality.
> If it is not implemented yet, do you have any idea how to do it?
>
> Cheers,
>
> Laurent


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [EMF Store] A resource lock? [message #1064014 is a reply to message #1063991] Mon, 17 June 2013 05:34 Go to previous messageGo to next message
Laurent Odermatt is currently offline Laurent Odermatt
Messages: 13
Registered: May 2013
Junior Member
In my mind, it was like this, I don't see any other option but reject the user's
commit.
There are risks of work losses but the only other solution I see now is to send a
message from the server to every other clients to "say" them what objects are locked
when an user lock them... solution which doesn't match the EMF Store philosophy, and
doesn't work with offline clients.

Cheers,

Laurent

[Updated on: Mon, 17 June 2013 05:35]

Report message to a moderator

Re: [EMF Store] A resource lock? [message #1064209 is a reply to message #1064014] Tue, 18 June 2013 05:13 Go to previous message
Maximilian Koegel is currently offline Maximilian Koegel
Messages: 188
Registered: July 2009
Senior Member
> In my mind, it was like this, I don't see any other option but reject
> the user's commit. There are risks of work losses but the only other
> solution I see now is to send a message from the server to every other
> clients to "say" them what objects are locked when an user lock them...
> solution which doesn't match the EMF Store philosophy, and doesn't work
> with offline clients.
Seems reasonable to me. Additionally partial commits could be supported
to allow users to commit all changes but changes to the locked objects.

Cheers,
Maximilian

>
> Cheers,
>
> Laurent


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Previous Topic:Texo authentication and json query
Next Topic:[Texo] How to know attributes of an object in order to make update/insert requests?
Goto Forum:
  


Current Time: Thu Aug 21 14:20:52 EDT 2014

Powered by FUDForum. Page generated in 0.01780 seconds