Book a Demo

Author Topic: Protecting Package Hierarchy  (Read 3084 times)

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Protecting Package Hierarchy
« on: September 21, 2010, 10:00:22 pm »
Is it possible to protect packages as describe below so that our reports and scripts that reference specific packages are not subject to breaking as a result of users changing or deleting the packages?

Allow:
- create, edit and delete elements, diagrams and sub-packages within protected packages

Do not allow:
- deletion, renaming, or moving of protected packages

I tried various locking options but have not been able to achieve this.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Protecting Package Hierarchy
« Reply #1 on: September 21, 2010, 10:09:49 pm »
I don't think you can using built in functionality, but you can
- Write an addin that reponds to the EA events and prevents the illegal operation (Good)
Or if you are really desperate add a trigger :-X to the database that stops the deletion, or move. (Bad)

Geert

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Protecting Package Hierarchy
« Reply #2 on: September 22, 2010, 03:34:44 am »
Thanks Geert,

I've tried the available options, so I think you are right about not being doable with built-in functionality.

I have avoided writing an addin because deployment in this shop is a major deal. I have found the MDG technology approach to give me most of what I need and it is easier (around here) to distribute updated XML files than to install software.

I think this capability would be valuable for others so I will submit a feature request.

Fred

beginner

  • Guest
Re: Protecting Package Hierarchy
« Reply #3 on: September 22, 2010, 03:55:37 am »
Not quite sure if that helps. But you can lock to different groups. That could provide the requested functionality. Though I wouldn't know the answer right away.

<hijack>
Why is it that after creating new elements in a locked package these are completely without lock? I would expect that setting a lock on a package means everything inside is locked once an forever. But no. EA only applies the lock recursively. And then forgets about it.
</hijack>

b.