Book a Demo

Author Topic: Protecting a package: is it possible, and what does it mean?  (Read 6391 times)

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Protecting a package: is it possible, and what does it mean?
« on: February 19, 2022, 02:01:28 am »
The 't_package' table has the 'protected' field. On https://sparxsystems.com/enterprise_architect_user_guide/15.2/automation/package_2.html is the 'IsProtected' characteristic documented.

I am looking for the meaning of 'IsProtected', and how I can set it. It it something like you can lock a diagram for editing?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Protecting a package: is it possible, and what does it mean?
« Reply #1 on: February 19, 2022, 02:47:42 am »
I had to look into that once more. There is both the t_package.protected and EAPackage.isProtected which correspond. Except that you can set it in the properties there is no protection whatsoever connected with this flag.

q.

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 a package: is it possible, and what does it mean?
« Reply #2 on: February 19, 2022, 02:54:37 am »
I especially love the helpul documentation:

Quote
IsProtected: Indicates if the Package has been marked as 'Protected'.

Geert





Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Re: Protecting a package: is it possible, and what does it mean?
« Reply #3 on: February 19, 2022, 02:58:01 am »
@qwerty: OK, thank you. (Maybe it has something to do with visibility like 'public' and 'private'.)

@Geert: :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Protecting a package: is it possible, and what does it mean?
« Reply #4 on: February 19, 2022, 03:17:51 am »
No. The public/private is stored elsewhere (visibility IIRC). It's most likely some heritage, something G.S. had planned but never realized.

q.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Protecting a package: is it possible, and what does it mean?
« Reply #5 on: February 19, 2022, 06:31:42 am »
It may have been something to do with code generation for C++, C# or Java
Happy to help
:)

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Protecting a package: is it possible, and what does it mean?
« Reply #6 on: February 19, 2022, 06:32:56 am »
if you want to protect a package from being changed by other users then enable security and put either a user lock on it or a group lock that limits who can change it.
Happy to help
:)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Protecting a package: is it possible, and what does it mean?
« Reply #7 on: February 19, 2022, 08:06:02 am »
It may have been something to do with code generation for C++, C# or Java
Maybe. But then what would be the different semantics compared to the Protected visibility?

q.