Book a Demo

Author Topic: Locking relationships in a diagram  (Read 7304 times)

Whyves

  • EA Novice
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
Locking relationships in a diagram
« on: April 21, 2016, 05:03:33 am »
Hi,

I am experimenting with locking model elements and diagrams and cannot seem to be able to protect relationship properly. Here's what I am trying to accomplish:

  • Package and its content (elements, diagrams) are locked
  • User shallow copy a diagram in the locked package into another package which is unlocked. The new diagram is unlocked but the elements in the new diagram are locked due to shallow copying
  • User cannot delete any elements bu CAN delete relationships between the locked elements

This behavior goes against what I expected. I expected that the user could add new relationship since the diagram is unlocked but I didn't expect he could permanently delete the existing relationships between the locked elements.

Did anyone succeed in locking relationship and preventing their permanent deletion when a diagram is unlocked?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Locking relationships in a diagram
« Reply #1 on: April 21, 2016, 06:27:25 am »
Just at a rough guess I would expect that this is a feature, not a bug. I haven't tried, but ownership of connectors is somehow "strange". Usually a the connector can be changed on the unlocked side. But then it depends on how the connector is drawn (source/target). And when doing a copy, there's probably no place the document which direction the connector is created.

q.

Whyves

  • EA Novice
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
Re: Locking relationships in a diagram
« Reply #2 on: April 26, 2016, 01:35:06 am »
Thanks for the answer!

However, I have found a way to achieve the protection I desire. In Project > Security menu, there is an option called "Apply locks to connectors". Setting this option to on prevents the hard delete of the connector.
 :D

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Locking relationships in a diagram
« Reply #3 on: April 26, 2016, 06:52:06 am »
Ah cool. That must be either a new feature or I missed that in the past. Thanks for pointing that out!

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Locking relationships in a diagram
« Reply #4 on: April 26, 2016, 10:08:42 am »
Ah cool. That must be either a new feature or I missed that in the past. Thanks for pointing that out!

q.
Doesn't seem to be documented in the Security Sub-menu section of the new User (Un)Guide.

Sorry Roy, but I find it almost impossible to find stuff in the new system.  I must be "not getting" something...

Does search only work for single term searches?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Sandip

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Locking relationships in a diagram
« Reply #5 on: June 24, 2016, 06:48:56 am »
I am facing a similar issue to the original post. I have locked elements with shallow copies to a new diagram created by user B. Ownership of the elements and the Locks are by user A. User B can delete the relationship between the lock elements of User A.

We have "Apply locks to Connectors" enabled. User B is not in an Administration group and cannot manage locks.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Locking relationships in a diagram
« Reply #6 on: June 24, 2016, 10:20:11 am »
@Paolo

The option is currently described in the second paragraph of the 'Set Security Policy' topic, underneath the first two bullet points. My first search didn't locate it, but my second one did. The 'Search Help' option from the Start Ribbon does accept multiple words in a text string. Maybe you - like me - did not give it long enough to respond. The dialog sat there empty for 30 seconds before finding the menu option text.

I don't know why the option was not added to the 'Security SubMenu' topic, nor the Configure Ribbon 'Use Security Panel' topic, but it is now in both topics and will be visible when the Help is next published and released. Sorry about that.
Best Regards, Roy