Author Topic: Disable Modifiying Package and Child Elements  (Read 6736 times)

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Disable Modifiying Package and Child Elements
« on: June 17, 2016, 07:32:24 pm »
Is it possible to disable modifying Packages and their elements in the Project Browser ?
Please List all possibilities
 :'( :'( :'(

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Disable Modifiying Package and Child Elements
« Reply #1 on: June 17, 2016, 08:28:28 pm »
yes, it is possible

- Enable user security
or
- Version control

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Disable Modifiying Package and Child Elements
« Reply #2 on: June 17, 2016, 09:51:01 pm »
A third option is for read-only users to use EA Lite, which allows for display only. It's a free download, but IIRC it doesn't necessarily display everything the way the full client does. Specifically, I think it doesn't do shape scripts. I may be wrong on that, and if you don't know what shape scripts are you're probably not using them so it shouldn't be a problem.

User security can be set up a few different ways, but what you get is a situation where you either can lock things you want to protect or (more commonly used) you must lock things before you can change them. (Yes, the word "lock" means different things in the two setups.)

With user security, you can select which users have modification priviliges and which have read-only. You cannot, however, assign those privileges differently in different parts (packages) of your project; they're global within each repository.

User security requires at least the Corporate edition, and in order to enable it you need to be a registered user at the Sparx site.

External version control can also be used, but if all you need is to prevent accidental changes it's not the way to go. Any edition can do version control.

Finally, you could write a script (or an Add-In) which uses the API to set Element.Locked and Diagram.IsLocked in those parts of the project you want to protect. I believe this is essentially what the version control functionality uses.

Scripting also requires the Corporate edition.
I strongly advise against hacking something up yourself, but you did ask for all the options.

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Disable Modifiying Package and Child Elements
« Reply #3 on: June 17, 2016, 10:14:18 pm »
As usual Uffe's response is completer and explained better :)
I completely agree with all he said  ;D

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Disable Modifiying Package and Child Elements
« Reply #4 on: June 21, 2016, 01:53:42 pm »
A third option is for read-only users to use EA Lite, which allows for display only. It's a free download, but IIRC it doesn't necessarily display everything the way the full client does. Specifically, I think it doesn't do shape scripts. I may be wrong on that, and if you don't know what shape scripts are you're probably not using them so it shouldn't be a problem.

The lite version should draw using the same shape scripts as other editions of EA.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Disable Modifiying Package and Child Elements
« Reply #5 on: June 21, 2016, 05:09:32 pm »
A third option is for read-only users to use EA Lite, which allows for display only. It's a free download, but IIRC it doesn't necessarily display everything the way the full client does. Specifically, I think it doesn't do shape scripts. I may be wrong on that, and if you don't know what shape scripts are you're probably not using them so it shouldn't be a problem.

The lite version should draw using the same shape scripts as other editions of EA.
Some quick experiments with our (extensive) MDG confirms Simon's assertion.

(Caveat: there may be an EAUI hidden somewhere. But that should be a bug - to be rectified)

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