Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » how create CDO branches
how create CDO branches [message #1435250] Wed, 01 October 2014 08:01 Go to next message
Made Leine is currently offline Made LeineFriend
Messages: 11
Registered: September 2014
Junior Member
Hi!

I just started to play a bit with CDO and it seems very interesting. I managed to create a repository and some users. I do not find any documentation about how to create branches and how can I add privileges on specific branches. Where can I find something about it? Thank you !
Re: how create CDO branches [message #1435276 is a reply to message #1435250] Wed, 01 October 2014 08:47 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6325
Registered: July 2009
Senior Member
Am 01.10.2014 um 10:01 schrieb Made Leine:
> Hi!
>
> I just started to play a bit with CDO and it seems very interesting. I managed to create a repository and some users.
> I do not find any documentation about how to create branches and how can I add privileges on specific branches. Where
> can I find something about it? Thank you !
Programmatically you create branches via CDOBranch.createBranch(baseTimestamp). You get access to the existing main
branch via session.getBranchManager().getMainBranch().

Interactively you create branches via the CDO Sessions view by right-clicking a session and selecting "Create Branch".

Privileges don't take branches into account. If a user has access to an object X this access applies to all branches and
all times.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: how create CDO branches [message #1435410 is a reply to message #1435276] Wed, 01 October 2014 12:55 Go to previous messageGo to next message
Made Leine is currently offline Made LeineFriend
Messages: 11
Registered: September 2014
Junior Member
Hi!

Thank you very much for the answer. I don't know if I made myself clear. I would like the users to have rights on specific subtrees of the object. For example , an user can modify only one part of the object. Is there any possibility to achieve this ?
Re: how create CDO branches [message #1435992 is a reply to message #1435410] Thu, 02 October 2014 08:22 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6325
Registered: July 2009
Senior Member
Am 01.10.2014 um 14:55 schrieb Made Leine:
> Hi!
>
> Thank you very much for the answer. I don't know if I made myself clear. I would like the users to have rights on
> specific subtrees of the object. For example , an user can modify only one part of the object. Is there any
> possibility to achieve this ?
Did you already read http://wiki.eclipse.org/CDO/Security_Manager ?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: how create CDO branches [message #1436175 is a reply to message #1435992] Thu, 02 October 2014 14:06 Go to previous message
Made Leine is currently offline Made LeineFriend
Messages: 11
Registered: September 2014
Junior Member
Yes..I've read it before , but I haven;t notice that I can create my own roles. I am so sorry . Thank you very much !
Previous Topic:Copying derived attribute
Next Topic:Load ecore metamodel in eclipse runtime
Goto Forum:
  


Current Time: Sat Nov 25 09:40:43 GMT 2017

Powered by FUDForum. Page generated in 0.01770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software